:root{--bg:#18252d;--panel:#202f38;--panel2:#24343e;--line:#3c4c56;--text:#f2f2f2;--muted:#9ca2a6;--orange:#c75717;--paper:#fafafa}*{box-sizing:border-box}html,body{margin:0;height:100%;overflow:hidden;font:14px Inter,Segoe UI,Arial,sans-serif;background:#152129;color:var(--text)}button,input,select{font:inherit}.app{height:100%;display:grid;grid-template-rows:66px 54px 1fr 36px}.topbar{display:flex;align-items:center;padding:0 18px;background:linear-gradient(#1b2932,#18252d);border-bottom:1px solid #2d3236}.brand{display:flex;align-items:center;justify-content:flex-start;min-width:390px;max-width:510px;height:54px;margin-right:12px;padding:5px 12px;background:#f7f3ed;border:1px solid rgba(199,115,96,.75);border-radius:8px;box-shadow:0 2px 10px rgba(0,0,0,.28);gap:14px}.brand img{display:block;max-height:43px;max-width:275px;width:auto;object-fit:contain;object-position:left center;filter:drop-shadow(0 1px 0 rgba(255,255,255,.35))}.brand-product{margin-left:auto;padding-left:14px;border-left:1px solid rgba(180,102,82,.45);color:#c75717;font-size:15px;font-weight:800;letter-spacing:.055em;white-space:nowrap;text-transform:uppercase}.hidden-drawing-options{display:none!important}.top-actions{margin-left:auto;display:flex;height:100%;align-items:center}.top-actions i{height:34px;border-left:1px solid #34393d;margin:0 8px}.top-actions button{border:0;background:none;color:#eee;min-width:72px;height:56px;display:grid;place-content:center;gap:3px;font-size:20px;cursor:pointer}.top-actions small{font-size:11px}.top-actions button:hover{color:var(--orange)}.toolrow{display:flex;align-items:center;padding:0 14px;background:#22313a;border-bottom:1px solid #394953;gap:8px}.toolrow button{background:transparent;border:1px solid transparent;color:#ddd;padding:9px 13px;border-radius:5px;cursor:pointer}.toolrow button:hover,.toolrow button.active{border-color:#c75717;color:var(--orange);background:#3a2b22}.toolrow .spacer{flex:1}.mode{min-width:58px}.toolrow button:disabled{opacity:.4}main{min-height:0;display:grid;grid-template-columns:255px minmax(480px,1fr) 300px}.library-panel,.properties-panel{background:linear-gradient(90deg,#202f38,#24343e);min-height:0;overflow:auto}.library-panel{border-right:1px solid #3b4c56}.properties-panel{border-left:1px solid #3b4c56}.panel-title{height:48px;padding:17px 18px;font-weight:700;border-bottom:1px solid #3b4c56}.category{border-bottom:1px solid #394953}.category-title{padding:13px 16px;color:var(--orange);font-weight:700;font-size:12px;cursor:pointer}.category-title::before{content:'⌄';margin-right:10px}.category.collapsed .category-items{display:none}.category.collapsed .category-title::before{content:'›'}.category-items{padding:0 10px 10px}.lib-item{display:grid;grid-template-columns:55px 1fr;align-items:center;gap:8px;border:1px solid #32383c;border-radius:6px;padding:8px;margin:6px 0;background:#263740;cursor:pointer}.lib-item:hover{border-color:var(--orange);background:#31434d}.thumb{width:48px;height:48px;display:grid;place-items:center;background:#2b3c46;border:1px solid #3a4145;border-radius:5px;color:#e8dfd0;font-size:28px}.lib-item strong{font-size:13px}.lib-item small{display:block;color:#adb2b5;margin-top:5px}.drag-hint{color:var(--orange);text-align:center;font-size:12px}.workspace{min-width:0;min-height:0;position:relative;background:#e7e8e8}.workspace #canvasWrap{position:absolute;inset:0;overflow:hidden}.workspace canvas{position:absolute;inset:0;width:100%;height:100%;touch-action:none}.zoom{position:absolute;bottom:15px;left:50%;transform:translateX(-50%);display:flex;background:#fff;border:1px solid #bbb;border-radius:6px;overflow:hidden;box-shadow:0 3px 12px #0002}.zoom button,.zoom span{height:38px;min-width:42px;border:0;border-right:1px solid #ddd;background:white;color:#222;display:grid;place-items:center}.zoom button{cursor:pointer}.zoom span{min-width:70px}.zoom button:hover{background:#eee}.properties-panel section,.room-settings{padding:15px 16px;border-top:1px solid #3b4c56}.properties-panel h2{font-size:16px;margin:0 0 5px}.properties-panel h3{font-size:12px;color:var(--orange);margin:0 0 12px}.object-head{display:flex;justify-content:space-between;align-items:center;padding:18px 16px}.object-head small,.empty{color:var(--muted)}.cab-icon{font-size:44px;color:#e9dfd0}.empty{padding:22px}.properties-panel label{display:grid;grid-template-columns:1fr 122px;align-items:center;margin:9px 0;color:#c9ccce;font-size:12px}.properties-panel input,.properties-panel select{width:122px;background:#263740;color:white;border:1px solid #4a5b65;border-radius:5px;padding:8px}.properties-panel button{border:1px solid #4a5b65;background:#2b3c46;color:#eee;padding:9px;border-radius:5px;cursor:pointer;margin-top:6px}.properties-panel button:hover{border-color:var(--orange)}.properties-panel .primary{background:#a94713;border-color:#c75717}.wide{width:100%}.danger{color:#ffb0a8!important}.room-settings{margin-top:15px}#properties:not([hidden])~.room-settings{display:none}footer{display:flex;align-items:center;gap:0;background:#161a1d;border-top:1px solid #333;color:#adb2b5;font-size:11px;white-space:nowrap}footer span{padding:0 18px;border-right:1px solid #333}footer .push{margin-left:auto}footer .accent,#totalInfo{color:var(--orange)}#toast{position:absolute;left:50%;bottom:70px;transform:translateX(-50%) translateY(10px);padding:14px 22px;background:#181b1de8;color:#fff;border-radius:5px;opacity:0;transition:.18s;pointer-events:none;box-shadow:0 3px 12px #0005}#toast.show{opacity:1;transform:translateX(-50%) translateY(0)}@media(max-width:1000px){main{grid-template-columns:220px minmax(400px,1fr) 260px}.top-actions button{min-width:56px}.top-actions small{display:none}}@media print{.topbar,.toolrow,.library-panel,.properties-panel,footer,.zoom,#toast{display:none!important}.app{display:block}.workspace{height:100vh}.workspace #canvasWrap{position:fixed;inset:0}}
.checkline{display:flex!important;align-items:center;justify-content:flex-start!important;gap:10px}.checkline input{width:auto!important;margin:0}.helptext{font-size:12px;color:#9ea5aa;line-height:1.45;margin:8px 0 16px}
.schedule-drawer{position:fixed;inset:74px 28px 48px auto;width:min(720px,calc(100vw - 56px));background:#1b2932;color:#e9edef;border:1px solid #394147;box-shadow:0 18px 60px #0009;z-index:30;border-radius:10px;overflow:hidden}.schedule-head{display:flex;justify-content:space-between;align-items:center;padding:18px 20px;background:#20262a;border-bottom:1px solid #394147}.schedule-head h2{margin:0;color:#fff}.schedule-head small{color:#aeb8bd}.schedule-head button{margin-left:8px}.schedule-summary{padding:12px 20px;color:#c75717;font-weight:700;border-bottom:1px solid #333}.schedule-table-wrap{overflow:auto;height:calc(100% - 112px)}.schedule-drawer table{width:100%;border-collapse:collapse;font-size:13px}.schedule-drawer th,.schedule-drawer td{padding:10px 12px;border-bottom:1px solid #30373b;text-align:left}.schedule-drawer th{position:sticky;top:0;background:#252b2f;color:#c75717}.collision-badge{color:#ff6b57}.note-tag{font-size:10px;background:#fff3d6;color:#6c4b00;padding:2px 5px;border-radius:3px}.top-actions button small{white-space:nowrap}@media print{.schedule-drawer{display:none!important}}
.schedule-table-wrap tbody tr{cursor:pointer}
.schedule-table-wrap tbody tr:hover,.schedule-table-wrap tbody tr.selected-row{background:rgba(240,121,32,.13)}

/* v3.1 notes and schedule */
.properties-panel textarea{width:100%;box-sizing:border-box;resize:vertical;min-height:78px;background:#171c1f;color:#f1f1f1;border:1px solid #3a4247;border-radius:5px;padding:9px;font:inherit}
.quick-notes{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0 10px}
.quick-notes button{font-size:11px;padding:6px 8px;border:1px solid #4a5358;background:#22282c;color:#ddd;border-radius:4px}
.quick-notes button:hover{border-color:#c75717;color:#fff}
.schedule-table-wrap td.note-cell{min-width:260px;white-space:normal}
.schedule-table-wrap td.note-cell[contenteditable=true]{outline:none;cursor:text}
.schedule-table-wrap td.note-cell[contenteditable=true]:focus{box-shadow:inset 0 0 0 1px #c75717;background:rgba(240,121,32,.08)}
@media print{#scheduleDrawer.print-schedule{position:static!important;display:block!important;background:white!important;color:black!important;height:auto!important;width:auto!important}.print-schedule .schedule-head button{display:none}.print-schedule table{color:black}.print-schedule th,.print-schedule td{border-color:#aaa}}

/* v3.5 visibility controls */
.view-controls{display:flex;gap:5px;align-items:center;padding-right:8px;border-right:1px solid #3b3f43}
.view-controls button{padding:8px 10px;font-size:12px;white-space:nowrap}
.view-controls button.active{border-color:#c75717;color:#f3a15f;background:rgba(240,121,32,.12)}
#cornerOffsetLabel[hidden]{display:none!important}

#fineModeBtn.active{border-color:#c75717;color:#f4a261;background:rgba(240,121,32,.12)}

/* Quick Tour */
.quick-tour{position:fixed;inset:0;background:rgba(7,10,12,.48);z-index:1000;pointer-events:none}.tour-card{position:absolute;right:32px;bottom:34px;width:min(390px,calc(100vw - 40px));background:#20262a;color:#f7f7f7;border:1px solid #b36c35;border-radius:10px;padding:20px;box-shadow:0 18px 60px rgba(0,0,0,.45);pointer-events:auto}.tour-card h2{margin:4px 0 8px;color:#ef8c43}.tour-card p{line-height:1.45;color:#d9dfe2}.tour-count{font-size:12px;color:#9ca8ae}.tour-check{display:flex;gap:8px;align-items:center;font-size:13px;margin-top:16px}.tour-actions{display:flex;gap:8px;align-items:center;margin-top:18px}.tour-actions span{flex:1}.tour-actions button{padding:8px 14px}.tour-highlight{position:relative;z-index:1001!important;outline:3px solid #c75717!important;outline-offset:4px;box-shadow:0 0 0 7px rgba(240,121,32,.22)!important}.quick-tour[hidden]{display:none}

.demo-button{border-color:#b9783e!important;background:rgba(185,120,62,.16)!important}.demo-button small{color:#e2b07b!important}

/* v6.0 schedule reliability and wall fillers */
.schedule-empty{text-align:center!important;color:#aeb8bd!important;padding:28px 16px!important;font-style:italic}

.thumb svg{width:42px;height:42px;fill:none;stroke:#e8dfd0;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.thumb svg{stroke:#e8dfd0}.thumb .wall-symbol{fill:none;stroke-dasharray:none}

/* v6.3.3 hover descriptions */
.plan-tooltip{position:absolute;z-index:25;max-width:290px;padding:9px 11px;border-radius:6px;background:rgba(22,26,29,.96);color:#f5f5f5;border:1px solid rgba(240,121,32,.75);box-shadow:0 5px 18px rgba(0,0,0,.35);font-size:12px;line-height:1.35;pointer-events:none;transform:translate(14px,14px)}
.plan-tooltip strong{display:block;color:#f3a15f;margin-bottom:2px}.plan-tooltip small{color:#c3c9cc}.plan-tooltip[hidden]{display:none}

@media(max-width:1200px){.brand{min-width:230px;max-width:280px;height:50px;padding:5px 8px}.brand img{max-height:39px}}
.schedule-table-wrap h3{margin:24px 0 8px;color:#d58277;font-size:15px}.schedule-help{margin:0 0 8px;color:#aeb8bd;font-size:12px}.schedule-table-wrap table+ h3{margin-top:30px}

/* v7.1 RC1 project manager */
.app-modal{position:fixed;inset:0;z-index:1000;background:rgba(10,13,15,.72);display:grid;place-items:center;padding:24px}.app-modal[hidden]{display:none}.modal-card{width:min(760px,94vw);max-height:86vh;overflow:auto;background:#22282c;color:#eef1f2;border:1px solid #4c565c;border-radius:10px;box-shadow:0 24px 70px rgba(0,0,0,.5);padding:20px}.modal-head{display:flex;align-items:flex-start;gap:16px;border-bottom:1px solid #3b4449;padding-bottom:14px;margin-bottom:14px}.modal-head>div{flex:1}.modal-head h2{margin:0 0 4px;color:#fff}.modal-head p{margin:0;color:#aeb9be}.icon-close{font-size:24px;line-height:1;width:38px;height:38px}.project-actions{display:flex;gap:9px;margin:12px 0 16px}.projects-list{display:grid;gap:8px}.project-row{display:grid;grid-template-columns:minmax(150px,1.4fr) minmax(100px,.8fr) minmax(120px,.9fr) auto;align-items:center;gap:10px;padding:11px 12px;border:1px solid #3a4348;border-radius:7px;background:#1b2023}.project-name{font-weight:700;color:#fff}.project-meta{font-size:12px;color:#adb8bd}.project-row .row-actions{display:flex;gap:6px}.project-row button{padding:7px 9px}.project-row .danger{color:#ffaaa2}.projects-empty{padding:30px;text-align:center;color:#aeb8bd;border:1px dashed #4a555a;border-radius:7px}.modal-note{color:#e5a79d;background:#181c1e;border-left:3px solid #b9665d;padding:10px 12px}
@media(max-width:760px){.project-row{grid-template-columns:1fr}.project-row .row-actions{flex-wrap:wrap}}


/* v7.2 RC2 responsive workflow and report polish */
.properties-panel{overflow-y:auto;overflow-x:hidden;scrollbar-width:thin}
.properties-panel .panel-title{position:sticky;top:0;z-index:5;background:#1d2225}
.room-settings{margin-top:0;padding:12px 14px}
.room-settings h3{margin:2px 0 8px}
.room-settings label{margin:6px 0}
.room-settings input,.room-settings select{padding:6px 7px}
.properties-panel section{padding:11px 14px}
.object-head{padding:12px 14px}
.properties-panel label{margin:6px 0}
.properties-panel input,.properties-panel select{padding:6px 7px}
.properties-panel button{padding:7px 8px;margin-top:4px}
.quick-notes{display:flex;flex-wrap:wrap;gap:4px}.quick-notes button{font-size:11px;padding:5px 6px;margin:0}
.topbar{min-width:0}.brand{min-width:315px;max-width:400px;height:50px;padding:4px 10px}.brand img{max-height:39px;max-width:230px}.brand-product{font-size:13px;padding-left:10px}
.top-actions{min-width:0;overflow:hidden}.top-actions button{min-width:58px;padding:0 4px}.top-actions i{margin:0 4px}
.toolrow{gap:4px;min-width:0;overflow:hidden}.toolrow button{padding:8px 9px;font-size:12px}
footer{overflow:hidden}footer span{padding:0 10px}#saveStateInfo{color:#8bd49c}
@media(max-height:850px){
 .app{grid-template-rows:60px 48px 1fr 30px}
 .topbar{padding:0 10px}.brand{height:46px}.brand img{max-height:36px}
 .top-actions button{height:50px;font-size:18px}.top-actions small{font-size:9px}
 .panel-title{height:38px;padding:12px 14px}
 .library-panel .category-title{padding:9px 13px}.category-items{padding:0 8px 6px}.lib-item{padding:5px;margin:4px 0}.thumb{width:42px;height:42px;font-size:24px}
 .properties-panel section,.room-settings{padding:9px 12px}.object-head{padding:9px 12px}.cab-icon{font-size:34px}
 .properties-panel h3{margin-bottom:7px}.properties-panel label{margin:4px 0}.properties-panel input,.properties-panel select{padding:5px 6px}
 .properties-panel textarea{min-height:54px}.quick-notes button{font-size:10px;padding:4px 5px}
 .zoom{bottom:8px}.zoom button,.zoom span{height:32px}
}
@media(max-width:1450px){
 main{grid-template-columns:235px minmax(430px,1fr) 275px}
 .brand{min-width:290px;max-width:350px}.brand img{max-width:200px}.brand-product{font-size:12px}
 .top-actions button{min-width:50px}.top-actions small{display:block;font-size:8px;line-height:1.05}.top-actions i{margin:0 2px}
 .toolrow button{padding:7px 7px}
 footer span{padding:0 7px;font-size:10px}
}
@media(max-width:1050px){
 main{grid-template-columns:210px minmax(380px,1fr) 250px}
 .brand{min-width:235px}.brand img{max-width:155px}.brand-product{font-size:10px}
 .top-actions button{min-width:43px;font-size:17px}
 .toolrow .view-controls button{font-size:0}.toolrow .view-controls button::first-letter{font-size:12px}
}

/* v7.2 RC3 simplified, readable toolbar */
.obsolete-modal{display:none!important}
.simplified-toolbar{display:flex;align-items:stretch;gap:8px;overflow-x:auto;overflow-y:hidden;padding:4px 0;scrollbar-width:thin}
.toolbar-group{display:flex;align-items:stretch;gap:4px;padding-right:8px;border-right:1px solid #41494e;flex:0 0 auto}
.toolbar-group:last-child{border-right:0;padding-right:0}
.simplified-toolbar button{min-width:72px;height:52px;padding:5px 8px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;font-size:19px;line-height:1;border-radius:5px}
.simplified-toolbar button strong{font-size:12px;line-height:1.15;font-weight:650;white-space:nowrap;color:#eef1f2}
.simplified-toolbar button:hover strong{color:#fff}
@media(max-width:1450px){.simplified-toolbar{gap:5px}.toolbar-group{gap:2px;padding-right:5px}.simplified-toolbar button{min-width:62px;padding:4px 5px}.simplified-toolbar button strong{font-size:11px}.brand{min-width:270px;max-width:320px}}
@media(max-width:1120px){.simplified-toolbar button{min-width:56px}.simplified-toolbar button strong{font-size:10px}.brand{min-width:225px}.brand-product{display:none}}

#planLockToggle.active{border-color:#d27a38!important;color:#ffd0aa!important;background:rgba(175,83,25,.28)!important}#labelsToggle:disabled{opacity:.45}
.worktop-note{display:block;color:#6b7479;line-height:1.35;margin-top:6px}

/* v8.1 RC1 — dedicated Worktops workspace */
.worktop-workspace-panel{padding:14px;overflow:auto;height:100%;background:#f5f2ec}
.worktop-workspace-panel[hidden]{display:none!important}
.worktop-head{padding-bottom:10px;border-bottom:1px solid #d6c8ba;margin-bottom:12px}
.worktop-head h2{margin:0;color:#8d503d;font-size:18px}
.worktop-head small{display:block;margin-top:4px;color:#656565;line-height:1.35}
.worktop-piece-list{display:grid;gap:7px;margin-top:8px}
.worktop-piece-card{background:#fff;border:1px solid #d7c9bb;border-left:4px solid #c75717;border-radius:5px;padding:8px 9px;font-size:12px;line-height:1.35}
.worktop-piece-card strong{display:block;color:#4a352d;font-size:13px}
body.worktops-mode .library-panel{opacity:.48;pointer-events:none}
body.worktops-mode .properties-panel>#noSelection,
body.worktops-mode .properties-panel>#properties,
body.worktops-mode .properties-panel>.room-settings{display:none!important}
body.worktops-mode .properties-panel>#worktopWorkspacePanel{display:block!important}
body.worktops-mode #labelsToggle,
body.worktops-mode #doorsToggle{opacity:.55}
body.worktops-mode #planLockToggle{display:none}
#worktopsModeBtn.active{background:#c75717;color:#fff;border-color:#c75717}

.worktop-segment{padding:6px 0;border-bottom:1px solid rgba(255,255,255,.08);line-height:1.25}.worktop-segment:last-of-type{border-bottom:0}.joint-position-row{display:flex;align-items:center;gap:8px;margin-top:8px;font-size:12px}.joint-position-row input{width:88px;padding:5px 6px}.worktop-piece-card small{display:block;margin-top:4px;opacity:.8}

/* v8.1 RC4 — readable worktop workspace */
.worktop-workspace-panel{padding:16px 14px;background:#f5f2ec;color:#25292c;font-size:14px}
.worktop-head h2{font-size:20px;line-height:1.15;color:#7b3f31}
.worktop-head small{font-size:13px;line-height:1.45;color:#42484c}
.worktop-piece-list{gap:10px}
.worktop-piece-card{padding:11px 12px;font-size:14px;line-height:1.4;color:#25292c;border-left-width:5px;box-shadow:0 1px 2px rgba(0,0,0,.08)}
.worktop-piece-card strong{font-size:17px;color:#392821;margin-bottom:2px}
.worktop-card-title{font-weight:700;font-size:14px;color:#5e3f34;margin-bottom:6px;text-transform:capitalize}
.worktop-size{display:inline-block;background:#e8eef7;color:#123d75;font-weight:800;font-size:15px;padding:4px 7px;border-radius:4px;margin:2px 0 6px}
.worktop-detail{font-size:13px;color:#3e4549;line-height:1.4}
.worktop-badge{display:inline-block;margin-top:7px;padding:3px 7px;border-radius:4px;background:#dceaf6;color:#174c75;font-weight:700;font-size:12px}
.worktop-piece-card label{display:block;font-size:13px;font-weight:700;color:#342c29;margin-top:7px}
.worktop-piece-card select{display:block;width:100%;margin-top:5px;padding:8px 7px;font-size:14px;color:#202427;background:#fff;border:1px solid #9d8b7e;border-radius:4px}
.worktop-piece-card small{font-size:12.5px;color:#4e565a;opacity:1;line-height:1.4}


/* v8.1 RC10 — tape measure */
#measureBtn.active{background:#c75717;color:#fff;border-color:#d98267;box-shadow:inset 0 0 0 1px rgba(255,255,255,.18)}
body.measure-mode #canvas{cursor:crosshair}
body.measure-mode #canvasWrap::after{content:'Click first point → move → click second point · Esc to clear';position:absolute;left:12px;bottom:12px;z-index:8;background:rgba(30,34,37,.88);color:#fff;padding:7px 10px;border-radius:5px;font-size:12px;pointer-events:none}

.worktop-tool-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin:9px 0}.worktop-tool-grid button{min-height:36px;font-weight:700}.selected-worktop-editor{margin:12px 0;padding:12px;background:#fff;border:1px solid #ccb9a8;border-radius:6px;box-shadow:0 1px 3px rgba(0,0,0,.08)}.selected-worktop-editor h3{margin-top:0}.selected-worktop-ref{font-size:20px;font-weight:800;color:#8a4f32;margin-bottom:8px}.selected-worktop-cutouts{margin:9px 0;padding:8px;background:#f6f2ed;border-radius:4px}.worktop-piece-select{display:block;width:100%;text-align:left;cursor:pointer}.worktop-piece-select.selected{border-color:#c75717;border-left-color:#c75717;background:#fff4eb;box-shadow:0 0 0 2px rgba(184,95,47,.16)}


/* RC12 — Design Checks */
.checks-panel{padding:14px;overflow:auto;min-height:0;color:#31434d;background:#f5f5f3;border-top:1px solid #d5d8d9}
.checks-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:12px}
.checks-head h2{margin:0;font-size:18px;letter-spacing:.04em}
.checks-head small{display:block;color:#667076;margin-top:3px;line-height:1.35}
.health-card{display:flex;align-items:center;gap:10px;padding:11px 12px;border:1px solid #cfd4d6;border-radius:8px;background:#fff;margin-bottom:12px}
.health-card strong,.health-card small{display:block}.health-card small{margin-top:2px;color:#596268;line-height:1.3}
.health-dot{width:14px;height:14px;border-radius:50%;flex:0 0 auto;background:#2f9e5b;box-shadow:0 0 0 4px rgba(47,158,91,.13)}
.health-card.health-amber .health-dot{background:#d28a18;box-shadow:0 0 0 4px rgba(210,138,24,.14)}
.health-card.health-red .health-dot{background:#cc3f35;box-shadow:0 0 0 4px rgba(204,63,53,.14)}
.checks-setting{display:block;font-size:12px;font-weight:700;color:#4f575c;margin:0 0 10px}.checks-setting input{margin-top:5px}
.checks-list{display:grid;gap:8px;margin-top:12px}
.check-row{display:grid;grid-template-columns:24px minmax(0,1fr);gap:8px;width:100%;text-align:left;padding:10px;border:1px solid #d5d9da;border-radius:7px;background:#fff;color:#31434d;cursor:pointer}
.check-row:hover{border-color:#b5bec1;background:#fbfbfa}.check-row:focus-visible{outline:2px solid #c75717;outline-offset:2px}
.check-row .check-icon{font-size:16px;line-height:1}.check-row strong{display:block;font-size:13px}.check-row small{display:block;margin-top:3px;color:#5f686d;line-height:1.35}
.check-row.severity-error{border-left:4px solid #cc3f35}.check-row.severity-warning{border-left:4px solid #d28a18}.check-row.severity-info{border-left:4px solid #4c8297}
.checks-empty{padding:14px;border:1px dashed #bdc5c8;border-radius:7px;background:#fff;text-align:center;color:#596268;font-size:13px}
.checks-footnote{font-size:10.5px;line-height:1.4;color:#747d81;margin:12px 0 0}
.footer-health{border:0;border-radius:12px;padding:3px 9px;font:700 10px/1.2 Segoe UI,sans-serif;cursor:pointer;white-space:nowrap}
.footer-health.health-green{background:#dff3e7;color:#176b3b}.footer-health.health-amber{background:#fff0d5;color:#8a5605}.footer-health.health-red{background:#fde1df;color:#8f261f}
@media(max-height:820px){.checks-panel{padding:10px}.checks-list{gap:6px}.check-row{padding:8px}}


/* RC13 — Action Centre */
.check-card{padding:10px;border:1px solid #d5d9da;border-radius:8px;background:#fff;color:#31434d;border-left-width:4px}
.check-card.severity-error{border-left-color:#cc3f35}.check-card.severity-warning{border-left-color:#d28a18}.check-card.severity-info{border-left-color:#4c8297}
.check-card-main{display:grid;grid-template-columns:24px minmax(0,1fr);gap:8px;align-items:start}
.check-card-main strong{display:block;font-size:13px}.check-card-main small{display:block;margin-top:3px;color:#5f686d;line-height:1.4}
.check-actions{display:flex;flex-wrap:wrap;gap:6px;margin:9px 0 0 32px}.check-actions button{min-height:30px;padding:5px 9px;font-size:11px}
.check-actions .primary{background:#c75717;color:#fff;border-color:#d56414}


/* RC14 — Cabinet Intelligence */
.check-category-scores{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin:-3px 0 12px}
.check-score-chip{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:7px 9px;border:1px solid #d7dcde;border-radius:7px;background:#fff;font-size:11px;color:#596268}
.check-score-chip strong{font-size:12px;color:#31434d}
@media(max-width:1180px){.check-category-scores{grid-template-columns:1fr}}

/* RC15 — brighter, easier-to-read Action Centre */
#checksPanel.checks-panel{
  background:#f3f5f7;
  color:#1f2933;
  padding:16px;
  border-top:1px solid #cdd3d8;
  scrollbar-color:#aab3bb #edf0f2;
}
#checksPanel .checks-head{
  position:sticky;top:-16px;z-index:6;
  margin:-16px -16px 14px;padding:15px 16px 12px;
  background:rgba(255,255,255,.97);border-bottom:1px solid #d8dde1;
  box-shadow:0 3px 10px rgba(31,41,51,.07);
}
#checksPanel .checks-head h2{font-size:19px;color:#1d252b;letter-spacing:.025em}
#checksPanel .checks-head small{font-size:12.5px;color:#59656d}
#checksPanel .icon-close{background:#eef1f3;color:#2d3940;border:1px solid #cbd2d7;border-radius:6px;min-width:34px;min-height:34px}
#checksPanel .health-card{
  background:#fff;border:1px solid #cbd3d9;border-radius:10px;padding:13px 14px;
  box-shadow:0 1px 4px rgba(31,41,51,.08);color:#1e272d;
}
#checksPanel .health-card strong{font-size:15px;color:#172027}
#checksPanel .health-card small{font-size:12.5px;color:#4f5b63}
#checksPanel .check-category-scores{gap:8px;margin-bottom:14px}
#checksPanel .check-score-chip{padding:9px 10px;background:#fff;border-color:#cfd6db;font-size:12px;box-shadow:0 1px 2px rgba(31,41,51,.04)}
#checksPanel .check-score-chip strong{font-size:13px;color:#172027}
#checksPanel .checks-tools{
  position:sticky;top:65px;z-index:5;background:#f3f5f7;
  margin:0 -4px 12px;padding:8px 4px 10px;border-bottom:1px solid #d8dde1;
}
#checksPanel .checks-setting{font-size:12.5px;color:#344149;margin:0 0 8px}
#checksPanel .checks-setting input{
  width:100%;box-sizing:border-box;margin-top:6px;padding:9px 10px;
  color:#172027;background:#fff;border:1px solid #aeb9c1;border-radius:6px;font-size:15px;
}
#checksPanel .checks-tool-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}
#checksPanel .checks-tool-actions button{min-height:40px;font-size:12.5px;font-weight:700;border-radius:7px}
#checksPanel #autoFixChecksBtn{background:#c76542;border-color:#aa4f31;color:#fff;box-shadow:0 1px 3px rgba(120,55,32,.18)}
#checksPanel #runChecksBtn{background:#fff;color:#26343c;border:1px solid #aeb9c1}
#checksPanel .checks-list{gap:10px;margin-top:10px}
#checksPanel .check-card{
  padding:13px 12px;border:1px solid #cfd6db;border-left-width:5px;border-radius:10px;
  background:#fff;color:#1e272d;box-shadow:0 2px 6px rgba(31,41,51,.07);
}
#checksPanel .check-card.severity-error{border-color:#efb6b1;border-left-color:#c73d34;background:#fff7f6}
#checksPanel .check-card.severity-warning{border-color:#ecd3a1;border-left-color:#d18716;background:#fffbf2}
#checksPanel .check-card.severity-info{border-color:#b8d2e4;border-left-color:#397da3;background:#f5faff}
#checksPanel .check-card-main{grid-template-columns:30px minmax(0,1fr);gap:10px}
#checksPanel .check-icon{
  display:grid;place-items:center;width:26px;height:26px;border-radius:50%;
  font-size:14px;font-weight:800;background:#e8edf0;color:#344149;
}
#checksPanel .severity-error .check-icon{background:#c73d34;color:#fff}
#checksPanel .severity-warning .check-icon{background:#d18716;color:#fff}
#checksPanel .severity-info .check-icon{background:#397da3;color:#fff}
#checksPanel .check-card-main strong{font-size:14.5px;line-height:1.25;color:#172027}
#checksPanel .check-card-main small{font-size:13px;line-height:1.5;color:#45535c;margin-top:5px}
#checksPanel .check-actions{gap:7px;margin:11px 0 0 40px}
#checksPanel .check-actions button{
  min-height:36px;padding:7px 11px;border-radius:6px;font-size:12px;font-weight:700;
  color:#26343c;background:#fff;border:1px solid #aeb9c1;
}
#checksPanel .check-actions button:hover{background:#eef3f6;border-color:#8797a2}
#checksPanel .check-actions .primary{background:#ed7b25;color:#fff;border-color:#d46616}
#checksPanel .checks-empty{font-size:13px;background:#f2fbf5;border-color:#9dccae;color:#22643a}
#checksPanel .checks-footnote{font-size:11.5px;color:#59656d;background:#fff;border:1px solid #d5dce0;border-radius:7px;padding:10px;margin-top:14px}
@media(max-height:820px){
 #checksPanel.checks-panel{padding:12px}
 #checksPanel .checks-head{top:-12px;margin:-12px -12px 10px;padding:11px 12px 9px}
 #checksPanel .checks-tools{top:57px}
 #checksPanel .check-card{padding:10px}
 #checksPanel .check-card-main small{font-size:12.5px}
}
@media(max-width:1120px){
 #checksPanel .checks-tool-actions{grid-template-columns:1fr}
 #checksPanel .check-actions{margin-left:0}
}

/* RC15.1 — full light inspector / properties panel */
.properties-panel{
  background:#eef1f3!important;
  color:#1f2933!important;
  border-left:1px solid #c8d0d6!important;
  scrollbar-color:#a9b4bc #eef1f3;
}
.properties-panel .panel-title{
  position:sticky;top:0;z-index:12;
  height:auto;min-height:48px;padding:15px 16px;
  background:#ffffff!important;color:#172027!important;
  border-bottom:1px solid #cfd6db!important;
  box-shadow:0 2px 8px rgba(31,41,51,.07);
  font-size:15px;letter-spacing:.04em;
}
.properties-panel section,
.properties-panel .room-settings,
.properties-panel #noSelection,
.properties-panel #properties{
  background:#ffffff!important;
  color:#1f2933!important;
  border:1px solid #d3d9de!important;
  border-radius:9px;
  margin:12px;
  padding:14px!important;
  box-shadow:0 1px 4px rgba(31,41,51,.06);
}
.properties-panel #noSelection[hidden],
.properties-panel #properties[hidden],
.properties-panel .room-settings[hidden]{display:none!important}
.properties-panel .object-head{
  background:#ffffff!important;color:#1f2933!important;
  border-bottom:1px solid #e0e5e8!important;
  padding:4px 0 12px!important;margin-bottom:12px;
}
.properties-panel .object-head small,
.properties-panel .empty,
.properties-panel small{color:#5f6b73!important}
.properties-panel .empty{padding:8px 0!important;line-height:1.5}
.properties-panel h2{color:#172027!important;font-size:17px!important;line-height:1.25;margin:0 0 6px!important}
.properties-panel h3{
  color:#8d4e37!important;font-size:12px!important;letter-spacing:.06em;
  text-transform:uppercase;margin:2px 0 12px!important;
}
.properties-panel label{
  color:#344149!important;font-size:12.5px!important;font-weight:650;
  grid-template-columns:minmax(0,1fr) 128px;gap:10px;margin:10px 0!important;
}
.properties-panel input,
.properties-panel select,
.properties-panel textarea{
  color:#172027!important;background:#ffffff!important;
  border:1px solid #9eabb4!important;border-radius:6px!important;
  box-shadow:inset 0 1px 2px rgba(31,41,51,.04);
}
.properties-panel input,.properties-panel select{padding:8px 9px!important}
.properties-panel textarea{padding:10px!important;line-height:1.45}
.properties-panel input:focus,
.properties-panel select:focus,
.properties-panel textarea:focus{
  outline:2px solid rgba(240,121,32,.25)!important;
  border-color:#d66b1d!important;
}
.properties-panel button{
  color:#26343c!important;background:#ffffff!important;
  border:1px solid #aab5bd!important;border-radius:6px!important;
  min-height:36px;padding:8px 11px!important;font-weight:700;
}
.properties-panel button:hover{background:#f2f5f7!important;border-color:#7f8f99!important}
.properties-panel button.primary,
.properties-panel .primary{
  color:#ffffff!important;background:#e97822!important;border-color:#cc6216!important;
  box-shadow:0 1px 3px rgba(126,57,15,.18);
}
.properties-panel button.primary:hover,
.properties-panel .primary:hover{background:#d96a18!important;border-color:#b95310!important}
.properties-panel .danger{color:#a62e27!important}
.properties-panel .cab-icon{color:#856354!important}

/* Keep the checks/action centre fully light and readable inside the inspector. */
#checksPanel.checks-panel{
  margin:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;
  background:#eef1f3!important;color:#1f2933!important;
}
#checksPanel .checks-head{background:#ffffff!important}
#checksPanel .checks-tools{background:#eef1f3!important}
#checksPanel .health-card,
#checksPanel .check-score-chip,
#checksPanel .check-card,
#checksPanel .checks-footnote{color:#1f2933!important}

/* Light worktop inspector, matching the main properties panel. */
.worktop-workspace-panel{
  background:#eef1f3!important;color:#1f2933!important;padding:14px!important;
}
.worktop-head{
  background:#ffffff;border:1px solid #d3d9de!important;border-radius:9px;
  padding:13px 14px!important;margin:0 0 12px!important;
  box-shadow:0 1px 4px rgba(31,41,51,.06);
}
.worktop-head h2{color:#7b3f31!important}
.worktop-head small{color:#556168!important}
.worktop-piece-card,
.selected-worktop-editor{
  background:#ffffff!important;color:#1f2933!important;
  border-color:#d0d7dc!important;box-shadow:0 1px 4px rgba(31,41,51,.07)!important;
}
.worktop-piece-card strong,.selected-worktop-ref{color:#4b3026!important}
.worktop-detail,.worktop-piece-card small{color:#4f5b63!important}
.worktop-piece-card select,.selected-worktop-editor input,.selected-worktop-editor select,.selected-worktop-editor textarea{
  color:#172027!important;background:#fff!important;border-color:#9eabb4!important;
}

@media(max-height:820px){
  .properties-panel section,.properties-panel .room-settings,.properties-panel #noSelection,.properties-panel #properties{margin:8px;padding:11px!important}
  .properties-panel label{margin:7px 0!important}
}
/* RC16 Survey workspace */
.survey-panel{padding:14px;background:#eef1f4;color:#20252a;overflow:auto;height:100%;box-sizing:border-box}
.survey-head{background:#fff;border:1px solid #d4dbe1;border-radius:10px;padding:14px;margin-bottom:10px}.survey-head h2{margin:0 0 3px;font-size:19px}.survey-head small{color:#59636c}
.survey-tabs{display:grid;grid-template-columns:1fr 1fr 1.25fr;gap:6px;margin:0 0 12px;position:sticky;top:0;z-index:5;background:#eef1f4;padding:3px 0 7px}.survey-tabs button{background:#fff;color:#34404a;border:1px solid #cbd3da;border-radius:7px;padding:9px 6px;font-weight:750;font-size:12px}.survey-tabs button.active{background:#fff5ee;color:#a94d2e;border-color:#c45f42;box-shadow:inset 0 -3px 0 #c45f42}.survey-count{display:inline-flex;min-width:20px;height:20px;align-items:center;justify-content:center;border-radius:10px;background:#e7ebef;color:#3d4750;font-size:10px;margin-left:3px}.survey-tabs button.active .survey-count{background:#c45f42;color:#fff}
.survey-pane{min-height:200px}.survey-card{background:#fff;border:1px solid #d4dbe1;border-radius:10px;padding:14px;margin-bottom:12px;box-shadow:0 1px 3px rgba(0,0,0,.06)}.survey-card h3{margin:0 0 10px;font-size:13px;color:#273038;letter-spacing:.04em}.survey-card label{display:block;color:#384047;font-size:12px;font-weight:650;margin:7px 0}.survey-card input,.survey-card select,.survey-card textarea{width:100%;box-sizing:border-box;background:#fff;color:#20252a;border:1px solid #b8c2ca;border-radius:6px;padding:8px;font-size:14px}.survey-grid,.survey-recess{display:grid;grid-template-columns:1fr 1fr;gap:8px}.survey-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.survey-recess{grid-template-columns:1fr 1fr 1.25fr;margin-top:8px}.survey-section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.survey-section-head h3{margin:0}.survey-section-head .survey-help{margin:4px 0 0}.survey-help{font-size:11px;color:#68737c;margin:8px 0 10px;line-height:1.45}.survey-feature-row,.makeover-row{border:1px solid #d6dde3;border-radius:8px;background:#f8fafb;padding:10px;margin:8px 0}.survey-feature-row-head,.makeover-row-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}.survey-feature-row-head strong,.makeover-row-head strong{font-size:12px;color:#2f3941}.survey-feature-grid{display:grid;grid-template-columns:1.15fr .9fr .8fr .8fr;gap:7px}.survey-feature-grid.secondary{grid-template-columns:1fr 1fr}.survey-feature-row .remove-survey-feature,.makeover-row .remove-makeover-item{border-color:#d4a8a0;color:#8f3928;background:#fff}.survey-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.survey-actions small{grid-column:1/-1;display:block;color:#68737c;line-height:1.4}.makeover-intro p{margin:0;color:#59636c;font-size:12px;line-height:1.5}.makeover-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px}.makeover-grid.dimensions{grid-template-columns:repeat(4,minmax(0,1fr))}.makeover-row textarea{min-height:60px;resize:vertical}
@media(max-width:1180px){.survey-grid.three,.survey-recess{grid-template-columns:1fr 1fr}.survey-feature-grid,.makeover-grid.dimensions{grid-template-columns:1fr 1fr}.survey-tabs{grid-template-columns:1fr}.survey-actions{grid-template-columns:1fr}}
body.survey-mode .library-panel{opacity:.45;pointer-events:none}

/* RC18 Professional Survey */
.survey-tabs{grid-template-columns:repeat(4,minmax(0,1fr));position:relative}.survey-tabs button{min-height:42px}.survey-check-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:8px 0 12px}.survey-check-grid label{display:flex;align-items:center;gap:8px;background:#f8fafb;border:1px solid #d6dde3;border-radius:7px;padding:9px;margin:0}.survey-check-grid input{width:auto}.survey-score{display:flex;align-items:center;gap:12px;padding:14px;background:#f4f7f8;border-radius:9px;margin-bottom:10px}.survey-score strong{font-size:28px;color:#c45f42}.survey-review-row{display:grid;grid-template-columns:28px 1fr;gap:2px 8px;padding:9px;border-bottom:1px solid #e3e7ea}.survey-review-row span{grid-row:1/3;width:24px;height:24px;border-radius:50%;display:grid;place-items:center;font-weight:800}.survey-review-row small{color:#68737c}.survey-review-row.ok span{background:#dff3e5;color:#23713a}.survey-review-row.warn span{background:#fff0d8;color:#9a5b00}@media(max-width:1180px){.survey-tabs{grid-template-columns:1fr 1fr}.survey-check-grid{grid-template-columns:1fr}}

/* RC19 Survey workspace cleanup */
.survey-panel{padding-top:0}.survey-head{padding:12px 14px 8px}.survey-head small{line-height:1.35}.survey-tabs{display:flex!important;grid-template-columns:none!important;gap:5px;overflow-x:auto;overflow-y:hidden;position:sticky!important;top:0;z-index:8;background:#eef1f4;padding:7px 4px 9px;margin:0 -2px 12px;scrollbar-width:thin}.survey-tabs button{flex:0 0 auto;min-height:34px!important;padding:7px 10px!important;border-radius:18px!important;font-size:11px!important;white-space:nowrap;display:flex;align-items:center;gap:5px}.survey-tabs button>span{display:inline-grid;place-items:center;width:18px;height:18px;border-radius:50%;background:#e8edf1;font-size:10px}.survey-tabs button.active>span{background:#c45f42;color:#fff}.survey-count{min-width:17px;height:17px;font-size:9px;margin-left:0}.survey-card{padding:13px!important;margin-bottom:10px!important}.survey-card h3{margin:0 0 10px;font-size:13px;letter-spacing:.04em}.survey-grid.survey-stack,.survey-grid.three.survey-dim-grid{display:grid!important;grid-template-columns:1fr!important;gap:10px!important}.survey-pane label{font-size:12px;line-height:1.3}.survey-pane input,.survey-pane select,.survey-pane textarea{width:100%;min-width:0;box-sizing:border-box;font-size:13px}.survey-pane textarea{min-height:74px}.survey-service-list{display:grid;gap:7px}.survey-service-list details{border:1px solid #d5dce2;border-radius:9px;background:#fff;overflow:hidden}.survey-service-list summary{list-style:none;display:flex;align-items:center;justify-content:space-between;padding:11px 12px;cursor:pointer;font-weight:700}.survey-service-list summary::-webkit-details-marker{display:none}.survey-service-list summary label{display:flex;align-items:center;gap:9px;margin:0;cursor:pointer}.survey-service-list summary input{width:auto}.survey-service-list details>label,.survey-service-list details>p{display:block;margin:0;padding:0 12px 12px}.survey-service-list details[open] summary{background:#f7f9fa;border-bottom:1px solid #e3e7ea}.survey-service-list details[open] summary>span{transform:rotate(90deg)}.survey-check-grid{grid-template-columns:1fr!important}.survey-section-head{align-items:flex-start;gap:8px}.survey-section-head button{flex:0 0 auto}.survey-actions{grid-template-columns:1fr!important}.survey-pane .primary.wide,.survey-pane button.wide{min-height:42px}.survey-help{font-size:11px;line-height:1.45;color:#66727c}@media(max-width:1300px){.survey-panel{padding-left:10px;padding-right:10px}.survey-grid,.survey-grid.three,.survey-recess,.survey-feature-grid,.makeover-grid.dimensions{grid-template-columns:1fr!important}}

/* RC20 — KitchenFlow workspace architecture */
:root{--kf-rail:76px}
body{padding-left:var(--kf-rail)}
.workspace-rail{position:fixed;z-index:1000;left:0;top:0;bottom:0;width:var(--kf-rail);background:#18252d;border-right:1px solid #26323c;display:flex;flex-direction:column;align-items:stretch;padding:10px 7px;gap:7px;box-shadow:4px 0 18px rgba(0,0,0,.12)}
.workspace-mark{height:48px;display:grid;place-items:center;font-size:20px;font-weight:900;letter-spacing:-1px;color:#fff;border-bottom:1px solid #2b3944;margin-bottom:4px}
.workspace-btn{border:0!important;background:transparent!important;color:#9eabb5!important;min-height:58px!important;border-radius:9px!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:3px!important;padding:6px 2px!important;font-size:10px!important;box-shadow:none!important}
.workspace-btn span{font-size:20px;line-height:1}.workspace-btn strong{font-size:10px;font-weight:700}.workspace-btn:hover{background:#192630!important;color:#fff!important}.workspace-btn.active{background:#21313d!important;color:#fff!important;box-shadow:inset 3px 0 #c75717!important}
.legacy-mode-btn{display:none!important}
.workspace-home{position:fixed;z-index:800;left:var(--kf-rail);right:0;top:0;bottom:0;background:#eef2f4;overflow:auto;color:#18222a}
.workspace-home-inner{max-width:1060px;margin:0 auto;padding:72px 48px}
.workspace-eyebrow{font-size:11px;font-weight:900;letter-spacing:.22em;color:#c75717}.workspace-home h1{font-size:38px;margin:8px 0 4px}.workspace-home-inner>p{color:#66737d;margin:0 0 30px}
.workspace-home-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.workspace-home-cards>button,.workspace-placeholder{background:#fff;border:1px solid #d7dfe4;border-radius:13px;padding:22px;text-align:left;color:#1b252d;min-height:150px;box-shadow:0 3px 12px rgba(30,45,55,.06)}
.workspace-home-cards>button{cursor:pointer}.workspace-home-cards>button:hover{border-color:#c75717;transform:translateY(-1px)}
.workspace-home-cards b{display:block;color:#c75717;font-size:11px;margin-bottom:14px}.workspace-home-cards strong{display:block;font-size:20px;margin-bottom:7px}.workspace-home-cards span{color:#68757e;line-height:1.45}
.workspace-placeholder{grid-column:1/-1}.workspace-placeholder strong{color:#c75717;text-transform:uppercase;font-size:11px;letter-spacing:.12em}.workspace-placeholder h2{font-size:26px}.workspace-placeholder button{margin-top:12px}
body[data-workspace="survey"] .library-panel{display:none!important}
body[data-workspace="survey"] main{grid-template-columns:minmax(0,1fr) 380px!important}
body[data-workspace="survey"] .simplified-toolbar .toolbar-group[aria-label="Edit"]{display:none!important}
@media(max-width:850px){:root{--kf-rail:62px}.workspace-home-inner{padding:40px 22px}.workspace-home-cards{grid-template-columns:1fr}.workspace-btn strong{font-size:9px}}

/* RC20.1 interaction audit */
.survey-actions small{display:block;color:#6d7880;line-height:1.4}
.zoom button{min-width:36px}

.kf-wordmark{font-size:24px;font-weight:800;letter-spacing:-.04em;color:#fff}.kf-wordmark span{color:#c75717}.brand-product{letter-spacing:.08em}

/* RC20.2 — dedicated Survey workspace */
body[data-workspace="survey"] .app{
  grid-template-rows:60px 48px minmax(0,1fr) 30px;
}
body[data-workspace="survey"] main{
  min-width:0;
  min-height:0;
  grid-template-columns:minmax(0,1fr) 380px!important;
  background:#e8ecef;
}
body[data-workspace="survey"] .library-panel{
  display:none!important;
}
body[data-workspace="survey"] .workspace{
  grid-column:1;
  min-width:0;
  min-height:0;
  background:#eef1f3;
}
body[data-workspace="survey"] .properties-panel{
  grid-column:2;
  width:auto;
  min-width:0;
  background:#eef2f4!important;
  border-left:1px solid #cbd4da!important;
  box-shadow:-5px 0 18px rgba(31,45,55,.07);
}
body[data-workspace="survey"] .properties-panel>.panel-title{
  height:48px;
  padding:15px 16px!important;
  background:#fff!important;
  border-bottom:1px solid #d4dce1!important;
  color:#172027!important;
  font-size:0!important;
}
body[data-workspace="survey"] .properties-panel>.panel-title::after{
  content:"SURVEY ASSISTANT";
  font-size:15px;
  font-weight:850;
  letter-spacing:.04em;
}
body[data-workspace="survey"] .properties-panel > :not(.panel-title):not(#surveyPanel){
  display:none!important;
}
body[data-workspace="survey"] #surveyPanel{
  display:block!important;
  padding:0 12px 18px!important;
  background:#eef2f4!important;
}
body[data-workspace="survey"] .survey-head{
  padding:10px 3px 6px!important;
}
body[data-workspace="survey"] .survey-head h2{
  display:none!important;
}
body[data-workspace="survey"] .survey-head small{
  color:#64717a!important;
  font-size:11px;
}
body[data-workspace="survey"] .survey-tabs{
  top:0!important;
  margin:0 -2px 10px!important;
  background:#eef2f4!important;
  padding:5px 2px 8px!important;
}
body[data-workspace="survey"] .survey-card{
  box-shadow:none!important;
}
body[data-workspace="survey"] .view-controls{
  display:none!important;
}
body[data-workspace="survey"] .simplified-toolbar .toolbar-group[aria-label="Edit"],
body[data-workspace="survey"] .simplified-toolbar .toolbar-group[aria-label="Output and help"]{
  display:none!important;
}
body[data-workspace="survey"] .top-actions{
  margin-left:auto;
}
body[data-workspace="survey"] .toolrow{
  justify-content:flex-start;
}
body[data-workspace="survey"] .toolrow .spacer{
  display:block;
}
body[data-workspace="survey"] #roomBtn::after{
  content:" Survey room";
  font-size:11px;
}
body[data-workspace="survey"] .zoom{
  bottom:14px;
}
@media(max-width:1180px){
  body[data-workspace="survey"] main{
    grid-template-columns:minmax(0,1fr) 350px!important;
  }
}
@media(max-width:860px){
  body[data-workspace="survey"] main{
    grid-template-columns:minmax(0,1fr) 320px!important;
  }
  body[data-workspace="survey"] .properties-panel>.panel-title::after{
    font-size:13px;
  }
}

/* RC20.3 left workspace navigation fix */
.workspace-btn{cursor:pointer}
.workspace-btn:focus-visible{outline:2px solid #c75717;outline-offset:2px}

/* RC20.4 robust workspace rail interaction */
.workspace-rail{pointer-events:auto!important}
.workspace-btn{pointer-events:auto!important;position:relative;z-index:1002}
.workspace-home{z-index:900!important}

/* RC21 — Quote / Scope workspace */
.quote-shell{grid-column:1/-1;background:#fff;border:1px solid #d7dfe4;border-radius:14px;overflow:hidden;box-shadow:0 3px 14px rgba(30,45,55,.06)}
.quote-tabs{display:flex;gap:4px;padding:10px;background:#f1f4f6;border-bottom:1px solid #d7dfe4}.quote-tabs button{border:0;background:transparent;padding:10px 18px;border-radius:7px;font-weight:750;cursor:pointer}.quote-tabs button.active{background:#18252d;color:#fff}.quote-tabs button.active:after{content:"";display:block;height:2px;background:#c75717;margin-top:5px}
#quoteWorkspaceBody{padding:22px}.quote-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:18px}.quote-summary>div,.quantity-grid>div{border:1px solid #dbe2e6;border-radius:10px;padding:16px;background:#fafbfc}.quote-summary b,.quantity-grid strong{display:block;font-size:28px;color:#c75717}.quote-summary span,.quantity-grid span{color:#66737c}.quantity-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.quote-note{margin-top:18px;color:#69757d;background:#f4f7f8;padding:12px;border-radius:8px}.scope-toolbar{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:18px}.scope-toolbar button,.quote-primary{border:1px solid #cbd5db;background:#fff;padding:9px 12px;border-radius:7px;cursor:pointer}.scope-toolbar button:last-child,.quote-primary{background:#c75717;color:#fff;border-color:#c75717}.scope-groups section{margin:0 0 18px}.scope-groups h3{font-size:13px;text-transform:uppercase;letter-spacing:.08em;color:#59666f;border-bottom:1px solid #dbe1e5;padding-bottom:7px}.scope-row{display:grid;grid-template-columns:28px minmax(0,1fr) 34px;gap:9px;align-items:start;padding:8px 0}.scope-check{margin-top:9px}.scope-item-main{min-width:0;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px;align-items:center}.scope-row input[data-scope-text]{min-width:0;width:100%;border:1px solid #d5dde2;border-radius:6px;padding:8px}.scope-origin{justify-self:end;white-space:nowrap;border:1px solid #d8dfe3;background:#f4f6f7;color:#68757d;border-radius:999px;padding:4px 7px;font-size:9px;font-weight:750;line-height:1}.scope-origin.source-design{background:#eef3f6;color:#536b79}.scope-origin.source-survey{background:#f6eee8;color:#8c552e}.scope-origin.source-manual{background:#f1edf5;color:#695a7d}.scope-delete{border:0;background:#f0f2f4;border-radius:5px;width:30px;height:30px;cursor:pointer;font-size:16px;line-height:1;color:#65717a}.scope-delete:hover{background:#f4e5df;color:#a64622}.scope-row.excluded{opacity:.45}.scope-row.excluded input[data-scope-text]{text-decoration:line-through}.review-hero{display:flex;align-items:center;gap:15px;border-radius:10px;padding:18px;margin-bottom:16px}.review-hero.warn{background:#fff3df}.review-hero.ok{background:#e8f5ec}.review-hero>strong{font-size:30px}.review-hero h2{margin:0 0 3px}.review-hero p{margin:0;color:#65717a}.scope-warning,.scope-ok{padding:11px;border-bottom:1px solid #e0e5e8}.scope-warning{color:#875300}.scope-ok{color:#28753c}.quote-primary{margin-top:18px}@media(max-width:900px){.quantity-grid{grid-template-columns:repeat(2,1fr)}.quote-summary{grid-template-columns:1fr}.scope-row{grid-template-columns:26px minmax(0,1fr) 32px}.scope-item-main{grid-template-columns:1fr}.scope-origin{justify-self:start;margin-top:-2px}.scope-delete{width:28px}}

/* RC22 — Rate Cards & Quotation */
.rates-head{display:flex;justify-content:space-between;gap:15px;align-items:center;margin-bottom:16px}.rates-head h2{margin:0 0 4px}.rates-head p{margin:0;color:#68747c}.rates-head button{border:1px solid #cfd7dc;background:#fff;border-radius:7px;padding:8px 11px}
.rate-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.rate-grid label{background:#fafbfc;border:1px solid #dbe2e6;border-radius:8px;padding:10px;color:#5d6971;font-size:12px}.rate-grid label span{display:flex;align-items:center;gap:5px;margin-top:6px;color:#1f2930;font-size:14px}.rate-grid input{width:100%;padding:7px;border:1px solid #ccd6dc;border-radius:5px}.pricing-settings{margin-top:16px;padding:14px;background:#f2f5f6;border-radius:9px;display:flex;gap:18px;align-items:end;flex-wrap:wrap}.pricing-settings label{display:flex;flex-direction:column;gap:5px;font-weight:700}.pricing-settings input[type=number]{width:100px;padding:7px}.pricing-settings .vat-toggle{flex-direction:row;align-items:center;padding-bottom:8px}.pricing-toolbar{display:flex;justify-content:flex-end;gap:8px;margin-bottom:14px}.pricing-toolbar button{border:1px solid #cbd5db;background:#fff;padding:9px 12px;border-radius:7px}.pricing-toolbar button:last-child{background:#c75717;color:#fff;border-color:#c75717}.pricing-table{border:1px solid #dbe2e6;border-radius:9px;overflow:hidden}.pricing-tr{display:grid;grid-template-columns:minmax(220px,1fr) 70px 110px 120px;border-bottom:1px solid #e1e6e9}.pricing-tr:last-child{border-bottom:0}.pricing-tr>span{padding:10px;text-align:right}.pricing-tr>span:first-child{text-align:left}.pricing-tr.head{background:#f1f4f6;font-weight:800}.pricing-tr small{display:block;color:#7a858d;margin-top:3px}.quote-totals{max-width:430px;margin:18px 0 0 auto}.quote-totals>div{display:flex;justify-content:space-between;padding:7px 4px}.quote-totals .grand{border-top:2px solid #22303a;padding-top:12px;font-size:18px}.manual-charges{margin-top:22px}.manual-charges>div{display:grid;grid-template-columns:1fr 80px 110px 36px;gap:7px;margin:6px 0}.manual-charges input{padding:7px;border:1px solid #d2dae0;border-radius:5px}.manual-charges button{border:0;border-radius:5px}.review-actions{display:flex;gap:8px;margin-top:18px}.review-actions button{padding:9px 13px;border:1px solid #ccd5da;background:#fff;border-radius:7px}@media(max-width:1050px){.rate-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:760px){.rate-grid{grid-template-columns:1fr}.pricing-tr{grid-template-columns:1fr 55px 90px 95px}}

/* RC23 KitchenFlow Home */
body[data-workspace="home"] .workspace-home-inner{max-width:1160px;padding-top:54px}body[data-workspace="home"] .workspace-home-cards{display:block}
.home-welcome,.recent-projects,.new-project-card{background:#fff;border:1px solid #d7dfe4;border-radius:15px;padding:28px;box-shadow:0 4px 18px #1b2a340d}.home-kicker{color:#c75717;font-size:11px;font-weight:900;letter-spacing:.15em}.home-welcome h2{font-size:32px;margin:8px 0}.home-welcome>p{max-width:720px;color:#66737c;line-height:1.55}.home-actions{display:flex;gap:9px;margin:20px 0}.home-actions button,.new-project-actions button{padding:11px 16px;border:1px solid #cbd5db;background:#fff;border-radius:8px;font-weight:750}.home-primary{background:#c75717!important;color:#fff!important;border-color:#c75717!important}.home-flow{display:grid;grid-template-columns:1fr 25px 1fr 25px 1fr 25px 1fr;align-items:center;border-top:1px solid #e1e6e9;padding-top:20px}.home-flow div{background:#f5f7f8;padding:12px;border-radius:8px}.home-flow b{display:block;color:#c75717;font-size:10px}.home-flow strong,.home-flow span{display:block}.home-flow span{font-size:11px;color:#748089}.home-flow i{text-align:center;font-style:normal;color:#9ba5ac}.recent-projects{margin-top:17px;padding:20px}.recent-projects h3{margin:0}.recent-projects>p{color:#75818a}.recent-row{width:100%;display:grid;grid-template-columns:1fr 90px 100px 25px;align-items:center;gap:10px;text-align:left;border:0;border-top:1px solid #e2e7ea;background:#fff;padding:13px 7px}.recent-row:hover{background:#f7f9fa}.recent-row span strong,.recent-row span small{display:block}.recent-row small{color:#7b868e}.recent-row em{font-style:normal;background:#edf2f4;padding:5px 8px;border-radius:999px;font-size:11px}.recent-row time{color:#75818a}.home-empty{padding:25px 5px}.home-empty strong,.home-empty span{display:block}.new-project-card{max-width:620px}.new-project-card label{display:block;font-weight:750;margin-bottom:16px}.new-project-card input,.new-project-card textarea{display:block;width:100%;padding:10px;margin-top:6px;border:1px solid #cbd5db;border-radius:7px}.new-project-actions{display:flex;justify-content:flex-end;gap:8px}.start-choice{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.start-choice button{background:#fff;border:1px solid #d7dfe4;border-radius:13px;padding:22px;min-height:170px;text-align:left}.start-choice button:hover{border-color:#c75717}.start-choice b{display:block;color:#c75717;margin-bottom:14px}.start-choice strong{display:block;font-size:20px;margin-bottom:7px}.start-choice span{color:#68757e;line-height:1.45}


/* RC24 — KitchenFlow visual refinement */
.workspace-mark{font-weight:900;letter-spacing:-.04em;background:linear-gradient(145deg,#c75717,#bf5130);color:#fff!important;border-radius:10px;box-shadow:0 4px 14px rgba(228,109,69,.22)}
.workspace-btn span{font-family:Arial,sans-serif}.workspace-btn.active{background:#1b2a34!important}
.home-welcome{padding:32px}.home-welcome h2{max-width:720px;letter-spacing:-.025em}.home-welcome>p{font-size:14px}
.home-flow>div{position:relative;cursor:pointer;transition:.15s ease;border:1px solid transparent;min-height:92px}.home-flow>div:hover{background:#fff;border-color:#c75717;box-shadow:0 5px 15px rgba(30,45,55,.07);transform:translateY(-1px)}
.flow-icon{float:right!important;width:30px;height:30px;border-radius:8px;background:#fff;border:1px solid #dce3e7;display:grid!important;place-items:center;color:#27343d!important;font-size:16px!important;margin-left:8px}
.current-project{margin-top:17px;background:#18242d;color:#fff;border:1px solid #263742;border-radius:15px;padding:22px 26px;display:flex;align-items:center;justify-content:space-between;gap:20px;box-shadow:0 5px 18px rgba(18,29,36,.12)}
.current-project h3{font-size:22px;margin:5px 0 3px}.current-project p{margin:0;color:#aab5bc}.current-project-meta{display:flex;align-items:center;gap:12px}.current-project-meta>span{background:#263640;color:#f2f5f6;padding:6px 10px;border-radius:999px;font-size:11px;font-weight:800}.current-project-meta small{color:#aab5bc}.current-project-meta button{padding:10px 14px;border:0;border-radius:8px;font-weight:800}
.recent-projects{margin-top:14px}.recent-row{cursor:pointer}.recent-row b{color:#c75717;font-size:18px}
@media(max-width:850px){.current-project{align-items:flex-start;flex-direction:column}.current-project-meta{width:100%;flex-wrap:wrap}.home-flow{grid-template-columns:1fr}.home-flow>i{display:none}}

/* RC25 — visible Design / Presentation view switch */
.view-mode-label{font-size:10px;font-weight:800;letter-spacing:.12em;color:#8f969a;margin-left:5px;margin-right:-3px;align-self:center}
.toolrow .primary-view-mode{border-color:#41484d;background:#181c1f;color:#d9dddf;padding-left:14px;padding-right:14px}
.toolrow .primary-view-mode:hover{border-color:#8d512a;background:#2a211b;color:#f1a16a}
.toolrow .primary-view-mode.active{border-color:var(--orange);background:#3a2b22;color:var(--orange);box-shadow:inset 0 0 0 1px rgba(240,121,32,.12)}


/* v8.2 RC27 — KitchenFlow brand refresh */
:root{
  --bg:#152129;--panel:#202f38;--panel2:#24343e;--line:#3b4c56;
  --text:#f7fafb;--muted:#aeb8be;--orange:#c75717;--accent:#c75717;
  --accent-hover:#e06a22;--brand-navy:#2d3a43;--brand-deep:#18252d;--paper:#f7f8f8;
}
html,body{background:var(--brand-deep);color:var(--text)}
.topbar{background:linear-gradient(180deg,#22323c 0%,#18252d 100%);border-bottom-color:#3b4c56}
.brand{min-width:250px;max-width:330px;height:58px;margin-right:14px;padding:5px 8px;background:#fff;border:1px solid #d7dde0;border-radius:8px;box-shadow:0 2px 10px rgba(0,0,0,.2)}
.brand img{width:100%;height:46px;max-width:none;max-height:46px;object-fit:contain;object-position:left center;filter:none}
.brand-product,.kf-wordmark,.view-mode-label{display:none!important}
.workspace-rail{background:#18252d;border-right-color:#34454f}
.workspace-mark{height:54px;padding:3px;background:transparent!important;border:0;border-radius:0;box-shadow:none!important}
.workspace-mark img{width:46px;height:46px;object-fit:contain;border-radius:50%;display:block}
.workspace-btn{color:#b9c4ca!important}
.workspace-btn:hover{background:#243640!important;color:#fff!important}
.workspace-btn.active{background:#2d3a43!important;color:#fff!important;box-shadow:inset 3px 0 #c75717!important}
.workspace-btn:focus-visible{outline-color:#e06a22}
.toolrow{background:#22313a;border-bottom-color:#3b4c56}
.toolrow button{color:#eef3f5}
.toolrow button:hover,.toolrow button.active{border-color:#c75717;color:#fff;background:#743711}
.simplified-toolbar button strong{color:#f3f6f7}.simplified-toolbar button:hover,.top-actions button:hover{color:#f08a4c}
.toolbar-group{border-right-color:#465862}
.library-panel,.properties-panel{background:linear-gradient(90deg,#202f38,#24343e)}
.panel-title{border-bottom-color:#3b4c56;color:#fff;letter-spacing:.04em}
.category{border-bottom-color:#394b55}.category-title{color:#f08a4c}
.lib-item{background:#263740;border-color:#3d505b}.lib-item:hover{background:#2d414c;border-color:#e06a22}
.thumb{background:#2c3e48;border-color:#455965;color:#fff}
.lib-item small,.object-head small,.empty{color:#b8c2c8}
.drag-hint{color:#f08a4c}
.properties-panel section,.room-settings{border-top-color:#3b4c56}
.properties-panel h3{color:#f08a4c}
.properties-panel label{color:#e0e6e9}
.properties-panel input,.properties-panel select,.properties-panel textarea{background:#f8fafb!important;color:#1e2b33!important;border-color:#82919a!important}
.properties-panel button{background:#2b3c46;color:#fff;border-color:#536671}.properties-panel button:hover{border-color:#e06a22}
.properties-panel .primary{background:#c75717;border-color:#e06a22;color:#fff}
footer{background:#18252d;border-top-color:#3b4c56;color:#c0c9ce}footer span{border-right-color:#3b4c56}footer .accent,#totalInfo{color:#f08a4c}
.workspace-home{background:#edf1f3}.workspace-home-inner{color:#24323a}.workspace-eyebrow,.home-kicker{color:#c75717}
.home-welcome,.recent-projects,.new-project-card{border-color:#d4dce0;box-shadow:0 5px 20px rgba(24,37,45,.08)}
.home-primary{background:#c75717!important;border-color:#c75717!important}.home-primary:hover{background:#a94713!important}
.home-flow div{background:#f2f5f6;border:1px solid #e0e6e9}.home-flow div:hover{border-color:#c75717;background:#fff8f3}
.home-flow b,.start-choice b{display:none!important}.start-choice button:hover{border-color:#c75717}
.start-choice button:focus-visible,.home-flow [data-go]:focus-visible{outline:2px solid #c75717;outline-offset:2px}
#designModeBtn.active,#presentationModeBtn.active,#installationModeBtn.active,#worktopsModeBtn.active,#surveyModeBtn.active{background:#c75717!important;color:#fff!important;border-color:#e06a22!important}
#planLockToggle.active{border-color:#e06a22!important;color:#ffd9c0!important;background:rgba(199,87,23,.28)!important}
@media(max-width:1450px){.brand{min-width:220px;max-width:275px}.brand img{height:42px}}
@media(max-width:1120px){.brand{min-width:190px;max-width:220px}}

/* v8.2 RC28 — KitchenFlow interface consistency overhaul */
:root{
  --kf-navy:#1d2f39;
  --kf-navy-deep:#14232b;
  --kf-navy-mid:#263b46;
  --kf-orange:#c45c25;
  --kf-orange-dark:#a94c1c;
  --kf-ivory:#f4f0e8;
  --kf-paper:#fbf9f5;
  --kf-stone:#e5dfd5;
  --kf-stone-2:#d7d0c5;
  --kf-ink:#1b2931;
  --kf-muted:#66757d;
  --kf-line:#d6d0c7;
  --kf-shadow:0 12px 32px rgba(18,34,43,.12);
}

/* Application shell */
body{background:var(--kf-navy-deep)}
.workspace-rail{background:linear-gradient(180deg,#172831 0%,#1d303a 100%);border-right-color:#31454f;padding:11px 8px;box-shadow:6px 0 22px rgba(8,18,24,.18)}
.workspace-mark{height:58px;border-bottom:1px solid rgba(255,255,255,.09);padding:5px 3px 10px;margin-bottom:5px}
.workspace-mark img{width:42px;height:42px;display:block;object-fit:contain;border-radius:50%;box-shadow:0 2px 8px rgba(0,0,0,.25)}
.workspace-btn{color:#aeb9bf!important;min-height:60px!important;transition:background .16s ease,color .16s ease,transform .16s ease}
.workspace-btn:hover{background:#263b46!important;color:#fff!important;transform:translateY(-1px)}
.workspace-btn.active{background:#2b3f49!important;color:#fff!important;box-shadow:inset 3px 0 var(--kf-orange),0 5px 14px rgba(0,0,0,.14)!important}
.workspace-btn span{color:#e9edef}.workspace-btn.active span{color:#f3b28e}

/* Planner header: give the logo breathing room without crowding the controls */
.topbar{background:linear-gradient(180deg,#1d303a,#172831);border-bottom-color:#344952;padding:0 14px}
.brand{min-width:252px;max-width:285px;height:56px;padding:5px 12px;background:var(--kf-paper);border:1px solid #d5c9bc;border-radius:9px;box-shadow:0 5px 15px rgba(0,0,0,.2)}
.brand img{width:100%;max-width:245px;max-height:47px;object-fit:contain;object-position:left center}
.brand-product{display:none!important}
.toolrow{background:#243842;border-bottom-color:#3a505a;min-height:54px}
.toolrow button{color:#e2e7ea;border-radius:7px}
.toolrow button:hover,.toolrow button.active{border-color:#d97845;color:#ffd4bd;background:#3d3029}
.simplified-toolbar button{border-radius:7px;transition:background .15s,color .15s}
.simplified-toolbar button:hover{background:#263b46;color:#ffd0b5}

/* Consistent full-page workspaces */
.workspace-home{background:linear-gradient(180deg,#1a2c35 0,#20343e 250px,var(--kf-ivory) 250px,var(--kf-ivory) 100%);color:var(--kf-ink)}
.workspace-home-inner{max-width:1120px;padding:38px 46px 54px}
.workspace-page-head{min-height:190px;margin:0 -4px 28px;display:grid;grid-template-columns:minmax(265px,340px) 1fr;align-items:center;gap:34px;color:#fff}
.workspace-page-brand{display:flex;align-items:center;justify-content:flex-start;background:var(--kf-paper);border:1px solid rgba(255,255,255,.22);border-radius:14px;padding:14px 20px;min-height:112px;box-shadow:0 12px 28px rgba(0,0,0,.18)}
.workspace-page-brand img{display:block;width:100%;max-width:310px;max-height:92px;object-fit:contain}
.workspace-page-copy{min-width:0}.workspace-eyebrow{color:#f09a69;font-size:10px;letter-spacing:.2em}
.workspace-home h1{color:#fff;font-size:40px;line-height:1.02;margin:8px 0 8px;letter-spacing:-.035em}
.workspace-home-inner>.workspace-page-head p{margin:0;color:#c5d0d5;font-size:15px;line-height:1.5}
.workspace-home-cards{gap:16px}

/* Warm surfaces rather than blue-white cards */
.home-welcome,.recent-projects,.new-project-card,.workspace-home-cards>button,.workspace-placeholder,.quote-shell{background:var(--kf-paper);border-color:var(--kf-line);box-shadow:var(--kf-shadow)}
.home-welcome{padding:34px 36px;border-top:4px solid var(--kf-orange)}
.home-welcome h2{font-size:34px;color:var(--kf-ink)}
.home-welcome>p,.recent-projects>p,.workspace-home-cards span{color:var(--kf-muted)}
.home-kicker{color:var(--kf-orange-dark)}
.home-actions button,.new-project-actions button{background:#fffdf9;border-color:#cfc7bd;color:var(--kf-ink);cursor:pointer}
.home-actions button:hover,.new-project-actions button:hover{border-color:var(--kf-orange);box-shadow:0 3px 10px rgba(196,92,37,.12)}
.home-primary{background:var(--kf-orange)!important;border-color:var(--kf-orange)!important;color:#fff!important}.home-primary:hover{background:var(--kf-orange-dark)!important}
.home-flow{border-top-color:#ddd6cb;gap:8px;grid-template-columns:1fr 18px 1fr 18px 1fr 18px 1fr}
.home-flow div{background:#f0ece5;border:1px solid #dfd8ce;padding:15px 14px;min-height:84px;cursor:pointer;transition:.15s ease}
.home-flow div:hover{background:#fff8f2;border-color:#d98a60;transform:translateY(-1px)}
.home-flow .flow-icon{color:var(--kf-orange);font-size:18px;margin-bottom:5px}.home-flow strong{color:var(--kf-ink);font-size:15px}.home-flow i{color:#a59b91}
.current-project{background:linear-gradient(135deg,#1d303a,#263d48);border-color:#3b515b;box-shadow:0 10px 24px rgba(19,35,44,.18)}
.current-project .home-kicker{color:#f3a274}.current-project-meta>span{background:#344a54}.current-project p,.current-project-meta small{color:#c1cbd0}
.recent-projects{padding:22px 24px}.recent-row{background:transparent;border-top-color:#ddd6cc}.recent-row:hover{background:#f1ece5}.recent-row em{background:#e9e3da;color:#435159}.recent-row b{color:var(--kf-orange)}
.home-empty{background:#f0ebe4;border-radius:9px;padding:24px}

/* Project and Build cards */
.workspace-home-cards>button{min-height:156px;padding:24px;border-radius:14px;position:relative;overflow:hidden;transition:.16s ease}
.workspace-home-cards>button:before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:transparent}
.workspace-home-cards>button:hover{border-color:#d47a4c;transform:translateY(-2px);box-shadow:0 14px 30px rgba(22,37,46,.14)}
.workspace-home-cards>button:hover:before{background:var(--kf-orange)}
.workspace-home-cards>button strong{font-size:20px;color:var(--kf-ink)}

/* Quote is a work surface within the same shell */
.quote-shell{border-radius:15px}
.quote-tabs{background:#e8e2d9;border-bottom-color:#d3ccc1;padding:11px 12px}
.quote-tabs button{color:#46555d}.quote-tabs button:hover{background:#f5f0e9}.quote-tabs button.active{background:var(--kf-navy);color:#fff;box-shadow:0 4px 10px rgba(20,35,43,.15)}.quote-tabs button.active:after{background:#ef8b56}
#quoteWorkspaceBody{background:var(--kf-paper);padding:24px}
.quote-summary>div,.quantity-grid>div,.rate-grid label{background:#f1ede6;border-color:#ddd6cc}
.quote-summary b,.quantity-grid strong{color:var(--kf-orange-dark)}
.quote-note,.pricing-settings{background:#eee9e2;color:#59676e}
.scope-toolbar button,.quote-primary,.pricing-toolbar button,.review-actions button{border-color:#cec6bc;background:#fffdf9;color:var(--kf-ink)}
.scope-toolbar button:last-child,.quote-primary,.pricing-toolbar button:last-child{background:var(--kf-orange);border-color:var(--kf-orange);color:#fff}
.scope-row input[data-scope-text],.rate-grid input,.manual-charges input{background:#fffdf9;border-color:#cbc3b9;color:var(--kf-ink)}
.pricing-table{border-color:#d9d2c8}.pricing-tr{border-bottom-color:#dfd8ce}.pricing-tr.head{background:#e9e3da;color:#34434b}
.review-hero.warn{background:#fff0dc}.review-hero.ok{background:#e5f1e8}

/* Form and modal clarity */
.new-project-card input,.new-project-card textarea{background:#fffdf9;border-color:#c9c1b7;color:var(--kf-ink)}
.new-project-card input:focus,.new-project-card textarea:focus,.scope-row input:focus,.rate-grid input:focus{outline:2px solid rgba(196,92,37,.22);border-color:var(--kf-orange)}
.app-modal{backdrop-filter:blur(3px)}.modal-card{border-color:#cfc6ba!important;box-shadow:0 24px 64px rgba(8,20,27,.28)!important}

/* Survey/planner panels: same neutrals, preserve the strong dark shell */
.library-panel,.properties-panel{background:linear-gradient(180deg,#21343e,#1b2d36)}
.category-title,.properties-panel h3,.drag-hint{color:#e98a58}.lib-item{background:#2a3d47;border-color:#3a5059}.lib-item:hover{background:#314953;border-color:#d87947}.thumb{background:#314650;border-color:#465a63}
.properties-panel input,.properties-panel select,.properties-panel textarea{background:#2a3d47;border-color:#4b6069;color:#fff}.properties-panel button{background:#2b404a;border-color:#4a5e67}.properties-panel .primary{background:var(--kf-orange-dark);border-color:var(--kf-orange)}
.workspace{background:#e9e6e0}
.survey-panel{background:#ede9e2}.survey-head,.survey-card,.survey-service-list details{background:#fbf9f5;border-color:#d6cfc5}.survey-tabs{background:#ede9e2}.survey-tabs button{background:#fbf9f5;border-color:#cec7bd}.survey-tabs button.active{background:#fff5ed;color:#a94c1c;border-color:#cf7140;box-shadow:inset 0 -3px 0 var(--kf-orange)}.survey-tabs button.active>span{background:var(--kf-orange)}
.survey-card input,.survey-card select,.survey-card textarea{background:#fffdf9;border-color:#c7bfb5}.survey-feature-row,.makeover-row,.survey-check-grid label{background:#f1ede6;border-color:#d7d0c6}

footer{background:#111d24;border-top-color:#30434c;color:#aeb9bf}footer span{border-right-color:#30434c}footer .accent,#totalInfo{color:#f19a6a}

/* Laptop refinements */
@media(max-width:1450px){
  .brand{min-width:220px;max-width:248px}.brand img{max-width:215px}
  .workspace-home-inner{max-width:1040px;padding-left:36px;padding-right:36px}
  .workspace-page-head{grid-template-columns:280px 1fr;gap:28px}.workspace-page-brand img{max-width:255px}
}
@media(max-width:1120px){
  .workspace-page-head{grid-template-columns:230px 1fr}.workspace-page-brand{min-height:96px;padding:12px 15px}.workspace-home h1{font-size:34px}
}
@media(max-width:850px){
  .workspace-home{background:linear-gradient(180deg,#1b2e38 0,#203640 320px,var(--kf-ivory) 320px)}
  .workspace-home-inner{padding:24px 20px 42px}.workspace-page-head{grid-template-columns:1fr;gap:16px;min-height:275px}.workspace-page-brand{max-width:360px}.workspace-home h1{font-size:32px}
}


/* v8.2 RC29 — simplified workspace mastheads */
.workspace-page-copy{align-self:center;padding-top:0}
.workspace-page-copy .workspace-eyebrow{display:none!important}
.workspace-home h1{font-size:46px;margin:0 0 10px;line-height:1;letter-spacing:-.04em}
.workspace-home-inner>.workspace-page-head p{font-size:16px;max-width:620px;color:#d2dadd}
@media (max-width:900px){.workspace-home h1{font-size:38px}}

/* v8.2 RC30 — Project command centre + resilient brand alignment */
.brand,.workspace-page-brand{display:flex!important;align-items:center!important;justify-content:center!important;overflow:hidden}
.brand img,.workspace-page-brand img{display:block!important;margin:auto!important;object-position:center center!important;max-width:100%!important;width:auto!important;height:auto!important}
.brand img{max-height:46px!important}.workspace-page-brand img{max-height:88px!important}
@media(max-width:1450px){.brand img{max-height:42px!important}}
@media(max-width:1120px){.brand{padding-left:8px;padding-right:8px}.brand img{max-height:38px!important}}
.project-command{background:linear-gradient(135deg,#1d303a,#263d48);color:#fff;border:1px solid #3b515b;border-radius:15px;padding:26px 28px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:28px;box-shadow:0 10px 24px rgba(19,35,44,.18)}
.project-command h2{font-size:30px;margin:6px 0;color:#fff}.project-command p{margin:0;color:#c3cdd2}.project-command-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:20px}.project-command-actions button{padding:10px 14px;border-radius:8px;border:1px solid #526771;background:#2b404a;color:#fff;font-weight:800;cursor:pointer}.project-command-actions button:hover{border-color:#df8a5e;background:#344b56}.project-command-meta{display:grid;grid-template-columns:repeat(3,minmax(95px,1fr));gap:8px;align-self:center}.project-command-meta span{background:#314751;border:1px solid #455b65;border-radius:10px;padding:13px 14px}.project-command-meta small,.project-command-meta strong{display:block}.project-command-meta small{font-size:9px;letter-spacing:.12em;color:#aebbc1;margin-bottom:5px}.project-command-meta strong{font-size:16px;color:#fff}
.project-progress,.project-details{margin-top:16px;background:var(--kf-paper);border:1px solid var(--kf-line);border-radius:15px;padding:22px 24px;box-shadow:var(--kf-shadow)}.project-section-head{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:16px}.project-section-head h3{font-size:22px;margin:4px 0 0;color:var(--kf-ink)}.project-section-head>span{color:var(--kf-muted);font-size:12px}.project-stage-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.project-stage{display:grid;grid-template-columns:36px 1fr;grid-template-rows:auto auto;text-align:left;gap:0 10px;background:#f0ece5;border:1px solid #ddd5ca;border-radius:11px;padding:15px;cursor:pointer;color:var(--kf-ink)}.project-stage:hover{border-color:#d17a4c;background:#fff8f2}.project-stage.current{border-color:var(--kf-orange);box-shadow:inset 0 3px var(--kf-orange);background:#fff7f1}.project-stage.complete{background:#edf1ed}.project-stage-icon{grid-row:1/3;width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:#d9d2c8;color:#46545b;font-weight:900}.project-stage.current .project-stage-icon{background:var(--kf-orange);color:#fff}.project-stage.complete .project-stage-icon{background:#3d7255;color:#fff}.project-stage strong,.project-stage small,.project-stage b{display:block}.project-stage small{color:var(--kf-muted);margin-top:3px;font-size:11px}.project-stage b{grid-column:2;font-size:10px;margin-top:9px;color:#8a7569;text-transform:uppercase;letter-spacing:.08em}.project-stage.current b{color:var(--kf-orange-dark)}.project-stage.complete b{color:#3d7255}.project-detail-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.project-detail-grid>div{background:#f0ece5;border:1px solid #ddd5ca;border-radius:9px;padding:13px}.project-detail-grid>div.wide{grid-column:span 2}.project-detail-grid small,.project-detail-grid strong{display:block}.project-detail-grid small{font-size:10px;color:#7b7771;text-transform:uppercase;letter-spacing:.07em;margin-bottom:5px}.project-detail-grid strong{color:var(--kf-ink)}
@media(max-width:1000px){.project-command{grid-template-columns:1fr}.project-command-meta{width:100%}.project-stage-grid{grid-template-columns:repeat(2,1fr)}.project-detail-grid{grid-template-columns:repeat(2,1fr)}}

/* v8.2 RC31 — compact, consistent workspace masthead + simplified Project page */
.workspace-home{background:linear-gradient(180deg,#1a2c35 0,#20343e 176px,var(--kf-ivory) 176px,var(--kf-ivory) 100%)}
.workspace-home-inner{max-width:1120px;padding:20px 40px 38px}
.workspace-page-head{display:grid;grid-template-columns:220px minmax(0,1fr);align-items:center;gap:26px;min-height:136px;margin:0 0 20px;padding:0}
.workspace-page-brand{width:220px;height:96px;min-height:0;padding:8px 12px;border-radius:12px;justify-self:start}
.workspace-page-brand img{max-width:100%!important;max-height:78px!important;width:auto!important;height:auto!important;object-fit:contain!important;object-position:center center!important;margin:auto!important}
.workspace-page-copy{align-self:center;min-width:0}
.workspace-home h1{font-size:34px!important;line-height:1.04;margin:0 0 6px!important;letter-spacing:-.03em}
.workspace-home-inner>.workspace-page-head p{font-size:14px!important;line-height:1.35;margin:0!important;max-width:620px;color:#ccd6da}
.workspace-home-cards{margin-top:0}

/* Keep every workspace title on one consistent baseline */
body[data-workspace="home"] .workspace-page-head,
body[data-workspace="project"] .workspace-page-head,
body[data-workspace="quote"] .workspace-page-head,
body[data-workspace="build"] .workspace-page-head{grid-template-columns:220px minmax(0,1fr);min-height:136px}

/* Project overview: one compact summary, one workflow strip, one details row */
.project-overview{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(290px,.9fr);gap:16px;background:linear-gradient(135deg,#1d303a,#263d48);border:1px solid #3b515b;border-radius:13px;padding:18px 20px;color:#fff;box-shadow:0 8px 20px rgba(19,35,44,.14)}
.project-overview-main{min-width:0}.project-overview .home-kicker{margin-bottom:5px}.project-title-row{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.project-title-row h2{font-size:25px;line-height:1.05;margin:0 0 5px;color:#fff}.project-title-row p{margin:0;color:#c4ced3;font-size:13px;line-height:1.35;white-space:normal}.project-stage-pill{flex:0 0 auto;background:#fff3ea;color:#a94c1c;border:1px solid #dd9b78;border-radius:999px;padding:6px 10px;font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.07em}.project-overview-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:13px}.project-overview-actions button{padding:8px 12px;border-radius:7px;border:1px solid #50656f;background:#2b404a;color:#fff;font-size:12px;font-weight:800;cursor:pointer}.project-overview-actions .home-primary{background:var(--kf-orange);border-color:var(--kf-orange)}.project-overview-actions button:hover{border-color:#df8a5e;background:#344b56}
.project-quick-meta{display:grid;grid-template-columns:1fr;gap:6px}.project-quick-meta span{display:grid;grid-template-columns:1fr auto;align-items:center;gap:12px;background:#304650;border:1px solid #445a64;border-radius:8px;padding:8px 10px}.project-quick-meta small{font-size:9px;line-height:1.1;letter-spacing:.08em;text-transform:uppercase;color:#aebbc1}.project-quick-meta strong{font-size:12px;color:#fff;text-align:right}
.project-progress.compact,.project-details.compact{margin-top:12px;padding:16px 18px;border-radius:12px}.project-section-head{margin-bottom:10px;align-items:center}.project-section-head h3{font-size:18px;margin:2px 0 0}.project-stage-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.project-stage{grid-template-columns:28px 1fr;gap:0 8px;padding:10px;min-height:78px;border-radius:9px}.project-stage-icon{width:26px;height:26px;font-size:12px}.project-stage strong{font-size:13px}.project-stage small{font-size:10px;line-height:1.25}.project-stage b{font-size:8px;margin-top:5px}.project-detail-grid{grid-template-columns:1.25fr 1fr 1fr 2fr;gap:7px}.project-detail-grid>div,.project-detail-grid>div.wide{grid-column:auto;padding:10px 11px;border-radius:8px}.project-detail-grid small{font-size:8px;margin-bottom:3px}.project-detail-grid strong{font-size:12px;line-height:1.3}

/* Avoid horizontal page scroll at normal laptop widths */
.workspace-home-inner,.workspace-home-cards,.project-overview,.project-progress,.project-details{min-width:0}.workspace-home-cards{overflow:visible}
@media(max-width:1100px){
  .workspace-home-inner{padding-left:28px;padding-right:28px}.workspace-page-head{grid-template-columns:190px minmax(0,1fr);gap:20px}.workspace-page-brand{width:190px;height:86px}.workspace-page-brand img{max-height:68px!important}.workspace-home h1{font-size:30px!important}
  .project-overview{grid-template-columns:1fr}.project-quick-meta{grid-template-columns:repeat(3,1fr)}.project-quick-meta span{display:block}.project-quick-meta strong{text-align:left;display:block;margin-top:3px}.project-detail-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.project-detail-grid>div.wide{grid-column:span 2}
}
@media(max-width:760px){
  .workspace-home{background:linear-gradient(180deg,#1b2e38 0,#203640 220px,var(--kf-ivory) 220px)}.workspace-home-inner{padding:16px 16px 32px}.workspace-page-head{grid-template-columns:150px 1fr;gap:14px;min-height:120px}.workspace-page-brand{width:150px;height:72px;padding:6px 8px}.workspace-page-brand img{max-height:58px!important}.workspace-home h1{font-size:26px!important}.workspace-home-inner>.workspace-page-head p{font-size:12px!important}.project-stage-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.project-quick-meta{grid-template-columns:1fr}.project-detail-grid{grid-template-columns:1fr}.project-detail-grid>div.wide{grid-column:auto}
}

/* v8.2 RC32 — clearer Project page with stable scroll hierarchy */
body[data-workspace="project"] .workspace-home-cards{display:block;max-width:100%}
body[data-workspace="project"] .workspace-page-head{margin-bottom:14px}
.project-overview{
  display:grid;
  grid-template-columns:minmax(240px,1fr) auto minmax(330px,.9fr);
  align-items:center;
  gap:14px;
  padding:14px 16px;
  border-radius:11px;
}
.project-title-row{align-items:center}
.project-title-row h2{font-size:21px;margin-bottom:3px}
.project-title-row p{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:420px}
.project-stage-pill{font-size:9px;padding:5px 8px}
.project-overview-actions{margin-top:0;flex-wrap:nowrap;align-items:center}
.project-overview-actions button{padding:7px 10px;white-space:nowrap}
.project-quick-meta{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.project-quick-meta span{display:block;padding:7px 9px;min-width:0}
.project-quick-meta small{font-size:8px}
.project-quick-meta strong{display:block;text-align:left;margin-top:3px;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.project-main-panel{
  margin-top:10px;
  background:var(--kf-paper);
  border:1px solid var(--kf-line);
  border-radius:12px;
  padding:15px 17px 16px;
  box-shadow:var(--kf-shadow);
  min-width:0;
}
.project-main-panel .project-section-head{margin-bottom:9px}
.project-main-panel .project-section-head h3{font-size:17px;margin:1px 0 0}
.project-main-panel .project-section-head>span{font-size:10px;color:var(--kf-muted)}
.project-stage-grid{gap:6px}
.project-stage{min-height:68px;padding:8px 9px;grid-template-columns:24px 1fr;gap:0 7px}
.project-stage-icon{width:23px;height:23px;font-size:10px}
.project-stage strong{font-size:12px}
.project-stage small{font-size:9px;line-height:1.2}
.project-stage b{font-size:7px;margin-top:4px}
.project-info-divider{height:1px;background:var(--kf-line);margin:13px 0 11px}
.project-details-head{margin-bottom:8px!important}
.project-detail-grid{grid-template-columns:1.2fr 1fr 1fr 2.1fr;gap:6px}
.project-detail-grid>div,.project-detail-grid>div.wide{grid-column:auto;padding:8px 10px;background:#f4f0ea;border-radius:7px}
.project-detail-grid small{font-size:7px;margin-bottom:2px}
.project-detail-grid strong{font-size:11px;line-height:1.25}
@media(max-width:1120px){
  .project-overview{grid-template-columns:minmax(220px,1fr) auto;gap:10px}
  .project-quick-meta{grid-column:1/-1}
  .project-title-row p{max-width:360px}
}
@media(max-width:900px){
  .project-overview{grid-template-columns:1fr;align-items:stretch}
  .project-overview-actions{order:3;flex-wrap:wrap}
  .project-quick-meta{order:2}
  .project-stage-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
  .project-main-panel .project-section-head>span{display:none}
  .project-detail-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .project-detail-grid>div.wide{grid-column:span 2}
}
@media(max-width:680px){
  .project-stage-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .project-quick-meta{grid-template-columns:1fr}
  .project-detail-grid{grid-template-columns:1fr}
  .project-detail-grid>div.wide{grid-column:auto}
}


/* v8.2 RC33 — one shared masthead system across KitchenFlow */
:root{
  --kf-masthead-h:126px;
  --kf-masthead-logo-w:190px;
  --kf-masthead-logo-h:82px;
  --kf-masthead-gap:22px;
}
/* Full-page workspaces share one fixed geometry */
.workspace-home{background:linear-gradient(180deg,#1a2c35 0,#20343e var(--kf-masthead-h),var(--kf-ivory) var(--kf-masthead-h),var(--kf-ivory) 100%)}
.workspace-home-inner{max-width:1120px;padding:16px 34px 34px}
.workspace-page-head,
body[data-workspace="home"] .workspace-page-head,
body[data-workspace="project"] .workspace-page-head,
body[data-workspace="quote"] .workspace-page-head,
body[data-workspace="build"] .workspace-page-head{
  display:grid;
  grid-template-columns:var(--kf-masthead-logo-w) minmax(0,1fr);
  align-items:center;
  gap:var(--kf-masthead-gap);
  min-height:94px;
  height:94px;
  margin:0 0 16px;
  padding:0;
}
.workspace-page-brand{
  width:var(--kf-masthead-logo-w)!important;
  height:var(--kf-masthead-logo-h)!important;
  min-height:0!important;
  padding:7px 10px!important;
  border-radius:11px;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  overflow:hidden;
}
.workspace-page-brand img{
  display:block!important;
  width:auto!important;
  height:auto!important;
  max-width:100%!important;
  max-height:66px!important;
  object-fit:contain!important;
  object-position:center center!important;
  margin:auto!important;
}
.workspace-page-copy{display:flex;flex-direction:column;justify-content:center;min-width:0;align-self:stretch}
.workspace-home h1{font-size:30px!important;line-height:1.05!important;margin:0 0 4px!important;letter-spacing:-.025em!important}
.workspace-home-inner>.workspace-page-head p{font-size:13px!important;line-height:1.3!important;margin:0!important;color:#cbd5da!important}

/* Planner masthead uses the same logo/title relationship in a compact toolbar-safe form */
.topbar{padding:0 12px!important;gap:14px;background:linear-gradient(180deg,#1d303a,#172831)}
.brand{
  flex:0 0 190px!important;
  min-width:190px!important;
  max-width:190px!important;
  width:190px!important;
  height:50px!important;
  margin-right:0!important;
  padding:4px 8px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  overflow:hidden!important;
}
.brand img{display:block!important;width:auto!important;height:auto!important;max-width:100%!important;max-height:39px!important;object-fit:contain!important;object-position:center center!important;margin:auto!important}
.planner-page-copy{flex:0 0 112px;min-width:0;display:flex;flex-direction:column;justify-content:center;line-height:1.1}
.planner-page-copy strong{font-size:18px;color:#fff;letter-spacing:-.02em}
.planner-page-copy small{font-size:10px;color:#b9c6cc;margin-top:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.top-actions{margin-left:auto!important;min-width:0}

/* Do not let page-specific overrides shift the shared masthead */
body[data-workspace="project"] .workspace-page-head{margin-bottom:16px!important}

@media(max-width:1180px){
  :root{--kf-masthead-logo-w:172px;--kf-masthead-logo-h:76px;--kf-masthead-gap:18px}
  .workspace-home-inner{padding-left:24px;padding-right:24px}
  .workspace-page-brand img{max-height:60px!important}
  .workspace-home h1{font-size:28px!important}
  .brand{flex-basis:170px!important;min-width:170px!important;max-width:170px!important;width:170px!important}
  .brand img{max-height:36px!important}
  .planner-page-copy{flex-basis:86px}.planner-page-copy small{display:none}.planner-page-copy strong{font-size:16px}
  .top-actions button{min-width:48px!important}
}
@media(max-width:850px){
  :root{--kf-masthead-h:116px;--kf-masthead-logo-w:145px;--kf-masthead-logo-h:68px;--kf-masthead-gap:14px}
  .workspace-home{background:linear-gradient(180deg,#1b2e38 0,#203640 var(--kf-masthead-h),var(--kf-ivory) var(--kf-masthead-h))}
  .workspace-home-inner{padding:12px 14px 28px}
  .workspace-page-head,
  body[data-workspace="home"] .workspace-page-head,
  body[data-workspace="project"] .workspace-page-head,
  body[data-workspace="quote"] .workspace-page-head,
  body[data-workspace="build"] .workspace-page-head{grid-template-columns:var(--kf-masthead-logo-w) minmax(0,1fr);height:88px;min-height:88px;gap:14px}
  .workspace-page-brand img{max-height:52px!important}
  .workspace-home h1{font-size:24px!important}.workspace-home-inner>.workspace-page-head p{font-size:11px!important}
  .planner-page-copy{display:none}
}
/* RC34 — Survey workflow refinement */
body[data-workspace="survey"] .properties-panel{width:400px;max-width:400px;background:#e9e5de!important;border-left:1px solid #cfc8be}
body[data-workspace="survey"] #surveyPanel{padding:0 12px 18px!important;background:#e9e5de!important}
body[data-workspace="survey"] .survey-head{position:sticky;top:0;z-index:12;display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 -12px 0;padding:12px 14px!important;border:0!important;border-bottom:1px solid #d2cbc1!important;border-radius:0!important;background:#f8f5ef!important;box-shadow:none!important}
body[data-workspace="survey"] .survey-head h2{font-size:17px!important;letter-spacing:0!important;text-transform:none;margin:0 0 2px!important;color:#21323b}
body[data-workspace="survey"] .survey-head small{font-size:11px;color:#68747b}
.survey-head-status{display:flex;align-items:center;gap:8px;white-space:nowrap}.survey-head-status span{font-size:10px;font-weight:750;color:#6c7479}.survey-head-status strong{display:grid;place-items:center;min-width:42px;height:26px;padding:0 7px;border-radius:14px;background:#21323b;color:#fff;font-size:11px}
body[data-workspace="survey"] .survey-tabs{position:sticky!important;top:61px!important;z-index:11!important;margin:0 -12px 10px!important;padding:8px 12px!important;background:#f8f5ef!important;border-bottom:1px solid #d8d1c7;gap:5px!important;scrollbar-width:none}body[data-workspace="survey"] .survey-tabs::-webkit-scrollbar{display:none}
body[data-workspace="survey"] .survey-tabs button{min-height:30px!important;padding:6px 10px!important;border-radius:6px!important;background:transparent!important;border-color:transparent!important;color:#59656c!important;font-size:10.5px!important;box-shadow:none!important}
body[data-workspace="survey"] .survey-tabs button.active{background:#fff!important;color:#a84d20!important;border-color:#d6c7ba!important;box-shadow:0 1px 2px rgba(31,42,48,.08)!important}
body[data-workspace="survey"] .survey-tabs button>span{display:none!important}.survey-count{background:#e5ded5!important;color:#4b555b!important}.survey-tabs button.active .survey-count{background:#c65b24!important;color:#fff!important}
body[data-workspace="survey"] .survey-pane{padding-top:0}.survey-card{border-radius:8px!important;padding:12px!important;margin-bottom:9px!important;box-shadow:none!important;border-color:#d5cec4!important}.survey-card h3{font-size:11px!important;letter-spacing:.08em;color:#39464d!important;margin-bottom:8px!important}.survey-help{margin:5px 0 8px!important}
body[data-workspace="survey"] .survey-pane input,body[data-workspace="survey"] .survey-pane select,body[data-workspace="survey"] .survey-pane textarea{padding:7px 8px!important;border-radius:5px!important;font-size:12px!important}body[data-workspace="survey"] .survey-pane textarea{min-height:58px!important}
body[data-workspace="survey"] .survey-grid.survey-stack{grid-template-columns:1fr 1fr!important;gap:7px!important}.survey-feature-grid{grid-template-columns:1.15fr .8fr .8fr .8fr!important}.survey-feature-grid.secondary{grid-template-columns:1fr 1fr!important}.survey-check-grid{grid-template-columns:1fr 1fr!important;gap:6px!important}.survey-check-grid label{padding:7px!important;font-size:11px!important}
body[data-workspace="survey"] .survey-actions{display:flex!important;align-items:center;gap:8px!important}.survey-actions button{flex:1}.survey-actions small{flex:1.2;font-size:10px!important}
body[data-workspace="survey"] .survey-service-list summary{padding:9px 10px;font-size:11px}.survey-feature-row,.makeover-row{padding:8px!important;margin:6px 0!important}
@media(max-width:1150px){body[data-workspace="survey"] .properties-panel{width:350px;max-width:350px}body[data-workspace="survey"] .survey-grid.survey-stack,.survey-feature-grid,.survey-check-grid{grid-template-columns:1fr!important}.survey-head small{display:none}.survey-tabs button{padding-left:8px!important;padding-right:8px!important}}


/* RC35 — survey containment + measured L-room template */
html,body,.app,main,.workspace,.library-panel,.properties-panel{max-width:100%;min-width:0}
body[data-workspace="survey"] .properties-panel{overflow:hidden!important}
body[data-workspace="survey"] #surveyPanel{height:calc(100% - 48px);max-height:calc(100% - 48px);overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain;scrollbar-gutter:stable;padding-bottom:24px!important}
body[data-workspace="survey"] .survey-head{top:0!important}
body[data-workspace="survey"] .survey-tabs{display:grid!important;grid-template-columns:repeat(7,minmax(0,1fr))!important;overflow:visible!important;top:61px!important;padding:7px 7px!important;margin:0 -12px 10px!important;gap:2px!important}
body[data-workspace="survey"] .survey-tabs button{width:100%;min-width:0!important;padding:6px 3px!important;font-size:9.5px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body[data-workspace="survey"] .survey-tabs .survey-count{min-width:15px;height:15px;font-size:8px}
.survey-template-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:end}.survey-template-row label{margin:0!important}.survey-rotate-btn{height:33px;margin:0!important;white-space:nowrap;background:#233641!important;color:#fff!important;border-color:#233641!important}.survey-rotate-btn:hover{background:#c65b24!important;border-color:#c65b24!important}
.survey-lshape{margin-top:10px;padding:10px;border:1px solid #d6cfc5;border-radius:7px;background:#f6f2ec}.survey-lshape-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:9px}.survey-lshape-head strong{display:block;color:#253740;font-size:12px}.survey-lshape-head small{display:block;margin-top:3px;color:#6b7479;font-size:10px;line-height:1.35}.survey-lshape-head>span{flex:0 0 auto;display:grid;place-items:center;min-width:38px;height:24px;border-radius:12px;background:#253740;color:#fff;font-size:10px;font-weight:800}.survey-wall-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px}.survey-wall-grid label{display:grid!important;grid-template-columns:22px 1fr!important;align-items:center!important;gap:5px!important;margin:0!important;font-size:10.5px!important}.survey-wall-grid label input{grid-column:1/3;width:100%!important}.survey-wall-grid .derived{opacity:.78}.wall-chip{display:grid;place-items:center;width:20px;height:20px;border-radius:50%;background:#c65b24;color:#fff;font-size:10px;font-weight:900}.survey-lshape-status{margin-top:8px;padding:7px 8px;border-radius:5px;background:#e9e4dd;color:#49565d;font-size:10px;font-weight:650}.survey-dim-grid.lshape-active #surveyWidth,.survey-dim-grid.lshape-active #surveyLength{background:#e9e4dd!important;color:#59636a!important}
@media(max-width:1150px){body[data-workspace="survey"] .survey-tabs{grid-template-columns:repeat(4,minmax(0,1fr))!important;position:relative!important;top:0!important}.survey-wall-grid{grid-template-columns:1fr}.survey-template-row{grid-template-columns:1fr}.survey-rotate-btn{width:100%}}
@media(max-width:900px){body[data-workspace="survey"] .survey-tabs{grid-template-columns:repeat(3,minmax(0,1fr))!important}}

/* RC36 measured survey handover */
.survey-feature-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.survey-feature-actions .primary{background:#c65b24;color:#fff;border-color:#c65b24}.survey-feature-row{border-left:3px solid #c65b24}.survey-feature-grid.secondary{grid-template-columns:repeat(4,minmax(120px,1fr))}@media(max-width:1100px){.survey-feature-grid.secondary{grid-template-columns:repeat(2,minmax(140px,1fr))}}

/* RC37 — Quote & Pricing overhaul */
.internal-pricing-banner{display:flex;gap:12px;align-items:center;padding:11px 13px;margin-bottom:12px;border-radius:8px;background:#253842;color:#fff}.internal-pricing-banner span{font-size:12px;color:#d9e0e3}.pricing-tr.pricing-5{grid-template-columns:minmax(220px,1fr) 60px 105px 105px 120px}.quote-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin:14px 0}.quote-kpis>div{background:#f1ede6;border:1px solid #ddd6cc;border-radius:9px;padding:12px}.quote-kpis span{display:block;font-size:11px;text-transform:uppercase;letter-spacing:.05em;color:#66747b}.quote-kpis b{display:block;font-size:20px;margin-top:4px;color:#253842}.rates-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px}.rates-head h2{margin:0}.rates-head p{margin:3px 0 0;color:#68757c}.rates-head button{padding:8px 11px;border:1px solid #cec6bc;background:#fff;border-radius:7px}@media(max-width:900px){.quote-kpis{grid-template-columns:repeat(2,1fr)}.pricing-tr.pricing-5{grid-template-columns:minmax(180px,1fr) 48px 85px 85px 100px}}


/* RC39 — clearer generated-row metadata + overflow safeguards */
.scope-groups,.scope-groups section,.scope-row,.scope-item-main,.pricing-table,.manual-charges,.rate-grid,.quantity-grid,.quote-summary{min-width:0;max-width:100%}
.scope-groups section{overflow:hidden}
.scope-item-main input,.manual-charges input,.rate-grid input{max-width:100%}
.scope-row button,.manual-charges button{flex:0 0 auto}
.scope-origin{overflow:hidden;text-overflow:ellipsis;max-width:120px}
@media(max-width:620px){.scope-origin{max-width:100%;font-size:8.5px}.scope-toolbar,.pricing-toolbar,.review-actions{align-items:stretch}.scope-toolbar button,.pricing-toolbar button,.review-actions button{flex:1 1 auto}.manual-charges>div{grid-template-columns:minmax(0,1fr) 64px 84px 32px}}

/* RC39 — consistent action controls across workspaces */
:root{
  --kf-action-h:36px;
  --kf-action-radius:7px;
  --kf-action-pad:0 13px;
  --kf-action-border:#cfc8be;
  --kf-action-bg:#fffdf9;
  --kf-action-text:#263842;
  --kf-action-primary:#c65b24;
  --kf-action-primary-hover:#ad4e1e;
}
/* Shared button treatment for content/workflow actions (planner icon toolbar intentionally excluded). */
.workspace-home button:not(.workspace-btn),
#surveyPanel button,
#checksPanel button,
#worktopWorkspacePanel button,
#projectsModal button,
#quickTour button,
#scheduleDrawer button,
.quote-shell button,
.scope-toolbar button,
.pricing-toolbar button,
.review-actions button,
.rates-head button,
.manual-charges button{
  min-height:var(--kf-action-h);
  padding:var(--kf-action-pad);
  border:1px solid var(--kf-action-border);
  border-radius:var(--kf-action-radius);
  background:var(--kf-action-bg);
  color:var(--kf-action-text);
  font:inherit;
  font-weight:700;
  line-height:1.15;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  cursor:pointer;
  vertical-align:middle;
  text-decoration:none;
}
.workspace-home button:not(.workspace-btn):hover,
#surveyPanel button:hover,
#checksPanel button:hover,
#worktopWorkspacePanel button:hover,
#projectsModal button:hover,
#quickTour button:hover,
#scheduleDrawer button:hover,
.quote-shell button:hover,
.scope-toolbar button:hover,
.pricing-toolbar button:hover,
.review-actions button:hover,
.rates-head button:hover{
  background:#f5f0e9;
  border-color:#bfb4a8;
}
.workspace-home button.primary,
.workspace-home .home-primary,
#surveyPanel button.primary,
#checksPanel button.primary,
#worktopWorkspacePanel button.primary,
#projectsModal button.primary,
#quickTour button.primary,
#scheduleDrawer button.primary,
.quote-shell button.quote-primary,
.quote-shell button.primary,
.scope-toolbar button:last-child,
.pricing-toolbar button:last-child,
.review-actions button.quote-primary{
  background:var(--kf-action-primary)!important;
  border-color:var(--kf-action-primary)!important;
  color:#fff!important;
}
.workspace-home button.primary:hover,
.workspace-home .home-primary:hover,
#surveyPanel button.primary:hover,
#checksPanel button.primary:hover,
#worktopWorkspacePanel button.primary:hover,
#projectsModal button.primary:hover,
#quickTour button.primary:hover,
#scheduleDrawer button.primary:hover,
.quote-shell button.quote-primary:hover,
.scope-toolbar button:last-child:hover,
.pricing-toolbar button:last-child:hover,
.review-actions button.quote-primary:hover{
  background:var(--kf-action-primary-hover)!important;
  border-color:var(--kf-action-primary-hover)!important;
}
button.danger,.danger{color:#9d3325!important;border-color:#dfb8ae!important;background:#fff8f5!important}
button.danger:hover,.danger:hover{background:#f9e6e0!important;border-color:#cf9587!important}

/* Action groups use one rhythm, so adjacent actions no longer look unrelated. */
.review-actions,.scope-toolbar,.pricing-toolbar,.survey-feature-actions,.checks-tool-actions,.project-actions,.tour-actions{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}
.review-actions{margin-top:16px;justify-content:flex-start}
.review-actions button{min-width:150px;margin:0!important}
.scope-toolbar button,.pricing-toolbar button{margin:0!important}
.pricing-toolbar{justify-content:flex-end}
.survey-actions button{min-height:var(--kf-action-h)!important}

/* Review/issue area: equal weight and alignment for the two preview choices. */
.review-hero{margin-bottom:12px}
.scope-review-list{border:1px solid #ddd6cc;border-radius:8px;overflow:hidden;background:#fffdf9}
.scope-review-list .scope-ok,.scope-review-list .scope-warning{border-bottom:0;padding:12px 13px}
.review-actions{padding-top:2px}
.review-actions button{height:38px}

/* Normalize small destructive/icon actions without allowing them to inherit wide action sizing. */
.scope-delete,.icon-close,.remove-survey-feature,.remove-makeover-item,
.manual-charges button[data-manual-del]{min-width:32px!important;width:auto;padding:0 9px!important}

/* Keep button clusters usable on laptop/narrow panels. */
@media(max-width:760px){
  .review-actions,.scope-toolbar,.pricing-toolbar,.survey-feature-actions,.checks-tool-actions,.project-actions{align-items:stretch}
  .review-actions button,.scope-toolbar button,.pricing-toolbar button{flex:1 1 150px;min-width:0}
}

/* RC40 — Build / installation command centre */
body[data-workspace="build"] .workspace-home-cards{display:block;max-width:100%;min-width:0}
.build-shell{background:var(--kf-paper);border:1px solid var(--kf-line);border-radius:16px;box-shadow:var(--kf-shadow);overflow:hidden;min-width:0}
.build-tabs{display:flex;gap:4px;padding:8px;border-bottom:1px solid var(--kf-line);background:#f4f1ea;position:sticky;top:0;z-index:4}
.build-tabs button{min-height:38px!important;padding:8px 14px!important;border-radius:9px!important;background:transparent!important;border-color:transparent!important;color:var(--kf-muted)!important;font-weight:800!important}
.build-tabs button.active{background:#fff!important;border-color:#d9d3c8!important;color:var(--kf-ink)!important;box-shadow:0 2px 7px rgba(25,37,45,.06)}
#buildWorkspaceBody{padding:16px;display:grid;gap:14px;min-width:0}
.build-ready{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:14px;padding:14px 16px;border-radius:13px;border:1px solid #cfdcd6;background:#edf7f2}
.build-ready.warn{background:#fff7e8;border-color:#e9cf91}.build-ready.danger{background:#fff0ee;border-color:#e3aaa3}
.build-ready-icon{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:#fff;font-size:20px;font-weight:900}
.build-ready h2{font-size:18px;margin:0 0 3px}.build-ready p{margin:0;color:var(--kf-muted);font-size:12px;line-height:1.4}
.build-ready>button{white-space:nowrap}
.build-summary-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}
.build-summary-grid>div{background:#f5f3ee;border:1px solid var(--kf-line);border-radius:10px;padding:10px 11px;min-width:0}.build-summary-grid small{display:block;color:var(--kf-muted);font-size:9px;text-transform:uppercase;letter-spacing:.08em}.build-summary-grid strong{font-size:18px;display:block;margin-top:3px}
.build-section{border:1px solid var(--kf-line);border-radius:13px;padding:14px;background:#fff;min-width:0}
.build-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:11px}.build-section-head h3{margin:2px 0 0;font-size:17px}.build-section-head>span,.build-section-head>strong{font-size:11px;color:var(--kf-muted)}
.build-launch-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.build-launch{min-height:82px!important;text-align:left!important;padding:12px!important}.build-launch strong{display:block;font-size:14px}.build-launch span{display:block;font-size:11px;margin-top:4px;color:var(--kf-muted);line-height:1.35}
.build-site-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.build-site-grid>div{padding:10px;border-radius:9px;background:#f7f6f2;border:1px solid #e5e1d9}.build-site-grid small{display:block;color:var(--kf-muted);font-size:9px;text-transform:uppercase}.build-site-grid strong{display:block;margin-top:3px;font-size:12px;overflow-wrap:anywhere}.build-note{margin:10px 0 0;padding:9px 10px;background:#f7f6f2;border-radius:8px;color:#495860;font-size:12px;line-height:1.45}
.build-scope-group+ .build-scope-group{margin-top:12px}.build-scope-group h4{font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:#8a4b2b;margin:0 0 5px}.build-scope-row{display:grid;grid-template-columns:20px 1fr;gap:6px;padding:7px 4px;border-bottom:1px solid #eeeae3}.build-scope-row>span{color:#438065;font-weight:900}.build-scope-row p{margin:0;font-size:12px}.build-scope-row small{display:block;color:var(--kf-muted);margin-top:2px;font-size:9px}
.build-notes-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.build-notes-grid>div{background:#f7f6f2;border:1px solid #e5e1d9;border-radius:9px;padding:10px}.build-notes-grid strong{font-size:11px}.build-notes-grid p{font-size:11px;color:var(--kf-muted);line-height:1.4;margin:4px 0 0;white-space:pre-wrap}
.build-fitter-notes{width:100%;resize:vertical;min-height:88px}
.build-snag-list{display:grid;gap:6px}.build-snag{display:grid;grid-template-columns:auto minmax(0,1fr) 34px;align-items:center;gap:7px}.build-snag input[type="text"],.build-snag input:not([type]){min-width:0}.build-snag.done input:not([type="checkbox"]){text-decoration:line-through;opacity:.6}.build-snag>button{padding:6px!important;min-height:34px!important}
.build-checklist{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.build-checklist label{display:flex;align-items:center;gap:9px;padding:9px 10px;border:1px solid #e5e1d9;border-radius:9px;background:#f8f7f3;font-size:11px;font-weight:700}.build-checklist input{width:17px;height:17px}
.build-empty{padding:15px;border:1px dashed #d5d0c7;border-radius:9px;color:var(--kf-muted);font-size:12px;text-align:center}
@media(max-width:1050px){.build-summary-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.build-launch-grid,.build-site-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){.build-ready{grid-template-columns:auto minmax(0,1fr)}.build-ready>button{grid-column:1/-1;width:100%}.build-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.build-launch-grid,.build-site-grid,.build-notes-grid,.build-checklist{grid-template-columns:1fr}.build-tabs{overflow-x:auto}.build-tabs button{flex:0 0 auto}}


/* RC41 — Project photos & attachments */
.project-files-modal-card{width:min(1080px,94vw);max-height:88vh;display:flex;flex-direction:column;overflow:hidden}
.project-files-toolbar{display:grid;grid-template-columns:140px 140px 150px minmax(180px,1fr) auto;gap:9px;align-items:end;padding:12px 0}
.project-files-toolbar label{font-size:10px;font-weight:800;color:var(--kf-muted);text-transform:uppercase;letter-spacing:.06em}.project-files-toolbar select,.project-files-toolbar input{width:100%;margin-top:5px}.project-file-caption{min-width:0}
.project-files-note{margin:0 0 10px;padding:8px 10px;border-radius:8px;background:#f5f3ee;color:var(--kf-muted);font-size:11px}
.project-files-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;overflow:auto;padding:2px 3px 12px;min-height:110px}.project-files-grid.compact{grid-template-columns:repeat(4,minmax(0,1fr));overflow:visible}
.project-file-card{border:1px solid var(--kf-line);border-radius:11px;background:#fff;overflow:hidden;display:grid;grid-template-rows:130px auto;min-width:0;box-shadow:0 2px 6px rgba(24,37,45,.04)}
.project-file-preview{border:0!important;border-radius:0!important;padding:0!important;min-height:0!important;background:#e9edef!important;overflow:hidden;display:grid!important;place-items:center}.project-file-preview img{width:100%;height:100%;object-fit:cover;display:block}.project-file-doc{font-size:18px;font-weight:900;color:#6b7780;border:2px solid #a9b2b8;border-radius:6px;padding:16px 12px;background:#fff}
.project-file-info{padding:10px;min-width:0}.project-file-info>strong{display:block;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.project-file-info p{font-size:11px;line-height:1.35;color:#53616a;margin:5px 0;min-height:15px}.project-file-info>small{display:block;font-size:9px;color:var(--kf-muted);margin-top:5px}.project-file-tags{display:flex;gap:4px;flex-wrap:wrap;margin-bottom:6px}.project-file-tags span{font-size:8px;font-weight:800;text-transform:uppercase;letter-spacing:.05em;padding:3px 5px;border-radius:999px;background:#f1eee7;color:#75513e}.project-file-actions{display:flex;gap:5px;margin-top:8px}.project-file-actions button{min-height:28px!important;padding:4px 7px!important;font-size:9px!important;flex:1}
.project-files-empty{grid-column:1/-1;min-height:100px;border:1px dashed #d3cec5;border-radius:10px;display:grid;place-items:center;align-content:center;gap:4px;color:var(--kf-muted);text-align:center}.project-files-empty strong{font-size:13px;color:var(--kf-ink)}.project-files-empty span{font-size:10px}
.project-files-strip{margin-top:12px;border-top:1px solid var(--kf-line);padding-top:11px;display:flex;align-items:center;justify-content:space-between;gap:12px}.project-files-strip>div{display:grid;gap:2px}.project-files-strip strong{font-size:13px}.project-files-strip span{font-size:10px;color:var(--kf-muted)}
.survey-head{gap:10px}.survey-photos-btn{margin-left:auto;white-space:nowrap;min-height:34px!important;padding:7px 10px!important;font-size:10px!important}.survey-head-status{margin-left:0!important}
.build-photo-actions{display:flex;align-items:center;justify-content:space-between;gap:14px}.build-photo-actions h3{margin:2px 0 3px}.build-photo-actions p{margin:0;color:var(--kf-muted);font-size:11px}.build-photo-actions>div:last-child{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}
@media(max-width:1000px){.project-files-toolbar{grid-template-columns:repeat(3,minmax(0,1fr))}.project-file-caption{grid-column:1/3}.project-files-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.project-files-grid.compact{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.project-files-toolbar{grid-template-columns:1fr 1fr}.project-file-caption{grid-column:1/-1}.project-files-toolbar>#projectFileChoose{grid-column:1/-1}.project-files-grid,.project-files-grid.compact{grid-template-columns:1fr}.project-files-strip,.build-photo-actions{align-items:stretch;flex-direction:column}.build-photo-actions>div:last-child{justify-content:flex-start}.survey-head{flex-wrap:wrap}.survey-photos-btn{margin-left:0}}


/* RC43 — Project Photos & Files discoverability */
#filesBtn strong{white-space:nowrap}
.survey-photos-btn.primary{background:var(--kf-accent)!important;color:#fff!important;border-color:var(--kf-accent)!important;font-weight:800!important;box-shadow:0 2px 8px rgba(177,78,37,.22)}
.survey-photos-btn.primary:hover{filter:brightness(1.06)}
.project-files-action{font-weight:700}
.project-file-add-btn{min-height:42px!important;font-weight:800!important}
.project-files-add-hint{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:10px 0 4px;padding:10px 12px;border:1px solid rgba(190,91,43,.28);border-radius:10px;background:rgba(190,91,43,.07)}
.project-files-add-hint strong{font-size:12px;color:var(--kf-ink)}
.project-files-add-hint span{font-size:10px;color:var(--kf-muted);text-align:right;max-width:560px}
.build-files-quick{display:flex;align-items:center;justify-content:space-between;gap:14px}
.build-files-quick h3{margin:2px 0 3px}.build-files-quick p{margin:0;color:var(--kf-muted);font-size:11px}
.build-files-quick button{white-space:nowrap}
@media(max-width:900px){#filesBtn strong{display:none}.project-files-add-hint,.build-files-quick{align-items:stretch;flex-direction:column}.project-files-add-hint span{text-align:left;max-width:none}.build-files-quick button{width:100%}}


/* v8.2 RC44 — backup, recovery and settings */
.backup-card{width:min(900px,calc(100vw - 40px));max-height:min(760px,calc(100vh - 40px));overflow:auto}
.backup-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding:2px}
.backup-section{background:#f7f5f1;border:1px solid #d8dee1;border-radius:12px;padding:16px;min-width:0}
.backup-section h3{margin:0 0 7px;color:#22343d;font-size:15px;letter-spacing:.02em}
.backup-section p{margin:0 0 12px;color:#5f6c74;line-height:1.45}
.backup-section small{display:block;margin-top:9px;color:#71808a;line-height:1.35}
.backup-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.backup-actions button{min-height:38px}
.recovery-status{padding:10px 12px;margin:0 0 12px;background:#fff;border:1px solid #dce2e5;border-radius:8px;color:#344750;font-weight:650}
.settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:12px}
.settings-grid label{display:grid;gap:5px;color:#45545d;font-weight:650}
.settings-grid .checkline{grid-column:1/-1;display:flex;align-items:center;gap:8px}
.settings-grid input[type="number"]{width:100%;min-width:0}
#saveStateInfo.unsaved-changes{color:#f1a45f;font-weight:800}
#saveStateInfo.recovery-saved{color:#83c9a3}
@media(max-width:820px){.backup-grid{grid-template-columns:1fr}.settings-grid{grid-template-columns:1fr}.settings-grid .checkline{grid-column:auto}}

/* v8.2 RC47 — toolbar and control-surface cleanup */
.simplified-toolbar{gap:0!important;overflow:visible!important}
.simplified-toolbar .toolbar-group{display:flex;align-items:center;height:100%;padding:0 4px;border-right:1px solid #40515b}
.simplified-toolbar .toolbar-group:last-of-type{border-right:0}
.simplified-toolbar .toolbar-group button{min-width:58px!important;padding:0 8px!important}
.simplified-toolbar .toolbar-group button strong{font-size:10px;line-height:1.1;white-space:nowrap}
.toolbar-more{position:relative;height:100%;display:flex;align-items:center;margin-left:3px}
.toolbar-more>summary{list-style:none;min-width:58px;height:56px;display:grid;place-content:center;gap:3px;text-align:center;color:#eef3f5;cursor:pointer;border-radius:6px;user-select:none}
.toolbar-more>summary::-webkit-details-marker{display:none}.toolbar-more>summary::marker{display:none}
.toolbar-more>summary span{font-size:20px;line-height:15px;letter-spacing:2px}.toolbar-more>summary strong{font-size:10px;line-height:1.1}
.toolbar-more>summary:hover,.toolbar-more[open]>summary{color:#f08a4c;background:rgba(199,87,23,.12)}
.toolbar-more-menu{position:absolute;right:0;top:60px;width:268px;padding:7px;background:#1d2b34;border:1px solid #475963;border-radius:9px;box-shadow:0 16px 42px rgba(0,0,0,.38);z-index:1200}
.toolbar-more-menu button{width:100%!important;min-width:0!important;height:auto!important;display:grid!important;grid-template-columns:34px 1fr!important;place-content:unset!important;align-items:center!important;gap:8px!important;text-align:left!important;padding:10px!important;border:0!important;border-radius:6px!important;background:transparent!important;color:#edf2f4!important}
.toolbar-more-menu button>span:first-child{font-size:19px;text-align:center;color:#f08a4c}.toolbar-more-menu button>span:last-child{min-width:0}
.toolbar-more-menu button strong{display:block!important;font-size:12px!important;color:#fff!important}.toolbar-more-menu button small{display:block!important;margin-top:2px;font-size:10px!important;color:#9fadb4!important;line-height:1.25}
.toolbar-more-menu button:hover{background:#293b45!important}.toolbar-more-menu button:hover strong{color:#fff!important}

/* Keep dense secondary controls visually grouped instead of reading as one endless bar. */
.toolrow{gap:7px!important}.toolrow>.spacer{min-width:12px}.view-controls{display:flex;align-items:center;gap:4px;min-width:0}
.view-controls button{padding-left:9px!important;padding-right:9px!important;white-space:nowrap}
.view-controls .legacy-mode-btn{display:none!important}
#designModeBtn,#presentationModeBtn{display:inline-flex!important;align-items:center;justify-content:center}

/* Common control groups: consistent spacing, wrapping and hierarchy throughout the app. */
.project-actions,.backup-actions,.tour-actions,.checks-tool-actions,.worktop-tool-grid,.survey-actions,.build-action-row,.quote-actions,.project-home-actions{gap:8px!important;align-items:center}
.project-actions,.backup-actions,.checks-tool-actions,.worktop-tool-grid,.build-action-row,.quote-actions,.project-home-actions{display:flex;flex-wrap:wrap}
.project-actions>button,.backup-actions>button,.checks-tool-actions>button,.worktop-tool-grid>button,.build-action-row>button,.quote-actions>button,.project-home-actions>button{min-height:38px}
.project-files-toolbar{align-items:end!important}.project-files-toolbar button{min-height:40px}

/* Dialog toolbars should not become horizontal button walls on laptop screens. */
.schedule-head>div:last-child{display:flex;align-items:center;gap:6px;flex-wrap:wrap;justify-content:flex-end}.schedule-head button{margin-left:0!important}
@media(max-width:1200px){
  .simplified-toolbar .toolbar-group button{min-width:52px!important;padding:0 5px!important}
  .brand{min-width:310px!important;max-width:370px!important}.brand img{max-width:245px!important}
  .view-controls button{font-size:11px;padding-left:7px!important;padding-right:7px!important}
}
@media(max-width:980px){
  .simplified-toolbar #saveAsBtn{display:none}
  .toolbar-more-menu{right:-4px}
}

/* RC47 — unified customer/job document outputs */
.project-documents-strip{
  margin-top:14px;padding:14px 16px;border:1px solid var(--line,#d7dde0);border-radius:10px;
  background:linear-gradient(180deg,#fbfcfc,#f4f7f8);display:flex;align-items:center;justify-content:space-between;gap:16px;
}
.project-documents-strip>div:first-child{display:grid;gap:2px;min-width:0}.project-documents-strip strong{color:#20313a;font-size:14px}.project-documents-strip span{color:#69767d;font-size:12px}.project-doc-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:7px}.project-doc-actions button{min-height:34px;white-space:nowrap}
.build-head-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}.build-head-actions strong{white-space:nowrap}.build-head-actions button{min-height:34px}
@media(max-width:900px){.project-documents-strip{align-items:flex-start;flex-direction:column}.project-doc-actions{justify-content:flex-start}.build-head-actions{justify-content:flex-start}}


/* RC49 — movable Getting Started guide */
.tour-card{max-height:calc(100vh - 24px);overflow:auto;will-change:left,top}
.tour-drag-handle{display:flex;align-items:center;justify-content:flex-start;gap:7px;margin:-8px -8px 10px;padding:7px 9px;border-radius:7px;background:rgba(255,255,255,.055);color:#b9c3c8;font-size:11px;user-select:none;touch-action:none;cursor:grab}
.tour-drag-handle:hover{background:rgba(255,255,255,.1);color:#fff}
.tour-drag-handle:active,.tour-card.tour-dragging .tour-drag-handle{cursor:grabbing}
.tour-drag-handle span{font-size:16px;line-height:1;color:#ef8c43}
.tour-drag-handle strong{font-size:11px;letter-spacing:.02em}
.tour-card.tour-dragging{box-shadow:0 24px 70px rgba(0,0,0,.55)}
@media(max-width:560px){.tour-card{width:min(360px,calc(100vw - 20px))}.tour-drag-handle{padding:9px}}

/* RC50 real-job interaction and survey clarity pass */
.properties-title-row{display:flex!important;align-items:center;justify-content:space-between;gap:8px}
.properties-title-row button{width:28px!important;height:28px!important;min-height:28px!important;padding:0!important;border-radius:6px!important;font-size:18px!important}
.properties-reopen{display:none;position:absolute;right:8px;top:8px;z-index:20;background:#21343e;color:#fff;border:1px solid #536671;border-radius:7px;padding:8px 10px;cursor:pointer}
body.properties-collapsed .properties-panel{display:none!important}body.properties-collapsed main{grid-template-columns:var(--rail-width,210px) minmax(0,1fr)!important}body.properties-collapsed .properties-reopen{display:block}
body[data-workspace="survey"].survey-expanded .properties-panel{width:min(680px,48vw)!important;max-width:min(680px,48vw)!important}
body[data-workspace="survey"].survey-expanded .survey-feature-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
body[data-workspace="survey"] .survey-head{align-items:flex-start!important;flex-wrap:wrap!important;padding:15px 16px!important}
body[data-workspace="survey"] .survey-head h2{font-size:21px!important;font-weight:800!important;line-height:1.15!important}
body[data-workspace="survey"] .survey-head small{font-size:12px!important;line-height:1.5!important;max-width:310px;display:block}
.survey-expand-btn{margin-left:auto!important;white-space:nowrap}.survey-photos-btn{white-space:nowrap}
body[data-workspace="survey"] .survey-tabs{top:0!important;z-index:15!important}
body[data-workspace="survey"] .survey-section-head{position:sticky;top:52px;z-index:10;background:#fbf9f5;padding:10px 0;border-bottom:1px solid #ded7cd}
body[data-workspace="survey"] .survey-section-head h3{font-size:14px!important}.survey-feature-actions{display:flex;gap:6px;flex-wrap:wrap}
.survey-feature-row{border-left:4px solid #d66f32!important}.survey-feature-row-head strong{font-size:13px!important}.survey-help{font-size:12px!important}


/* RC51 — properties panel collapse must never damage the Survey workspace layout */
body[data-workspace="survey"].properties-collapsed main{
  grid-template-columns:minmax(0,1fr)!important;
}
body[data-workspace="survey"].properties-collapsed .workspace{
  grid-column:1!important;
}
body[data-workspace="survey"].properties-collapsed .properties-reopen{
  display:block!important;
}
/* RC60 library height choices and attached-panel status */
.lib-item .lib-copy{min-width:0}.lib-height{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-top:6px;color:#c9ccce;font-size:11px}.lib-height select{max-width:92px;background:#1c2a32;color:#fff;border:1px solid #4a5b65;border-radius:4px;padding:4px 5px}.attachment-status{background:rgba(199,87,23,.06)}.attachment-grid{display:grid;grid-template-columns:78px 1fr;gap:7px 10px;font-size:12px}.attachment-grid span{color:#7b878e}.attachment-grid strong{color:#26343c;overflow-wrap:anywhere}.attachment-status button{margin-top:10px!important}

/* RC62: category height selector appears only while its category is expanded. */
.category-head{display:flex;align-items:center;gap:6px;padding-right:8px}.category-head .category-title{flex:1;min-width:0}.category-height{display:flex;align-items:center;gap:5px;color:#d6dde1;font-size:10px;font-weight:700}.category-height span{color:#e98a58}.category-height select{width:82px;min-width:82px;background:#182831;color:#fff;border:1px solid #586c76;border-radius:5px;padding:5px 4px;font-size:11px;font-weight:700}.category-height select:focus{outline:2px solid rgba(224,106,34,.35);border-color:#e06a22}.category.collapsed .category-height{display:none!important}
\n/* RC64 presentation: clean customer-facing plan */
body.customer-mode main{grid-template-columns:255px minmax(480px,1fr) 0!important}
body.customer-mode .properties-panel{display:none!important}
body.customer-mode .workspace{grid-column:2/4}
/* RC64 survey: give the guided assistant real working width */
body[data-workspace="survey"] main{grid-template-columns:minmax(520px,3fr) minmax(430px,2fr)!important}
body[data-workspace="survey"] .workspace{grid-column:1!important}
body[data-workspace="survey"] .properties-panel{grid-column:2!important;width:auto!important;max-width:none!important}
@media(max-width:1100px){body[data-workspace="survey"] main{grid-template-columns:minmax(480px,1.25fr) minmax(390px,1fr)!important}}

/* RC66 — Survey workspace replacement: one responsive layout, no expand/compact mode. */
body[data-workspace="survey"] .properties-panel{width:min(520px,42vw)!important;max-width:min(520px,42vw)!important;min-width:390px!important;border-left:1px solid #d7d0c6!important;box-shadow:-10px 0 30px rgba(35,45,50,.06)!important}
body[data-workspace="survey"] .survey-panel{padding:0 18px 22px!important;background:#f4f1eb!important;overflow-y:auto!important}
body[data-workspace="survey"] .survey-head{position:static!important;margin:0 -18px!important;padding:18px 22px!important;background:#fff!important;border-bottom:1px solid #ddd5ca!important;display:grid!important;grid-template-columns:1fr auto!important;align-items:center!important}
body[data-workspace="survey"] .survey-head h2{font-size:22px!important;text-transform:none!important}body[data-workspace="survey"] .survey-head small{display:block!important;max-width:420px!important}
body[data-workspace="survey"] .survey-photos-btn{grid-column:2;grid-row:1;margin:0!important}.survey-head-status{grid-column:2;grid-row:1;margin-top:46px!important;justify-self:end}
body[data-workspace="survey"] .survey-tabs{position:sticky!important;top:0!important;z-index:20!important;margin:0 -18px 18px!important;padding:10px 18px!important;background:#f4f1eb!important;border-bottom:1px solid #ddd5ca;display:grid!important;grid-template-columns:repeat(7,minmax(70px,1fr))!important;overflow:visible!important;gap:6px!important}
body[data-workspace="survey"] .survey-tabs button{justify-content:center!important;border-radius:8px!important;padding:9px 6px!important;font-size:11px!important;min-width:0!important}
body[data-workspace="survey"] .survey-card{border-radius:14px!important;padding:20px!important;box-shadow:0 4px 18px rgba(37,45,50,.04)!important;margin-bottom:14px!important}.survey-room-builder{min-height:360px}.survey-eyebrow{font-size:10px;font-weight:800;letter-spacing:.13em;color:#a64b25}.room-builder-title h3{font-size:18px!important;margin:4px 0 16px!important}.room-builder-steps{display:grid;grid-template-columns:1fr auto 1fr auto 1fr;align-items:center;gap:8px;padding:10px;background:#eee9e1;border-radius:12px;margin-bottom:20px}.room-builder-steps button{border:0!important;background:transparent!important;display:flex;align-items:center;gap:8px;justify-content:center;color:#68747b}.room-builder-steps button b{display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:#d8d3ca}.room-builder-steps button.active{color:#8f3d1e;font-weight:800}.room-builder-steps button.active b{background:#bd5b31;color:#fff}.room-builder-steps i{font-style:normal;color:#aaa}.room-step-panel>h3{font-size:13px!important;letter-spacing:.08em!important;color:#42515a}.room-step-actions{display:flex;gap:10px;align-items:center;justify-content:space-between;margin-top:18px;padding-top:16px;border-top:1px solid #e6e0d7}.room-feature-shortcuts{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:16px}.room-feature-shortcuts button{min-height:46px}.survey-template-row{grid-template-columns:minmax(0,1fr) auto!important}.survey-dim-grid{grid-template-columns:1fr!important;gap:14px!important}
@media(max-width:1050px){body[data-workspace="survey"] .properties-panel{width:46vw!important;max-width:46vw!important;min-width:360px!important}body[data-workspace="survey"] .survey-tabs{grid-template-columns:repeat(4,1fr)!important}.survey-tabs button:nth-child(n+5){margin-top:0}.room-builder-steps span{font-size:10px}}
/* RC66 — explicit kitchen supply costing */
.supply-pricing-head{display:flex;justify-content:space-between;align-items:end;margin-bottom:14px}.supply-pricing-head h2{margin:0 0 4px}.supply-pricing-head p{margin:0;color:#68747b}.supply-table{border:1px solid #d9dfe3;border-radius:12px;overflow:auto;background:#fff}.supply-row{display:grid;grid-template-columns:minmax(220px,2fr) 55px 1fr 1fr 100px 100px 110px;gap:8px;align-items:center;padding:9px 10px;border-bottom:1px solid #edf0f2;min-width:900px}.supply-row.head{background:#27333a;color:#fff;font-size:11px;font-weight:800;position:sticky;top:0}.supply-row>span:first-child{display:flex;flex-direction:column}.supply-row small{color:#7b858b;margin-top:2px}.supply-row input{width:100%;box-sizing:border-box;padding:8px;border:1px solid #ccd4d9;border-radius:7px}.supply-row strong:last-child{text-align:right}.supply-row:last-child{border-bottom:0}
\n/* RC68 survey viewport correction: keep assistant fully visible and dimensions clear. */\nbody[data-workspace="survey"] main{grid-template-columns:minmax(0,58%) minmax(420px,42%)!important;overflow:hidden}\nbody[data-workspace="survey"] .workspace{min-width:0!important;overflow:hidden!important}\nbody[data-workspace="survey"] .properties-panel{width:100%!important;max-width:none!important;min-width:0!important;overflow:hidden!important}\nbody[data-workspace="survey"] .survey-panel{width:100%!important;max-width:100%!important;overflow-y:auto!important;overflow-x:hidden!important;padding:0 12px 18px!important}\nbody[data-workspace="survey"] .survey-head{margin:0 -12px!important;padding:14px 16px!important;grid-template-columns:minmax(0,1fr) auto!important}\nbody[data-workspace="survey"] .survey-head small{max-width:300px!important}\nbody[data-workspace="survey"] .survey-tabs{margin:0 -12px 12px!important;padding:8px 12px!important;grid-template-columns:repeat(4,minmax(0,1fr))!important}\nbody[data-workspace="survey"] .survey-card{padding:14px!important}\nbody[data-workspace="survey"] #canvasWrap{overflow:visible!important}\n@media(max-width:1000px){body[data-workspace="survey"] main{grid-template-columns:minmax(0,55%) minmax(380px,45%)!important}}\n.supply-book-note{padding:10px 12px;margin:0 0 12px;border:1px solid #d8dfe3;border-radius:9px;background:#f7f4ee;color:#5e686e}.price-status{font-size:11px;font-weight:800}.price-status.required{color:#a34b23}.price-status.ok{color:#287547}.supply-row.supply-book-row{grid-template-columns:minmax(220px,2fr) 105px 1fr 1fr 100px 100px 125px}\n
.quote-tabs{overflow-x:auto;white-space:nowrap}.quote-tabs button{flex:0 0 auto}

/* RC72 attachment control */
.attachment-actions{display:grid;grid-template-columns:1fr;gap:6px;margin:10px 0}.attachment-actions button{min-height:34px}.attachment-actions button:disabled{opacity:.5;cursor:not-allowed}

/* RC76 — Survey Assistant final viewport pass: Room Builder is one fixed, fully visible window. */
body[data-workspace="survey"] main{
  grid-template-columns:minmax(0,1fr) clamp(400px,40vw,460px)!important;
  overflow:hidden!important;
}
body[data-workspace="survey"] .properties-panel{
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  overflow:hidden!important;
}
body[data-workspace="survey"] #surveyPanel{
  height:100%!important;
  min-height:0!important;
  overflow:hidden!important;
  padding:0 10px 10px!important;
  display:grid!important;
  grid-template-rows:auto minmax(0,1fr)!important;
  align-content:stretch!important;
}
/* The panel title already says Survey Assistant, so remove the duplicate intro block. */
body[data-workspace="survey"] #surveyPanel>.survey-head{display:none!important}
body[data-workspace="survey"] .survey-tabs{
  position:relative!important;
  top:auto!important;
  margin:0 -10px 8px!important;
  padding:7px 8px!important;
  display:grid!important;
  grid-template-columns:repeat(7,minmax(0,1fr))!important;
  gap:3px!important;
  overflow:hidden!important;
}
body[data-workspace="survey"] .survey-tabs button{
  min-height:31px!important;
  padding:5px 3px!important;
  font-size:10px!important;
  border-radius:6px!important;
  white-space:nowrap!important;
}
body[data-workspace="survey"] .survey-count{display:none!important}
body[data-workspace="survey"] .survey-pane{
  min-height:0!important;
  height:100%!important;
}
/* Room is the no-scroll guided workspace. Other tabs retain contained scrolling only when their lists genuinely grow. */
body[data-workspace="survey"] #surveyRoomPane{overflow:hidden!important}
body[data-workspace="survey"] .survey-pane:not(#surveyRoomPane){overflow:auto!important;scrollbar-width:thin}
body[data-workspace="survey"] .survey-room-builder{
  min-height:0!important;
  height:100%!important;
  margin:0!important;
  padding:10px 12px!important;
  border-radius:10px!important;
  display:flex!important;
  flex-direction:column!important;
}
body[data-workspace="survey"] .room-builder-title{flex:0 0 auto}
body[data-workspace="survey"] .survey-eyebrow{font-size:9px!important}
body[data-workspace="survey"] .room-builder-title h3{
  font-size:15px!important;
  margin:2px 0 7px!important;
  line-height:1.15!important;
}
body[data-workspace="survey"] .room-builder-steps{
  flex:0 0 auto;
  padding:5px 7px!important;
  margin-bottom:8px!important;
  gap:4px!important;
  border-radius:8px!important;
}
body[data-workspace="survey"] .room-builder-steps button{padding:3px 2px!important;margin:0!important;font-size:10px!important}
body[data-workspace="survey"] .room-builder-steps button b{width:20px!important;height:20px!important;font-size:10px!important}
body[data-workspace="survey"] .room-builder-steps i{font-size:10px!important}
body[data-workspace="survey"] .room-step-panel{
  flex:1 1 auto;
  min-height:0!important;
  overflow:hidden!important;
}
body[data-workspace="survey"] .room-step-panel>h3{font-size:11px!important;margin:4px 0 7px!important}
body[data-workspace="survey"] .survey-template-row{gap:6px!important}
body[data-workspace="survey"] .survey-template-row label{font-size:11px!important}
body[data-workspace="survey"] .survey-template-row select,
body[data-workspace="survey"] .survey-dim-grid input{padding:6px 7px!important;min-height:31px!important}
body[data-workspace="survey"] .survey-rotate-btn{height:31px!important;padding:5px 8px!important;font-size:10px!important}
body[data-workspace="survey"] #surveyTemplateHelp{font-size:10px!important;line-height:1.25!important;margin:6px 0!important}
body[data-workspace="survey"] .room-step-actions{
  margin-top:7px!important;
  padding-top:7px!important;
  gap:6px!important;
}
body[data-workspace="survey"] .room-step-actions button{padding:6px 8px!important;margin:0!important;font-size:10px!important;min-height:31px!important}
body[data-workspace="survey"] .survey-dim-grid{
  grid-template-columns:1fr 1fr 1fr!important;
  gap:7px!important;
}
body[data-workspace="survey"] .survey-dim-grid label{font-size:10px!important}
body[data-workspace="survey"] .room-feature-shortcuts{margin-top:8px!important;gap:6px!important}
body[data-workspace="survey"] .room-feature-shortcuts button{min-height:34px!important;padding:6px!important;font-size:10px!important}
body[data-workspace="survey"] .survey-lshape{margin-top:6px!important;padding:7px!important}
body[data-workspace="survey"] .survey-lshape-head{margin-bottom:5px!important}
body[data-workspace="survey"] .survey-wall-grid{grid-template-columns:1fr 1fr 1fr!important;gap:5px!important}
body[data-workspace="survey"] .survey-wall-grid label{font-size:9px!important}
body[data-workspace="survey"] .survey-wall-grid label input{padding:4px 5px!important;min-height:27px!important}
body[data-workspace="survey"] .survey-lshape-status{margin-top:5px!important;padding:5px 6px!important}
/* Keep measured-wall labels comfortably inside the visible canvas margin. */
body[data-workspace="survey"] #canvasWrap{overflow:hidden!important}
@media(max-width:1050px){
  body[data-workspace="survey"] main{grid-template-columns:minmax(0,1fr) clamp(380px,43vw,430px)!important}
  body[data-workspace="survey"] .survey-tabs button{font-size:9px!important}
}

/* RC77 — Single-window Room Survey + protected plan measurement margins. */
body[data-workspace="survey"] main{
  grid-template-columns:minmax(0,1fr) clamp(390px,38vw,440px)!important;
}
body[data-workspace="survey"] #surveyPanel{
  padding:0 9px 9px!important;
  overflow:hidden!important;
}
body[data-workspace="survey"] .survey-tabs{
  margin:0 -9px 7px!important;
  padding:6px 7px!important;
  gap:2px!important;
}
body[data-workspace="survey"] .survey-tabs button{
  min-height:29px!important;
  padding:4px 2px!important;
  font-size:9.5px!important;
}
body[data-workspace="survey"] #surveyRoomPane{
  height:100%!important;
  min-height:0!important;
  overflow:hidden!important;
}
body[data-workspace="survey"] .survey-room-single{
  height:100%!important;
  min-height:0!important;
  margin:0!important;
  padding:10px 11px!important;
  display:grid!important;
  grid-template-rows:auto auto auto auto auto!important;
  gap:7px!important;
  align-content:start!important;
  overflow:hidden!important;
}
body[data-workspace="survey"] .survey-room-single-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:10px;
  padding-bottom:6px;
  border-bottom:1px solid #ded8cf;
}
body[data-workspace="survey"] .survey-room-single-head h3{
  margin:1px 0 0!important;
  font-size:15px!important;
  line-height:1.1!important;
}
body[data-workspace="survey"] .survey-room-single-head small{
  max-width:190px;
  text-align:right;
  color:#67747b;
  font-size:9px;
  line-height:1.25;
}
body[data-workspace="survey"] .survey-room-section{
  padding:7px 8px;
  border:1px solid #ddd7ce;
  border-radius:9px;
  background:#fffdf9;
}
body[data-workspace="survey"] .survey-room-section h4{
  margin:0 0 5px;
  font-size:10px;
  line-height:1;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:#495860;
}
body[data-workspace="survey"] .survey-template-row{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 94px!important;
  gap:6px!important;
  align-items:end!important;
}
body[data-workspace="survey"] .survey-template-row label,
body[data-workspace="survey"] .survey-dim-grid label{
  margin:0!important;
  font-size:10px!important;
  font-weight:700!important;
}
body[data-workspace="survey"] .survey-template-row select,
body[data-workspace="survey"] .survey-dim-grid input{
  height:32px!important;
  min-height:32px!important;
  padding:5px 7px!important;
  margin-top:3px!important;
  font-size:12px!important;
}
body[data-workspace="survey"] .survey-rotate-btn{
  height:32px!important;
  padding:4px 6px!important;
  font-size:9.5px!important;
  white-space:nowrap!important;
}
body[data-workspace="survey"] .survey-dim-grid{
  display:grid!important;
  grid-template-columns:1fr 1fr 1fr!important;
  gap:6px!important;
}
body[data-workspace="survey"] .survey-room-features-section{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  gap:8px!important;
  align-items:center!important;
}
body[data-workspace="survey"] .survey-room-features-section h4{margin-bottom:3px!important}
body[data-workspace="survey"] .survey-room-features-section .survey-help{
  margin:0!important;
  font-size:9px!important;
  line-height:1.25!important;
}
body[data-workspace="survey"] .survey-room-features-section button{
  min-height:32px!important;
  padding:5px 8px!important;
  font-size:9.5px!important;
  white-space:nowrap!important;
}
body[data-workspace="survey"] .survey-room-actions{
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  gap:7px!important;
}
body[data-workspace="survey"] .survey-room-actions button{
  min-height:35px!important;
  margin:0!important;
  padding:6px 8px!important;
  font-size:10px!important;
}
body[data-workspace="survey"] .survey-lshape{
  margin-top:6px!important;
  padding:6px!important;
}
body[data-workspace="survey"] .survey-lshape-head{
  margin-bottom:4px!important;
}
body[data-workspace="survey"] .survey-lshape-head strong{font-size:10px!important}
body[data-workspace="survey"] .survey-lshape-head small{font-size:8.5px!important;line-height:1.15!important}
body[data-workspace="survey"] .survey-wall-grid{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:4px!important;
}
body[data-workspace="survey"] .survey-wall-grid label{
  font-size:8.5px!important;
  margin:0!important;
}
body[data-workspace="survey"] .survey-wall-grid input{
  min-height:28px!important;
  height:28px!important;
  padding:4px 5px!important;
  font-size:10px!important;
}
body[data-workspace="survey"] .survey-lshape-status{
  margin-top:4px!important;
  font-size:8.5px!important;
}
@media(max-width:1100px){
  body[data-workspace="survey"] main{grid-template-columns:minmax(0,1fr) 400px!important}
  body[data-workspace="survey"] .survey-room-single-head small{display:none}
  body[data-workspace="survey"] .survey-tabs button{font-size:9px!important}
}

/* RC79 — compact screens keep a full-width canvas; editing panels are explicit overlays. */
.mobile-panel-toggle{display:none!important}
@media(max-width:700px){
 :root{--kf-rail:48px}
 body{padding-left:var(--kf-rail)!important}
 .workspace-rail{width:var(--kf-rail)!important;padding:6px 3px!important;gap:4px!important}
 .workspace-btn{min-height:54px!important}.workspace-btn strong{font-size:8px!important}.workspace-mark{height:38px!important}
 .app,body[data-workspace="survey"] .app{width:100%!important;min-width:0!important;height:100dvh!important;grid-template-rows:100px 44px minmax(0,1fr) 30px!important}
 .topbar{min-width:0!important;height:100px!important;display:flex!important;flex-direction:column!important;align-items:stretch!important;padding:5px 6px!important;gap:3px!important}
 .brand{height:37px!important;min-height:37px!important;min-width:0!important;max-width:none!important;width:100%!important;margin:0!important;padding:3px 8px!important;justify-content:center!important}
 .brand img{height:29px!important;max-height:29px!important;max-width:100%!important}
 .top-actions{width:100%!important;min-width:0!important;min-height:48px!important;margin:0!important;overflow-x:auto!important;overflow-y:hidden!important;display:flex!important;justify-content:flex-start!important;gap:2px!important}
 .top-actions .toolbar-group{display:flex!important;flex:0 0 auto!important;padding:0!important;gap:0!important}
 .top-actions button{min-width:43px!important;width:43px!important;height:43px!important;min-height:43px!important;padding:3px!important;font-size:15px!important}
 .top-actions button strong{font-size:8px!important}.top-actions .more-menu{flex:0 0 auto!important}
 .toolrow{min-width:0!important;display:flex!important;overflow-x:auto!important;overflow-y:hidden!important;padding:2px 5px!important;gap:2px!important;white-space:nowrap!important}
 .toolrow button{flex:0 0 auto!important;white-space:nowrap!important;padding:7px 8px!important;min-height:36px!important;font-size:11px!important}
 .toolrow .spacer{display:none!important}.view-controls{flex:0 0 auto!important}
 .mobile-panel-toggle{display:inline-flex!important;align-items:center!important}
 body[data-workspace="survey"] #mobileLibraryToggle{display:none!important}
 main,body.customer-mode main,body[data-workspace="survey"] main,body.properties-collapsed main{display:block!important;position:relative!important;min-width:0!important;min-height:0!important;overflow:hidden!important}
 main>.workspace,body[data-workspace="survey"] main>.workspace{display:block!important;width:100%!important;height:100%!important;min-width:0!important;grid-column:auto!important}
 main>.library-panel,main>.properties-panel,body[data-workspace="survey"] main>.properties-panel{display:none!important;position:fixed!important;z-index:950!important;left:var(--kf-rail)!important;right:0!important;top:144px!important;bottom:30px!important;width:auto!important;min-width:0!important;max-width:none!important;height:auto!important;overflow:auto!important;box-shadow:0 10px 25px #0005!important}
 body.mobile-library-open main>.library-panel{display:block!important}
 body.mobile-properties-open main>.properties-panel{display:block!important}
 body[data-workspace="survey"] #surveyPanel{height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;padding:0 9px 20px!important}
 body[data-workspace="survey"] .survey-pane,body[data-workspace="survey"] #surveyRoomPane{height:auto!important;max-height:none!important;overflow:visible!important}
 body[data-workspace="survey"] .survey-tabs{grid-template-columns:repeat(4,minmax(0,1fr))!important;position:static!important}
 body[data-workspace="survey"] .survey-room-single-head{grid-template-columns:1fr!important}.survey-room-single-head small{display:none!important}
 body[data-workspace="survey"] .survey-dim-grid{grid-template-columns:1fr!important}
 .properties-reopen{display:none!important}
 footer{min-width:0!important;overflow:hidden!important;font-size:9px!important;padding:0 6px!important;gap:7px!important}
 footer>span:not(#projectInfo):not(#saveStateInfo),footer>#healthStatus{display:none!important}
 #projectInfo{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0!important;flex:1!important}
 #saveStateInfo{flex:0 0 auto!important}
 .workspace-home-inner{padding:20px 14px!important}.workspace-page-head{grid-template-columns:1fr!important;gap:12px!important}.workspace-page-brand{max-width:100%!important}
 .quote-tabs,.build-tabs{overflow-x:auto!important;flex-wrap:nowrap!important}.quote-tabs button,.build-tabs button{flex:0 0 auto!important}
 .supply-table{overflow-x:auto!important}.supply-row{min-width:900px}.rate-grid,.quantity-grid,.build-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .app-modal .modal-card{max-width:calc(100vw - 20px)!important;max-height:calc(100dvh - 20px)!important;overflow:auto!important}
}

@media(max-width:700px){.topbar>.brand{flex:0 0 37px!important}.topbar>.top-actions{flex:0 0 48px!important;max-height:48px!important}}
@media(max-width:700px){
 .top-actions .toolbar-more{flex:0 0 48px!important;height:43px!important}
 .top-actions .toolbar-more>summary{height:43px!important;min-width:48px!important}
 .top-actions .toolbar-more-menu{position:fixed!important;top:100px!important;right:8px!important;left:auto!important;width:min(280px,calc(100vw - var(--kf-rail) - 16px))!important;max-height:calc(100dvh - 130px)!important;overflow:auto!important}
 .top-actions .toolbar-more-menu button{width:100%!important;height:auto!important;min-height:52px!important;padding:10px!important}
 .top-actions .toolbar-more-menu button strong{font-size:12px!important}
}

/* RC80: readable properties and explicit hidden controls. */
#properties label:not(.checkline){grid-template-columns:minmax(0,1fr)!important;gap:5px!important;line-height:1.4}#properties label:not(.checkline)>input,#properties label>select,#properties label>textarea{width:100%!important;min-width:0}#properties [hidden]{display:none!important}.property-help{font-size:12px;line-height:1.5;color:#596b76}.advanced-properties{padding:10px 0}.advanced-properties summary{cursor:pointer;font-weight:700;padding:8px 0;color:#b94d1a}.survey-service-list summary{min-height:44px;gap:10px}.survey-service-list summary input{width:auto!important;flex:none}

.library-guide{font-size:12px;line-height:1.5;margin:12px;color:#b9c9d3}
@media(max-width:700px){
 .workspace-page-head,body[data-workspace="home"] .workspace-page-head,body[data-workspace="project"] .workspace-page-head,body[data-workspace="quote"] .workspace-page-head,body[data-workspace="build"] .workspace-page-head{height:auto!important;min-height:0!important;margin-bottom:20px!important}
 .workspace-home{background:linear-gradient(180deg,#1b2e38 0,#203640 185px,var(--kf-ivory) 185px)!important}
}
/* RC82: keep measurement actions readable in the narrow survey panel. */
.survey-feature-row-head{flex-wrap:wrap;gap:6px}.survey-feature-row-head .reset-survey-position{font-size:11px;padding:6px 8px}
@media(max-width:600px){.survey-section-head{flex-wrap:wrap}.survey-section-head>div{min-width:0;max-width:100%}.survey-feature-actions{width:100%}.survey-feature-actions button{white-space:normal;max-width:100%}}

/* RC84 — survey desk: permanent navigation, roomy inline editor, visible room. */
body[data-workspace="survey"] main{grid-template-columns:minmax(620px,64%) minmax(0,1fr)!important}
body[data-workspace="survey"] main>.properties-panel{grid-column:1!important;grid-row:1!important;position:relative!important;display:block!important;inset:auto!important;width:100%!important;height:100%!important;overflow:hidden!important;background:#f4f1eb!important;border:0!important}
body[data-workspace="survey"] main>.workspace{grid-column:2!important;grid-row:1!important;border-left:1px solid #d6cfc5}
body[data-workspace="survey"] .properties-panel>.panel-title{display:none!important}
body[data-workspace="survey"] #surveyPanel{display:grid!important;grid-template-columns:148px minmax(0,1fr)!important;grid-template-rows:auto minmax(0,1fr) auto!important;gap:0!important;padding:0!important;height:100%!important;overflow:hidden!important}
body[data-workspace="survey"] #surveyPanel>.survey-head{display:flex!important;grid-column:1/-1;align-items:center;gap:14px;margin:0!important;padding:14px 18px!important;border-bottom:1px solid #d6cfc5;background:#fffdf9!important;position:static!important}
body[data-workspace="survey"] .survey-head h2{font-size:21px!important;margin:0!important}
body[data-workspace="survey"] .survey-head small{display:block!important;font-size:12px!important;margin-top:4px}
body[data-workspace="survey"] .survey-head-status{display:none!important}
body[data-workspace="survey"] .survey-photos-btn{margin-left:auto!important;font-size:12px!important;white-space:normal}
body[data-workspace="survey"] .survey-tabs{grid-column:1;grid-row:2;display:flex!important;flex-direction:column!important;position:static!important;overflow:auto!important;margin:0!important;padding:14px 8px!important;gap:7px!important;border-right:1px solid #d6cfc5;border-bottom:0;background:#eae5dd!important}
body[data-workspace="survey"] .survey-tabs button{justify-content:flex-start!important;text-align:left!important;white-space:normal!important;min-height:42px!important;padding:10px!important;font-size:12px!important;flex-shrink:0;color:#34434b!important}
body[data-workspace="survey"] .survey-tabs button.active{background:#fff8f1!important;color:#a34b23!important;border-color:#c86632!important;box-shadow:inset 3px 0 #c86632!important}
body[data-workspace="survey"] .survey-count{display:inline!important}
body[data-workspace="survey"] #surveyPanel>.survey-pane{grid-column:2;grid-row:2;height:auto!important;min-height:0!important;overflow:auto!important;padding:18px!important;scrollbar-gutter:stable;scrollbar-width:thin}
body[data-workspace="survey"] #surveyPanel [hidden]{display:none!important}
body[data-workspace="survey"] #surveyPanel .survey-card{height:auto!important;min-height:0!important;margin:0 0 12px!important;padding:16px!important;border-radius:10px!important}
body[data-workspace="survey"] #surveyPanel label{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:6px!important;margin:0!important;font-size:12px!important;line-height:1.4!important;color:#384850!important}
body[data-workspace="survey"] #surveyPanel label.checkline,body[data-workspace="survey"] #svWorks label{flex-direction:row!important;align-items:center!important;min-height:38px!important}
body[data-workspace="survey"] #surveyPanel input:not([type="checkbox"]),body[data-workspace="survey"] #surveyPanel select,body[data-workspace="survey"] #surveyPanel textarea{width:100%!important;min-width:0!important;padding:9px!important;font-size:14px!important;min-height:38px!important;box-sizing:border-box!important;background:#fff!important;color:#23343e!important;border:1px solid #c5c9c9!important}
body[data-workspace="survey"] #surveyPanel textarea{min-height:64px!important;resize:vertical!important}
body[data-workspace="survey"] #surveyPanel input[type="checkbox"]{width:18px!important;height:18px!important;flex-shrink:0}
body[data-workspace="survey"] #surveyPanel .survey-grid,body[data-workspace="survey"] #surveyPanel .survey-feature-grid,body[data-workspace="survey"] #surveyPanel .survey-wall-grid,body[data-workspace="survey"] #surveyPanel .survey-check-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;margin:12px 0!important}
body[data-workspace="survey"] #surveyPanel .survey-room-single-head{display:block!important;margin-bottom:12px!important}
body[data-workspace="survey"] #surveyPanel h3{font-size:15px!important;line-height:1.4!important;margin:0 0 12px!important}
body[data-workspace="survey"] #surveyPanel h4{font-size:12px!important}
body[data-workspace="survey"] #surveyPanel .survey-room-section{padding:12px 0!important;flex:none!important}
body[data-workspace="survey"] #surveyPanel .survey-help{font-size:12px!important;line-height:1.5!important}
body[data-workspace="survey"] #surveyPanel .survey-room-actions{display:flex!important;flex-wrap:wrap;gap:8px!important;margin-top:10px!important;flex:none!important}
body[data-workspace="survey"] .survey-navigation{grid-column:1/-1;display:flex;justify-content:space-between;gap:8px;padding:10px 14px;border-top:1px solid #d6cfc5;background:#fffdf9;z-index:2}
body[data-workspace="survey"] .survey-navigation button{font-size:12px;min-height:38px;margin:0}
#surveyShowPlan{display:none}
body[data-workspace="survey"] #surveyPanel .survey-feature-inactive{display:none!important}
.survey-feature-picker{display:flex;flex-wrap:wrap;gap:6px;margin:12px 0}
body[data-workspace="survey"] .survey-feature-picker button{font-size:12px!important;padding:8px 10px!important;background:#eee9e1!important;color:#34434b!important}
body[data-workspace="survey"] .survey-feature-picker button.active{background:#fff1e7!important;border-color:#bf622e!important;color:#99401c!important}
body[data-workspace="survey"] .survey-feature-row{margin:0!important;padding:12px!important;background:#f5f2ec!important}
body[data-workspace="survey"] .survey-feature-row-head{gap:8px;margin-bottom:12px;align-items:center}
body[data-workspace="survey"] .survey-service-list{display:grid!important;grid-template-columns:1fr!important;gap:12px!important}
body[data-workspace="survey"] .survey-service-list details{padding:10px!important}
body[data-workspace="survey"] .survey-service-list summary{list-style:none!important;cursor:default!important;pointer-events:none!important;font-size:12px!important;padding:0 0 8px!important}
body[data-workspace="survey"] .survey-service-list summary input{pointer-events:auto!important}
body[data-workspace="survey"] .survey-service-list summary>span{transform:none!important}
body[data-workspace="survey"] .survey-service-list summary>span:last-child{display:none!important}
body[data-workspace="survey"] #projectFilesModal{position:static!important;display:block!important;padding:0!important;background:transparent!important;inset:auto!important;z-index:auto!important}
body[data-workspace="survey"] #projectFilesModal[hidden]{display:none!important}
body[data-workspace="survey"] #projectFilesModal>div{width:100%!important;max-width:none!important;max-height:none!important;box-shadow:none!important;margin:0!important}
body[data-workspace="survey"] #projectFilesClose{display:none!important}
body[data-workspace="survey"] #projectFilesModal .project-files-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
@media(max-width:1100px){
 body[data-workspace="survey"] main{grid-template-columns:minmax(540px,67%) minmax(0,1fr)!important}
 body[data-workspace="survey"] #surveyPanel{grid-template-columns:120px minmax(0,1fr)!important}
 body[data-workspace="survey"] #surveyPanel>.survey-pane{padding:10px!important}
}
@media(max-width:850px){
 body[data-workspace="survey"] main{display:block!important;position:relative!important}
 body[data-workspace="survey"] main>.properties-panel{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;z-index:2!important;box-shadow:none!important}
 body[data-workspace="survey"] main>.workspace{display:none!important}
 body[data-workspace="survey"].survey-plan-visible main>.workspace{display:block!important;position:absolute!important;inset:0 0 59px!important;width:100%!important;height:auto!important}
 body[data-workspace="survey"].survey-plan-visible #surveyPanel>.survey-head,body[data-workspace="survey"].survey-plan-visible #surveyPanel>.survey-tabs,body[data-workspace="survey"].survey-plan-visible #surveyPanel>.survey-pane{visibility:hidden}
 body[data-workspace="survey"].survey-plan-visible main>.properties-panel{pointer-events:none;background:transparent!important}
 body[data-workspace="survey"].survey-plan-visible .survey-navigation{pointer-events:auto}
 body[data-workspace="survey"].survey-plan-visible #surveyPanel{background:transparent!important}
 body[data-workspace="survey"] #surveyShowPlan{display:block}
 body[data-workspace="survey"] #mobilePropertiesToggle{display:none!important}
 body[data-workspace="survey"] #surveyPanel{grid-template-columns:112px minmax(0,1fr)!important;height:100%!important}
 body[data-workspace="survey"] .survey-head{gap:6px!important}
 body[data-workspace="survey"] .survey-tabs button{font-size:11px!important;padding:8px!important}
 body[data-workspace="survey"] #surveyPanel .survey-card{padding:10px!important}
 body[data-workspace="survey"] .survey-navigation{padding:8px 6px;gap:4px}
 body[data-workspace="survey"] .survey-navigation button{font-size:10px;padding:6px!important}
}
@media(max-width:500px){
 body[data-workspace="survey"] #surveyPanel{grid-template-columns:92px minmax(0,1fr)!important}
 body[data-workspace="survey"] .survey-head h2{font-size:18px!important}
 body[data-workspace="survey"] .survey-photos-btn{max-width:100px;font-size:10px!important}
 body[data-workspace="survey"] #surveyPanel>.survey-pane{padding:8px!important}
 body[data-workspace="survey"] #surveyPanel .survey-grid,body[data-workspace="survey"] #surveyPanel .survey-feature-grid,body[data-workspace="survey"] #surveyPanel .survey-wall-grid,body[data-workspace="survey"] #surveyPanel .survey-check-grid{grid-template-columns:1fr!important}
 body[data-workspace="survey"] #surveyPanel .survey-section-head{display:block!important}
 body[data-workspace="survey"] .survey-tabs{padding:8px 4px!important}
 body[data-workspace="survey"] .survey-tabs button{padding:6px!important;min-height:40px!important}
}
body[data-workspace="survey"] #surveyPanel .survey-section-head{position:static!important;top:auto!important;z-index:auto!important;padding:0 0 10px!important}
body[data-workspace="survey"] #surveyPanel>.survey-head h2{display:block!important}
body[data-workspace="survey"] #surveyShowPlan{display:none!important}
body[data-workspace="survey"] #surveyPanel .survey-navigation{align-self:end}
body[data-workspace="survey"] #surveyPanel .survey-room-single-head h3{font-size:17px!important;letter-spacing:0!important;text-transform:none!important}
body[data-workspace="survey"] .project-files-toolbar{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}
@media(max-width:850px){
 body[data-workspace="survey"] #surveyShowPlan{display:block!important}
}
@media(max-width:500px){
 body[data-workspace="survey"] #surveyPanel{grid-template-columns:minmax(0,1fr)!important;grid-template-rows:auto auto minmax(0,1fr) auto!important}
 body[data-workspace="survey"] #surveyPanel>.survey-head{padding:10px 12px!important}
 body[data-workspace="survey"] #surveyPanel>.survey-head h2{display:none!important}
 body[data-workspace="survey"] #surveyPanel>.survey-head small{margin:0!important}
 body[data-workspace="survey"] #surveyPanel>.survey-tabs{grid-column:1;grid-row:2;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;padding:6px!important;gap:4px!important;border-right:0;border-bottom:1px solid #d6cfc5}
 body[data-workspace="survey"] #surveyPanel>.survey-tabs button{justify-content:center!important;text-align:center!important;min-height:30px!important;padding:5px!important;font-size:10px!important}
 body[data-workspace="survey"] #surveyPanel>.survey-pane{grid-column:1;grid-row:3}
 body[data-workspace="survey"] #surveyPanel .survey-grid,body[data-workspace="survey"] #surveyPanel .survey-feature-grid,body[data-workspace="survey"] #surveyPanel .survey-wall-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 body[data-workspace="survey"] #surveyPanel .survey-section-head{display:flex!important;flex-wrap:wrap!important}
 body[data-workspace="survey"] #surveyPanel .survey-section-head .survey-help{display:none!important}
 body[data-workspace="survey"] #surveyPanel .survey-feature-row-head{flex-wrap:wrap!important}
 body[data-workspace="survey"] #surveyPanel .survey-feature-row-head strong{width:100%}
 body[data-workspace="survey"] .survey-feature-row-head button{font-size:10px!important;min-height:30px!important}
}
body[data-workspace="survey"] #surveyPanel .survey-service-list summary{pointer-events:auto!important}
body[data-workspace="survey"] #surveyPanel .survey-room-features-section{display:none!important}
body[data-workspace="survey"] #surveyPanel .survey-room-single-head small{display:none!important}
body[data-workspace="survey"] #surveyPanel .survey-room-actions{position:sticky!important;bottom:0;z-index:1;background:#fffdf9;padding:10px 0!important}
body[data-workspace="survey"] #projectFilesModal .modal-card{background:#fffdf9!important;color:#30414b!important;border:1px solid #d6cfc5!important}
body[data-workspace="survey"] #projectFilesModal h2,body[data-workspace="survey"] #projectFilesModal strong,body[data-workspace="survey"] #projectFilesModal label{color:#30414b!important}
body[data-workspace="survey"] #projectFilesModal .project-files-add-hint{background:#f5f0e8!important;color:#52616a!important;display:block!important;line-height:1.5;padding:12px!important}
body[data-workspace="survey"] #projectFilesModal .project-files-add-hint span{display:block!important;color:#52616a!important}
body[data-workspace="survey"] #projectFilesModal .project-files-empty{background:#f5f0e8!important;color:#52616a!important}
/* RC85 — room builder and direct wall-measurement editing. */
.room-shape-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:8px 0 12px}
body[data-workspace="survey"] #surveyPanel .room-shape-choices button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;background:#fff;color:#34434b;border:1px solid #c9c9c3;border-radius:10px;padding:12px 6px;margin:0;min-height:90px;font-size:12px}
.room-shape-choices svg{width:64px;height:44px;fill:#f1ede5;stroke:#57656b;stroke-width:3}
.room-shape-choices .galley-lines{fill:none;stroke:#ad6743;stroke-width:6}
body[data-workspace="survey"] #surveyPanel .room-shape-choices button.active{border:2px solid #bf602e;background:#fff4e9;color:#9e431e}
.room-shape-choices button.active svg{stroke:#b65325;fill:#f8e4d1}
body[data-workspace="survey"] #surveyPanel .survey-template-row{grid-template-columns:1fr auto!important;align-items:end!important}
body[data-workspace="survey"] #surveyPanel .survey-lshape-head small{font-size:12px!important;line-height:1.5!important}
body[data-workspace="survey"] #surveyPanel .survey-lshape-head strong{font-size:14px!important}
body[data-workspace="survey"] #surveyPanel .survey-lshape-status{font-size:12px!important;line-height:1.5!important;margin-top:10px}
body[data-workspace="survey"] #surveyPanel .survey-room-shape-section>h4{display:none}
body[data-workspace="survey"] #surveyPanel .survey-room-single-head{margin-bottom:0!important}
body[data-workspace="survey"] #surveyPanel .survey-room-single-head .survey-eyebrow{display:none!important}
.room-builder-status{font-size:12px;line-height:1.5;padding:10px 12px;background:#ecf3ed;border:1px solid #c9dbca;border-radius:8px;color:#31563a;margin:10px 0}
.room-builder-status.error{background:#fff0e9;border-color:#ce8260;color:#8f351c}
#roomMeasurementButtons{position:absolute;inset:0;pointer-events:none;z-index:5}
#roomMeasurementButtons[hidden],#roomMeasureEditor[hidden]{display:none!important}
#roomMeasurementButtons .room-measure-hit{position:absolute;pointer-events:auto;background:transparent;border:1px solid transparent;border-radius:8px;cursor:text;padding:0;min-width:24px;min-height:24px;touch-action:manipulation}
#roomMeasurementButtons .room-measure-hit:hover,#roomMeasurementButtons .room-measure-hit:focus-visible{outline:2px solid #c4602c;outline-offset:3px;box-shadow:0 0 0 5px #fff9}
#roomMeasurementButtons .room-measure-hit:disabled{pointer-events:none}
#roomMeasureEditor{position:absolute;z-index:25;width:270px;box-sizing:border-box;padding:14px;background:#fffdf9;border:1px solid #bd632e;border-radius:10px;box-shadow:0 6px 24px #14272e33;color:#293c45;font:13px 'Segoe UI',sans-serif}
#roomMeasureEditor>label{display:block;font-weight:750;margin-bottom:8px}
.room-measure-input{display:flex;align-items:center;gap:8px}
#roomMeasureValue{width:100%;min-width:0;font:700 18px 'Segoe UI',sans-serif;padding:8px;border:1px solid #aebac0;border-radius:6px;color:#21343f;background:white;box-sizing:border-box}
#roomMeasureEditor small{display:block;font-size:11px;line-height:1.5;margin-top:8px;color:#5a6970}
#roomMeasureError{color:#9b371b;font-size:12px;line-height:1.4;max-height:76px;overflow:auto;margin:8px 0}
.room-measure-actions{display:flex;gap:8px;margin-top:10px}
.room-measure-actions button{border:1px solid #c5bbb0;padding:8px 14px;border-radius:6px;background:#fffdf9;color:#34454e;cursor:pointer}
.room-measure-actions button[type="submit"]{background:#b95828;color:white;border-color:#b95828}
@media(max-width:500px){body[data-workspace="survey"] #surveyPanel .room-shape-choices button{font-size:10px;min-height:76px;padding:8px 3px}.room-shape-choices svg{width:48px;height:34px}.room-shape-choices{gap:5px}}
@media print{#roomMeasurementButtons,#roomMeasureEditor{display:none!important}}
body[data-workspace="survey"] #surveyPanel .survey-template-row>label{display:none!important}
body[data-workspace="survey"] #surveyPanel .survey-template-row{display:flex!important;justify-content:flex-end!important;margin:0 0 8px!important}
body[data-workspace="survey"] #surveyPanel .survey-room-shape-section{padding-top:4px!important}
body[data-workspace="survey"] #surveyPanel .room-shape-choices button{min-height:74px!important;padding:8px 6px!important;gap:4px!important}
body[data-workspace="survey"] #surveyPanel .survey-lshape-head small{font-size:11px!important}
body[data-workspace="survey"] #surveyPanel .survey-wall-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px!important}
body[data-workspace="survey"] #surveyPanel .survey-wall-grid label{display:grid!important;grid-template-columns:20px minmax(0,1fr)!important;grid-template-rows:auto auto!important;gap:4px!important;align-items:center!important;font-size:11px!important}
body[data-workspace="survey"] #surveyPanel .survey-wall-grid input{grid-column:1/-1!important;grid-row:2!important}
body[data-workspace="survey"] #surveyPanel .survey-wall-grid .wall-chip{grid-column:1!important;grid-row:1!important;margin:0!important}
body[data-workspace="survey"] #surveyPanel .survey-lshape{padding:8px!important}
@media(max-width:500px){body[data-workspace="survey"] #surveyPanel .survey-wall-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
body[data-workspace="survey"] #surveyPanel .survey-room-builder{position:relative!important}
body[data-workspace="survey"] #surveyPanel .survey-rotate-btn{position:absolute!important;right:16px!important;top:10px!important;min-height:30px!important;font-size:11px!important}
body[data-workspace="survey"] #surveyPanel .survey-template-row{display:contents!important}
body[data-workspace="survey"] #surveyPanel .survey-room-actions{display:none!important}
body[data-workspace="survey"] #surveyPanel .survey-dim-grid.lshape-active>label:nth-child(-n+2){display:none!important}
body[data-workspace="survey"] #surveyPanel .survey-room-dimensions-section:has(.lshape-active)>h4{display:none!important}
body[data-workspace="survey"] #surveyPanel .survey-room-dimensions-section{padding:8px 0!important}
body[data-workspace="survey"] #surveyPanel .survey-dim-grid{margin:6px 0!important}
body[data-workspace="survey"] #surveyPanel .room-builder-status{margin:8px 0!important;padding:8px 10px!important}
body[data-workspace="survey"] #createSurveyRoom{margin:0!important;white-space:normal!important}
body[data-workspace="survey"] #createSurveyRoom[hidden]{display:none!important}
@media(max-width:850px){body[data-workspace="survey"][data-survey-tab="room"] #surveyPrev{display:none!important}}
body[data-workspace="survey"] #surveyPanel .survey-rotate-btn{width:auto!important;max-width:130px!important}
body[data-workspace="survey"] #surveyPanel .survey-room-single-head h3{padding-right:104px!important}
#roomMeasureEditor{max-height:calc(100% - 16px);overflow:auto}
/* RC87 — compact item editing without changing the survey desk. */
body[data-workspace="design"] main{grid-template-columns:245px minmax(0,1fr) 370px}
body[data-workspace="design"] #properties section{padding:9px 13px!important}
body[data-workspace="design"] #properties label:not(.checkline){display:grid!important;grid-template-columns:minmax(0,1fr) 144px!important;gap:8px!important;align-items:center!important;margin:5px 0!important;font-size:12px!important}
body[data-workspace="design"] #properties label input,body[data-workspace="design"] #properties label select{padding:6px!important;min-height:30px!important;width:100%!important}
body[data-workspace="design"] #properties #pNote{min-height:55px!important;max-height:100px;resize:vertical}
body[data-workspace="design"] #properties .object-head{padding:12px 14px!important}
body[data-workspace="design"] #properties h3{margin-bottom:6px!important}
body[data-workspace="design"] #properties .property-help{font-size:11px;line-height:1.4;margin:6px 0}
body[data-workspace="design"] #properties .quick-notes{gap:4px}
body[data-workspace="design"] #properties .quick-notes button{font-size:10px;padding:4px!important}
.library-help{margin:10px;padding:10px;border:1px solid #56656c;border-radius:8px;font-size:12px;color:#c4cdd2}.library-help summary{cursor:pointer;color:#fff;font-weight:700}.library-help .library-guide{margin:8px 0!important;padding:0!important}
.trader-setup{display:grid;grid-template-columns:1fr 1fr;gap:16px;max-width:950px}.trader-setup label{display:flex;flex-direction:column;gap:7px;font-size:13px;color:#40535c}.trader-setup input,.trader-setup textarea{box-sizing:border-box;width:100%;padding:11px;border:1px solid #bbc5ca;border-radius:6px;background:white;color:#213540;font:inherit}.trader-setup .terms-field{grid-column:1/-1}.rate-confirm{display:flex!important;flex-direction:row!important;align-items:center;gap:8px!important;margin-top:8px;font-size:13px}.rate-confirm input[type="checkbox"]{width:18px!important;height:18px;flex:none}.first-run-guide{font-size:13px!important;line-height:1.6!important;background:#f5efe6;padding:12px;border-radius:8px}
#phoneActions{display:none}.phone-extra-tools{display:none}
@media(max-height:800px){body[data-workspace="survey"] #svWorksNotes{min-height:42px!important;height:48px!important}}
@media(max-width:1100px) and (min-width:701px){body[data-workspace="design"] main{grid-template-columns:210px minmax(0,1fr) 330px}}
@media(max-width:700px){
 body[data-workspace="design"] #phoneActions{display:grid!important;position:fixed;left:var(--kf-rail,48px);right:0;bottom:26px;height:62px;grid-template-columns:repeat(5,minmax(0,1fr));gap:3px;padding:5px 4px;box-sizing:border-box;z-index:1300;background:#22353f;border-top:1px solid #50616b}
 #phoneActions[hidden]{display:none!important}
 #phoneActions>button,#phoneActions>details>summary{display:flex!important;align-items:center;justify-content:center;flex-direction:column;gap:2px;min-width:0!important;height:50px!important;margin:0!important;padding:5px 2px!important;box-sizing:border-box;background:#2c424d;color:#fff;border:1px solid #4c626d;border-radius:6px;font-size:10px!important;cursor:pointer;text-align:center}
 #phoneActions>button span{font-size:15px}#phoneActions>button strong,#phoneActions strong{font-size:10px!important}
 body[data-workspace="design"] .app{grid-template-rows:100px 44px minmax(0,1fr) 26px!important;padding-bottom:62px!important;box-sizing:border-box!important}
 body[data-workspace="design"] .top-actions .toolbar-group[aria-label="Output"],body[data-workspace="design"] .top-actions .toolbar-group[aria-label="Edit"]{display:none!important}
 body[data-workspace="design"] .top-actions{display:flex!important;justify-content:center!important;overflow:visible!important}
 body[data-workspace="design"] .top-actions .toolbar-group{display:flex!important;justify-content:center;width:100%;gap:8px!important}
 body[data-workspace="design"] .top-actions button{min-width:46px!important;width:46px!important;padding:4px!important}
 body[data-workspace="design"] .toolrow{overflow-x:auto!important;overflow-y:hidden!important;white-space:nowrap}
 body[data-workspace="design"] main>.library-panel,body[data-workspace="design"] main>.properties-panel{bottom:88px!important}
 body[data-workspace="design"] #toolbarMore{position:static!important;min-width:0!important}
 body[data-workspace="design"] #toolbarMore .toolbar-more-menu{display:none!important;position:fixed!important;left:calc(var(--kf-rail,48px) + 6px)!important;right:6px!important;top:auto!important;bottom:94px!important;width:auto!important;max-height:calc(100dvh - 245px);overflow:auto;z-index:1500}
 body[data-workspace="design"] #toolbarMore[open] .toolbar-more-menu{display:block!important}
 body[data-workspace="design"] .phone-extra-tools{display:flex;gap:5px;padding:8px}
 body[data-workspace="design"] .phone-extra-tools button{display:block!important;flex:1!important;min-height:38px!important;text-align:center}
 body[data-workspace="design"] #properties label:not(.checkline){grid-template-columns:minmax(0,1fr) 130px!important}
 .trader-setup{grid-template-columns:1fr}.trader-setup .terms-field{grid-column:1}
}
@media print{#phoneActions{display:none!important}}
@media(max-width:700px){body[data-workspace="design"] .app{padding-bottom:0!important}body[data-workspace="design"] main{margin-bottom:62px!important}body[data-workspace="design"] #phoneActions[hidden]{display:none!important}}
body[data-workspace="design"] #properties>.object-head{min-height:0!important;height:auto!important;padding:8px!important;margin:0!important}
body[data-workspace="design"] #properties>section{margin:6px 0!important;padding:8px!important}
body[data-workspace="design"] #properties label.checkline{display:flex!important;align-items:center!important;gap:8px!important;font-size:11px!important;margin:5px 0!important}
body[data-workspace="design"] #properties label.checkline input[type="checkbox"]{width:16px!important;height:16px!important;min-height:16px!important;flex:none}
body[data-workspace="design"] #properties label:not(.checkline){margin:3px 0!important;line-height:1.25!important}
body[data-workspace="design"] #properties label:has(#pNote){display:block!important}body[data-workspace="design"] #properties #pNote{width:100%!important;min-height:45px!important;height:45px!important;margin-top:5px}
body[data-workspace="design"] #properties .advanced-properties{padding:3px 0!important}body[data-workspace="design"] #properties .advanced-properties summary{padding:6px 0!important;font-size:12px}
body[data-workspace="design"] #properties .note-shortcuts{margin:5px 0;font-size:11px}body[data-workspace="design"] #properties .note-shortcuts summary{cursor:pointer;color:#99502b}
body[data-workspace="design"] #properties{padding:8px!important}
body[data-workspace="design"] #properties>.object-head .cab-icon{font-size:28px!important}
body[data-workspace="design"] #properties .position-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px!important}
body[data-workspace="design"] #properties .position-grid>*{grid-column:1/-1;margin:0!important}
body[data-workspace="design"] #properties label.position-cell{display:flex!important;flex-direction:column!important;grid-column:auto!important;gap:4px!important;align-items:stretch!important;font-size:11px!important}
body[data-workspace="design"] #properties .general-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px!important}
body[data-workspace="design"] #properties .general-grid>*{grid-column:1/-1}
body[data-workspace="design"] #properties label.general-cell{display:flex!important;flex-direction:column!important;grid-column:auto!important;align-items:stretch!important;font-size:11px!important;gap:4px!important}
@media(max-width:700px){body[data-workspace="design"] #properties label:not(.checkline){display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:5px!important}body[data-workspace="design"] #properties .position-grid,body[data-workspace="design"] #properties .general-grid{grid-template-columns:1fr!important}body[data-workspace="design"] #properties label.position-cell,body[data-workspace="design"] #properties label.general-cell{grid-column:1/-1!important}}
body[data-workspace="design"] .properties-panel>.panel-title{height:40px!important;min-height:40px!important;padding:9px 12px!important;box-sizing:border-box!important}
body[data-workspace="design"] #properties{margin:6px!important;padding:6px!important}
body[data-workspace="design"] #properties>section{padding:6px!important}
body[data-workspace="design"] #properties>.object-head{padding:5px!important}
body[data-workspace="design"] #properties .object-head h2{font-size:16px!important;line-height:1.3!important;margin:0 0 3px!important}
body[data-workspace="design"] #properties .dimensions-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px!important}
body[data-workspace="design"] #properties .dimensions-grid h3{grid-column:1/-1}
body[data-workspace="design"] #properties .dimensions-grid label:not(.checkline){display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:4px!important;font-size:11px!important}
@media(max-width:700px){body[data-workspace="design"] #properties .dimensions-grid{grid-template-columns:1fr!important}}

/* RC88 3D inspection */
#kf3D{width:calc(100vw - 32px);max-width:1500px;height:calc(100dvh - 32px);max-height:none;padding:0;border:1px solid #59616a;border-radius:16px;background:#20272e;color:#f4f1ea;overflow:hidden}
#kf3D[open]{display:flex;flex-direction:column}#kf3D::backdrop{background:#091017d9}#kf3D header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 20px}#kf3D h2{margin:0;font-size:21px}#kf3D h2 small{font-size:11px;color:#e5ad78;margin-left:8px}#kf3D header p{margin:5px 0 0;color:#b9c2c8;font-size:12px}#kf3D button{min-width:42px;min-height:42px;white-space:nowrap}#kf3D .kf3d-tools{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:8px 20px 14px}#kf3D label{display:flex;align-items:center;gap:7px;font-size:12px;margin:0}#kf3D input[type=checkbox]{width:18px;height:18px}#kf3D input[type=range]{width:100px}#kf3D .kf3d-stage{position:relative;flex:1;min-height:100px;background:#eae7e1}#kf3D canvas{width:100%;height:100%;display:block;touch-action:none;cursor:grab}#kf3D canvas:active{cursor:grabbing}#kf3D footer{padding:10px 20px;font-size:11px;line-height:1.5;color:#bec6cb}#kf3D .kf3d-empty{position:absolute;left:16px;right:16px;top:12px;text-align:center;color:#454b4b;pointer-events:none}#kf3D .kf3d-empty[hidden]{display:none}#kf3D :focus-visible{outline:3px solid #d89c69;outline-offset:-3px}
@media(max-width:700px){#kf3D{width:100vw;height:100dvh;max-width:none;margin:0;border:0;border-radius:0}#kf3D header{padding:12px}#kf3D h2{font-size:17px}#kf3D .kf3d-tools{padding:0 12px 10px;gap:6px}#kf3D footer{padding:8px 12px;padding-bottom:max(8px,env(safe-area-inset-bottom))}#kf3D header button{font-size:12px}#view3DBtn{display:inline-flex!important}}
#kf3D header,#kf3D footer,#kf3D .kf3d-tools{flex-shrink:0}#kf3D footer{position:static;display:block;width:auto;height:auto;min-height:0;overflow:visible;white-space:normal;text-overflow:clip}#kf3D button{background:#f4f0e9;color:#24313a;border:1px solid #a7aaa8;border-radius:6px;padding:8px 12px;cursor:pointer}#kf3D button:hover{background:#e6d5c4}#kf3D input[type=range]{accent-color:#c75717}
/* RC89 navigation audit: no squeezed cards or off-screen navigation. */
.home-flow{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:12px!important;align-items:stretch!important;width:100%!important}
.home-flow>i{display:none!important}.home-flow>[data-go]{display:flex!important;flex-direction:column!important;position:relative!important;width:auto!important;min-width:0!important;max-width:none!important;margin:0!important;padding:16px!important;transform:none!important;overflow-wrap:normal!important;word-break:normal!important;min-height:104px!important}
.home-flow .flow-icon{position:static!important;align-self:flex-start!important;width:auto!important;transform:none!important}.home-flow strong,.home-flow span{width:auto!important;max-width:100%!important;white-space:normal!important}
.home-welcome h2{font-size:clamp(24px,3vw,36px)!important;line-height:1.2!important}.home-welcome{padding:22px!important}.home-actions{display:flex!important;flex-wrap:wrap!important;gap:10px!important}.home-actions button{min-height:44px!important;white-space:normal!important}
.first-run-guide{font-size:12px!important;padding:10px!important}.workspace-home-inner{width:100%!important;max-width:1380px!important;min-width:0!important;box-sizing:border-box}
.quote-tabs,.build-tabs,.panel-pages{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:6px!important;white-space:normal!important;overflow:visible!important;position:sticky!important;top:0!important;z-index:8;background:#eae5dd!important;padding:10px!important;margin:0!important}
.quote-tabs button,.build-tabs button,.panel-pages button{min-width:0!important;white-space:normal!important;min-height:40px!important;margin:0!important;padding:8px!important;font-size:12px!important;line-height:1.3!important;overflow-wrap:break-word!important}
.panel-pages{grid-template-columns:repeat(3,minmax(0,1fr))!important;border-bottom:1px solid #d2ccc2}
.panel-pages button{border:1px solid #b8c3c7;border-radius:7px;background:white;color:#334953;cursor:pointer}.panel-pages button[aria-pressed="true"]{background:#243944;color:white;border-color:#243944}
.panel-page{display:none!important;min-width:0;max-height:calc(100dvh - 290px);overflow:auto;overscroll-behavior:contain;padding:8px;box-sizing:border-box}.panel-page.page-active{display:block!important}
#properties>.panel-pages{position:sticky!important;top:0!important;padding:6px!important}#properties>.panel-pages button{font-size:11px!important;padding:6px!important}#properties>.object-head{margin-top:6px!important}
#properties .panel-page{max-height:calc(100dvh - 300px)!important;padding:0!important}#properties .panel-page>section{margin:6px 0!important;padding:8px!important}
.backup-grid.paged-window{display:block!important;padding:0!important}.backup-grid .panel-pages{grid-template-columns:repeat(4,minmax(0,1fr))!important}.backup-grid .backup-section{margin:0!important}
.project-main-panel.paged-window{padding:0!important}.project-main-panel .panel-pages{grid-template-columns:repeat(4,minmax(0,1fr))!important}.project-main-panel .panel-page{padding:18px!important;max-height:calc(100dvh - 370px)}
.project-files-modal-card>.paged-window{min-height:0;overflow:hidden}.project-files-modal-card .panel-page{max-height:calc(100dvh - 250px)}
.category-picker{position:sticky;top:0;z-index:5;display:flex;flex-direction:column;gap:6px;padding:12px;background:#253a45;color:white;font-size:12px;font-weight:700}.category-picker select{width:100%;min-width:0;background:white;color:#263c47;padding:10px;border:1px solid #9faeb6;border-radius:6px;font:inherit}
.category-paged>.category:not(.category-current){display:none!important}.category-paged .library-help{margin:8px!important}.category-paged>.category-current{margin-top:8px}
.quick-tour:not([hidden]){display:grid!important;position:fixed!important;inset:0!important;place-items:center!important;background:#13222d99!important;z-index:10000!important;padding:12px!important;box-sizing:border-box}
#quickTour[hidden]{display:none!important}#tourCard{position:relative!important;inset:auto!important;left:auto!important;top:auto!important;transform:none!important;width:min(480px,100%)!important;max-width:100%!important;max-height:calc(100dvh - 24px)!important;overflow:auto!important;box-sizing:border-box}
#tourDragHandle{display:none!important}.guide-close{display:block;margin:0 0 12px auto;padding:8px 12px;border:1px solid #8c969d;border-radius:6px;background:#fff;color:#233945;cursor:pointer}.tour-actions{display:flex!important;flex-wrap:wrap!important;gap:8px!important;position:sticky;bottom:0;background:#202c34;padding:10px 0}.tour-actions>span{display:none!important}.tour-actions button{flex:1!important;min-width:65px!important;min-height:42px!important}.tour-check{display:flex!important;align-items:flex-start;gap:8px!important}.tour-check input{flex:none}
.modal-head{flex-shrink:0!important;position:sticky;top:0;z-index:9}.app-modal .modal-card{min-width:0!important;width:min(1000px,calc(100vw - 24px));max-height:calc(100dvh - 24px)!important;box-sizing:border-box}.app-modal button.icon-close{flex-shrink:0;min-width:40px;min-height:40px}
.supply-table,.pricing-table,.schedule-table-wrap{overflow:auto;max-width:100%;overscroll-behavior:contain}.supply-row.head,.pricing-tr.head,thead{position:sticky;top:0;z-index:2}
@media(max-width:1000px){.home-flow{grid-template-columns:repeat(2,minmax(0,1fr))!important}.project-stage-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.quote-tabs{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(max-width:600px){.workspace-home-inner{padding:12px!important}.workspace-page-head{padding:12px!important}.home-welcome{padding:16px!important}.home-flow{gap:8px!important}.home-flow>[data-go]{padding:12px!important;min-height:90px!important}.home-flow strong{font-size:14px!important}.home-flow span{font-size:12px!important}.build-tabs,.project-main-panel .panel-pages,.backup-grid .panel-pages{grid-template-columns:repeat(2,minmax(0,1fr))!important}.quote-tabs button,.build-tabs button{font-size:11px!important}.panel-page{max-height:calc(100dvh - 260px)}.project-overview-actions,.project-doc-actions{display:flex!important;flex-wrap:wrap!important}.project-overview-actions>button,.project-doc-actions>button{flex:1 1 125px!important;white-space:normal!important;min-height:42px!important}}
@media print{.panel-pages,.category-picker,.guide-close{display:none!important}}
#properties .property-save-bar{position:sticky;bottom:0;z-index:9;background:#f6f4ef;padding:8px 0 0}#properties .property-save-bar button{width:100%;min-height:42px}#properties .panel-page{max-height:calc(100dvh - 355px)!important}
#worktopWorkspacePanel .panel-page{max-height:calc(100dvh - 330px)}#worktopWorkspacePanel .worktop-head{padding:8px}#worktopWorkspacePanel .panel-pages{padding:6px!important}
.quote-tabs button.active,.build-tabs button.active{background:#243944!important;color:#fff!important;border-color:#243944!important}
.list-row-hidden{display:none!important}.list-navigation{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:10px 0}.list-navigation input{flex:1 1 200px;min-width:0;padding:10px;border:1px solid #aeb9bc;border-radius:6px}.list-navigation button{min-height:40px}.list-navigation span{font-size:12px}.list-navigation button:disabled{opacity:.45;cursor:default}
.rate-grid.paged-window{display:block!important}.rate-grid .panel-page.page-active{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.rate-grid .pricing-settings{grid-column:1/-1}
@media(max-width:600px){.rate-grid .panel-page.page-active{grid-template-columns:1fr}.list-navigation input{flex-basis:100%}.list-navigation span{flex:1}}
@media print{.list-navigation{display:none!important}.list-row-hidden{display:grid!important}}
#buildWorkspaceBody.paged-window{padding:0!important}#buildWorkspaceBody .panel-page{max-height:calc(100dvh - 285px);padding:16px}#buildWorkspaceBody .panel-page>.build-section{margin:0 0 12px}
#quickTour .tour-check{display:none!important}
#scheduleDrawer{inset:12px 12px 12px auto;width:min(1000px,calc(100vw - 24px));max-height:calc(100dvh - 24px);z-index:1600;display:flex;flex-direction:column}#scheduleDrawer[hidden]{display:none!important}#scheduleDrawer .schedule-head{padding:12px;gap:12px;flex-wrap:wrap}#scheduleDrawer .schedule-head h2{font-size:20px}#scheduleDrawer .schedule-head button{min-height:40px}#scheduleDrawer .schedule-summary{padding:10px 12px;font-size:12px}#scheduleDrawer .schedule-table-wrap{height:auto;min-height:0;flex:1;overflow:hidden}#scheduleDrawer .panel-page{max-height:calc(100dvh - 235px);color:#e9edef}#scheduleDrawer table{min-width:640px}#scheduleDrawer .panel-page h3{margin-top:8px}
#worktopWorkspacePanel .panel-pages{grid-template-columns:repeat(2,minmax(0,1fr))!important}#worktopWorkspacePanel>#updateWorktops{position:sticky;bottom:0;z-index:9;min-height:42px}#selectedWorktopEditor{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}#selectedWorktopEditor[hidden]{display:none}#selectedWorktopEditor>h3,#selectedWorktopEditor>div,#selectedWorktopEditor>p,#selectedWorktopEditor>button,#selectedWorktopEditor>label:has(textarea){grid-column:1/-1}#selectedWorktopEditor label{font-size:12px;margin:4px 0;min-width:0}#selectedWorktopEditor input,#selectedWorktopEditor select{width:100%;min-width:0;box-sizing:border-box}
.workspace-rail{overflow-y:auto}.rail-support{margin-top:auto;display:grid;gap:6px;padding-top:12px;flex-shrink:0}.rail-support button{padding:8px 2px!important;min-height:38px!important;font-size:10px!important;background:#263d48!important;color:#f6f3ed!important;border:1px solid #52636b!important;border-radius:6px!important;cursor:pointer}#worktopQuickEntry{min-width:0;white-space:normal}
@media(max-width:1100px){#worktopQuickEntry{font-size:10px;padding:6px!important}}
.scope-groups.paged-window{display:block!important}.scope-groups .panel-page>section{margin:0!important}.scope-groups .panel-page{max-height:calc(100dvh - 365px)}
