/* RAM workspace design system: colour communicates function, status and hierarchy. */
.stat-link{display:block;text-align:left;width:100%;background:white;cursor:pointer;color:inherit}.stat-link:hover{border-color:var(--stat-accent);box-shadow:0 8px 24px #18394d12;transform:translateY(-2px)}.stat-action{display:flex!important;justify-content:space-between;align-items:center;margin-top:12px;color:var(--stat-accent)!important;font-size:11px!important}.stat-action .icon{width:14px;height:14px}.project-card{cursor:pointer}.project-card button.project-cover{display:block;width:100%;border:0;border-radius:0;padding:0;position:relative;text-align:left;overflow:hidden}.project-title-link{padding:0;border:0;background:none;font:inherit;letter-spacing:inherit;color:inherit;text-align:left;display:block}.project-title-link:hover{color:#087f83}.project-numbers button{padding:4px 2px;background:none;border:0;color:#536f80;font-size:11px;gap:4px}.project-numbers button:hover{color:#087f83;background:#eaf5f4}.project-card button.project-estimate{width:100%;border:0;border-radius:6px;background:transparent;cursor:pointer}.project-card button.project-estimate:hover{background:#eff8f5}.recent-event{display:grid;width:100%;text-align:left;border:0;background:none;border-radius:8px;white-space:normal}.recent-event:hover{background:#edf6f6}.recent-event>div{min-width:0}.activity-highlight{background:#e5f6f1;box-shadow:inset 4px 0 #168b7e}.directory-results{display:grid;gap:8px;max-height:48vh;overflow:auto}.directory-result{display:grid;grid-template-columns:1fr 20px;text-align:left;gap:7px;padding:14px;background:#f5fafb;border:1px solid #dce8ed}.directory-result strong,.directory-result small{overflow-wrap:anywhere;grid-column:1}.directory-result small{font-size:11px;color:#65808d}.directory-result>.icon{grid-column:2;grid-row:1/3}.directory-result:hover{background:#e4f4ef;border-color:#9ecdbd}.live-measurement{flex-shrink:0;margin:12px 14px 4px;padding:14px;background:linear-gradient(120deg,#e8f7f2,#f0f7ff);border:1px solid #a7d9cc;border-radius:10px}.live-measurement[hidden]{display:none}.live-heading{display:flex;gap:7px;align-items:center;color:#267d68;font-size:11px;font-weight:650}.live-heading .dot{background:#279e7b}.live-value{display:block;font-size:28px;color:#153f51;margin:10px 0;font-variant-numeric:tabular-nums}.live-value small{font-size:15px}.live-measurement p{font-size:12px;margin:6px 0;color:#385e70}.live-measurement>small{font-size:11px;line-height:1.6;color:#536e7a}.live-footnote{font-size:10px;color:#527c70;line-height:1.5;margin-top:10px}.measure-list.has-live-preview>.empty{display:none}.register:has(.live-measurement:not([hidden])) .measure-list{min-height:60px}.register-bottom:before{content:'SAVED SHEET TOTALS';display:block;font-size:9px;letter-spacing:1px;color:#6b8290;margin-bottom:10px}
.drawing-set-controls select{border:1px solid #cbdde5;border-radius:7px;background:#f7fbfc;color:#244f60;min-height:34px}
[data-upload-status][data-state=error]{color:#ac3b2e;font-weight:600}[data-upload-status][data-state=success]{color:#217b57;font-weight:600}
.drawing-set-controls{display:grid;gap:8px;padding:12px 0}.drawing-set-controls label{font-size:11px;display:grid;gap:6px}.drawing-set-controls select{max-width:100%;width:100%;font-size:11px;padding:7px}.drawing-set-controls button{font-size:11px}.drawing-item .set-label{color:#087f83;font-weight:650}.drawing-import-dialog{width:min(980px,95vw);max-width:95vw}.upload-review-list{max-height:42vh;overflow:auto;border:1px solid #dbe5eb;border-radius:9px}.upload-review-row{display:grid;grid-template-columns:minmax(0,1fr) 180px;gap:9px;padding:12px;border-bottom:1px solid #e4ebef}.upload-review-row label{display:flex;align-items:flex-start;gap:9px;min-width:0}.upload-review-row label span{display:grid;gap:5px;overflow-wrap:anywhere}.upload-review-row input[type=checkbox]{flex-shrink:0}.upload-review-row small{font-size:11px;overflow-wrap:anywhere}.upload-review-row>small{grid-column:1/-1;color:#346b70}.upload-review-row select{min-width:0;width:100%}.upload-bulk{display:flex;gap:12px;align-items:end}.upload-bulk label{flex:1;display:grid;gap:7px}.drawing-set-list .between{gap:10px;padding:10px 0;flex-wrap:wrap}.drawing-set-list button{font-size:11px}.drawing-import-dialog .modal-body{display:grid}.drawing-set-controls{min-width:120px}@media(max-width:700px){.upload-review-row{grid-template-columns:1fr}.upload-bulk{align-items:stretch;flex-direction:column}.drawing-sidebar .drawing-set-controls{min-width:150px;padding:0}.drawing-import-dialog .modal-footer{flex-wrap:wrap}}
.brand .official-ram-logo{display:block;width:100px;height:auto;object-fit:contain}.welcome-brand .official-ram-logo{width:145px}.brand{gap:12px}.brand .brand-copy{padding-left:12px}.tools{flex-wrap:wrap}.tools [data-tool=polyline]{color:#3569c8}.tools [data-tool=perimeter]{color:#7960bd}.tools #finish-path{background:#087f83;color:white;padding:8px 12px}.tools #finish-path[hidden]{display:none}.segment-details{padding:14px;border:1px solid #dce7ec;border-radius:8px;background:#f5f9fb;font-size:12px}.segment-details ol{padding-left:22px;line-height:1.9;max-height:180px;overflow:auto}.segment-details summary{cursor:pointer;font-weight:600}
@media(max-width:1050px){.sidebar .brand .official-ram-logo{width:48px}.sidebar .brand{justify-content:center}.sidebar .brand-copy{display:none}}
@media(max-width:700px){.sidebar .brand .official-ram-logo{width:43px}.tools .divider{display:none}}
.recent-timeline{max-height:390px;overflow:auto}.account-shortcut .top-avatar{display:flex;align-items:center;justify-content:center}.quick-jump>.icon{width:16px;height:16px;flex-shrink:0}.command-result:focus-visible{outline-offset:-3px}
:root{--nav:#102f3d;--orange:#ce542f;--line:#dde6eb;--muted:#617483;--teal:#087f83;--blue:#3569c8;--violet:#7960bd;--surface:#f3f6f9;--ink:#183544}
body{background:var(--surface);color:var(--ink)}button,input,select,textarea{font-family:Inter,sans-serif}button{transition:background .16s,box-shadow .16s,transform .16s;border-radius:9px}button:not(:disabled):active{transform:translateY(1px)}button.primary{box-shadow:0 3px 9px #c85a3020;background:#ca512d;border-color:#ca512d}button.primary:hover{background:#b74625}button.dark{background:#123e4e}button:focus-visible,a:focus-visible,[role=button]:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #32a9b5;outline-offset:3px}button:disabled{opacity:.45}::selection{background:#c5e9e7;color:#173544}
.shell{grid-template-columns:236px minmax(0,1fr)}.sidebar{width:236px;padding:30px 18px 20px;background:linear-gradient(155deg,#143c4b,#102d3b 75%);gap:27px}.sidebar .brand{margin:0 12px 6px}.workspace-label{background:#ffffff06;border-color:#ffffff18;padding:13px 12px;border-radius:12px}.workspace-label strong{font-size:12px}.workspace-label small{font-size:11px;color:#a2bcc9}.workspace-symbol{width:32px;height:32px;background:#f6aa7c;font-size:14px}.nav-label{font-size:10px;color:#9bb4c1;letter-spacing:1.4px}.nav{font-size:13px;padding:13px 14px;border-radius:9px;color:#bdd0da;min-height:44px}.nav.active{background:#295466;color:#fff}.nav.active:before{background:#ffac7b;left:0;top:11px;bottom:11px}.nav:hover{background:#ffffff12}.nav .icon{width:19px;height:19px}.nav[data-nav=history] .icon{color:#b9a6eb}.nav[data-nav=team] .icon{color:#8fd1c3}.nav[data-action=import] .icon{color:#e9b58b}.sidebar-note{border-radius:12px;background:linear-gradient(140deg,#28546780,#193e4c80);padding:17px 15px}.sidebar-note strong{font-size:12px;color:#eff7fa}.sidebar-note p{font-size:11px;color:#b8cbd5}.profile button{font-size:12px}.profile small{font-size:10px;color:#a6bfcc}.profile .avatar{width:34px;height:34px}
.topbar{height:76px;padding:0 32px;background:#ffffffeb;gap:20px}.breadcrumb{font-size:12px;min-width:0}.breadcrumb>span:last-child{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:210px}.saved{font-size:11px;color:#377965;background:#eef8f3;border:1px solid #dcefe5;padding:7px 10px;border-radius:20px}.saved .dot{width:6px;height:6px}.saved[data-state=error]{color:#a1352b;background:#fff0ec;border-color:#f4d5ce}.saved[data-state=saving]{color:#8a621c;background:#fff7e5}.saved[data-state=offline]{color:#5b4a8a;background:#f1eefb;border-color:#dcd5f2}.quick-jump{color:#627584;background:#f5f7fa;border:1px solid #e2e9ed;padding:9px 13px!important;font-size:12px!important;min-width:190px;justify-content:flex-start!important}.quick-jump kbd{margin-left:auto;font-size:10px;font-family:inherit;padding:2px 5px;background:white;border:1px solid #d9e2e7;border-radius:4px}.top-avatar{width:34px;height:34px;background:#f3dfd0;color:#794e35}.top-actions .account-shortcut{padding:0;border:0;background:none;min-width:34px}
.content{padding:32px;max-width:1760px}.page-heading h1{font-size:32px;letter-spacing:-1.1px;line-height:1.2}.page-heading p{font-size:14px;color:#637787;line-height:1.6}.page-heading .eyebrow{color:#087b80;font-size:10px;letter-spacing:1.7px}.heading-actions button{font-size:12px;min-height:42px;padding:11px 15px}.heading-actions .primary{padding:11px 19px}.stats{gap:17px;margin:26px 0 32px}.stat{border-radius:13px;padding:21px 22px;box-shadow:0 4px 15px #18394d04;border-top:3px solid var(--stat-accent,#148b8b)}.stat:nth-child(1){--stat-accent:#138488;--stat-soft:#e5f4f2}.stat:nth-child(2){--stat-accent:#4871c8;--stat-soft:#eaf0ff}.stat:nth-child(3){--stat-accent:#8566c0;--stat-soft:#f1ebfa}.stat:nth-child(4){--stat-accent:#cc7444;--stat-soft:#fff0e5}.stat-top>span{font-size:12px;color:#536c7b;font-weight:600}.stat .stat-icon{padding:9px;background:var(--stat-soft);color:var(--stat-accent);border-radius:10px;display:grid}.stat .stat-icon .icon{width:19px;height:19px}.stat b{font-size:30px;letter-spacing:-1.1px;margin:12px 0 8px;color:#183b4b}.stat .stat-caption,.stat>span{font-size:11px;color:#687e8b;line-height:1.5}.stat .eyebrow{color:#5c7584}
.dashboard-columns{grid-template-columns:minmax(0,1fr) 285px;gap:25px}.section-head h2{font-size:19px}.filters{padding:4px;background:#e8eef2;border-radius:9px}.filters button{font-size:12px;padding:8px 13px;border-radius:6px;color:#536a78;min-height:32px}.filters button.selected{color:#153f50;box-shadow:0 2px 5px #18394d0c;font-weight:650}.library-controls{display:flex;gap:12px;margin-bottom:20px;align-items:stretch}.library-controls .library-search{flex:1;margin:0}.library-search{padding:12px 14px;border-radius:9px;box-shadow:0 2px 5px #19384b02}.library-search input{font-size:13px;min-width:0;background:none}.library-search .icon{width:18px;height:18px;color:#637f90}.library-search>span{display:none}.project-sort{display:flex;align-items:center;gap:8px;font-size:11px;color:#607887}.project-sort select{border:1px solid var(--line);border-radius:9px;padding:10px;background:white;font-size:12px;color:#365969}.project-grid{gap:20px}.project-card{border-radius:14px;box-shadow:0 4px 15px #24465a05;transition:box-shadow .18s,transform .18s}.project-card:hover{box-shadow:0 10px 28px #24465a12;transform:translateY(-2px)}.project-cover{height:150px;background:linear-gradient(135deg,#e8f2f3,#f5f8fa)}.project-card:nth-child(3n+2) .project-cover{background:linear-gradient(135deg,#f0ecf9,#f5f7fc)}.project-card:nth-child(3n) .project-cover{background:linear-gradient(135deg,#fbefe3,#fff9f1)}.project-cover svg{opacity:.65}.project-cover .badge{font-size:10px;top:14px;left:16px;box-shadow:0 2px 8px #1b40500a}.project-cover .project-code{font-size:10px;color:#425f70;font-weight:600;background:#ffffffcc;border-radius:4px;padding:4px 7px;right:14px}.project-body{padding:21px 21px 17px}.project-body .card-client{font-size:10px;letter-spacing:1px;color:#65808f;margin-bottom:9px}.project-body h3{font-size:18px;letter-spacing:-.5px;line-height:1.4;margin-bottom:9px}.project-location{font-size:12px!important;color:#667c8a!important}.project-location .icon{width:14px;height:14px}.project-numbers{padding:19px 0 15px;gap:15px;flex-wrap:wrap}.project-numbers span{font-size:11px;color:#607887}.project-numbers b{font-size:12px}.project-numbers .icon{width:14px;height:14px;color:#6a8796}.project-estimate{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:12px 0 16px;font-size:12px}.estimate-chip{display:inline-flex;gap:6px;align-items:center;font-size:10px;font-weight:650;padding:5px 8px;border-radius:6px;background:#fff3df;color:#8c5c18}.estimate-chip .icon{width:12px;height:12px}.project-estimate>strong{font-size:15px;font-variant-numeric:tabular-nums}.project-footer{font-size:10px;color:#687f8c;gap:8px}.project-footer button{background:#eaf5f4;color:#116f72;font-size:11px;padding:9px 11px}.project-footer button:hover{background:#d9eeec}.project-footer .icon{width:15px;height:15px}.new-card{min-height:360px;border-radius:14px;background:#ffffff80;border-color:#c4d5df;padding:24px;line-height:1.5}.new-card:hover{border-color:#4a9c9f;background:#edf8f6}.new-card .plus{width:44px;height:44px;background:#dff1ed;color:#168080}.new-card strong{font-size:14px;color:#365a6b}.new-card small{font-size:12px;color:#657e8c}.project-no-results{grid-column:1/-1;border:1px dashed #c5d5df;border-radius:12px;background:white;padding:30px}
.recent-panel{border-radius:13px;padding:22px 20px 0}.recent-panel h2{font-size:16px}.panel-subtitle{font-size:11px;color:#738895;line-height:1.5}.recent-event{grid-template-columns:30px 1fr;gap:12px;padding-bottom:22px}.recent-event .avatar{width:30px;height:30px;background:#e9eefb;color:#5770ad;font-size:10px}.recent-event:nth-child(2n) .avatar{background:#eaf4ee;color:#4e8971}.recent-event strong{font-size:12px;color:#355767}.recent-event p{font-size:11px;color:#637d8b;line-height:1.6}.recent-event small{font-size:10px;color:#6c8290}.recent-project{font-size:10px;color:#9c5f41;max-width:195px}.activity-link{font-size:12px;padding:15px 0;color:#157b80}.workflow-note{background:linear-gradient(130deg,#e4f3ee,#eef7f4);border:1px solid #d3e8df;border-radius:13px;padding:23px 21px}.workflow-note .eyebrow{color:#397b67;font-size:9px}.workflow-note h3{color:#245d50;font-size:21px;line-height:1.25;margin:12px 0}.workflow-note p{font-size:12px;line-height:1.8;color:#527b6e}.workflow-note button{font-size:12px;color:#226d5b}.welcome-banner{border-radius:15px;background:linear-gradient(110deg,#fff9f3,white);border-color:#f0e0d1}.welcome-banner h2{font-size:30px;line-height:1.15}.welcome-banner p{font-size:13px;color:#6e7e86}.welcome-banner .blueprint{background:#ecf3f3}.workspace-footer{font-size:10px;color:#708694;margin-top:35px}
.project-header{padding:24px 28px 0}.project-header h1{font-size:25px}.project-meta{font-size:12px;color:#657f8e;margin-top:8px}.project-header>.between{align-items:flex-start}.project-header>.between>.flex{flex-wrap:wrap;justify-content:flex-end}.project-header .small{min-height:35px;font-size:11px}.baseline-notice{display:flex;align-items:center;gap:12px;justify-content:space-between;flex-wrap:wrap;background:#fff7e9;border:1px solid #eeddbb;border-left:4px solid #ce994b;border-radius:9px;padding:13px 15px;font-size:12px;color:#765a2c;line-height:1.6}.baseline-notice .baseline-copy{flex:1;min-width:210px}.baseline-notice .baseline-actions{display:flex;gap:8px}.baseline-notice button{margin:0;background:#ffffffb8}.tabs{gap:24px;margin-top:17px;overflow:auto;scrollbar-width:thin}.tab{font-size:12px;white-space:nowrap;gap:7px;padding-bottom:15px;color:#647c8d}.tab.active{color:#b34828;border-bottom-width:3px}.tab .icon{width:17px;height:17px}.workspace{grid-template-columns:190px minmax(200px,1fr) 300px}.drawing-sidebar{padding:20px 13px}.drawing-sidebar .eyebrow{font-size:10px;color:#5f7d8c}.drawing-item{font-size:12px;border-radius:8px;padding:12px 10px}.drawing-item small{font-size:10px;color:#637d8c;line-height:1.6}.drawing-item.active{background:#eaf5f5;border-color:#b4d9d8;color:#22636b;box-shadow:inset 3px 0 #38999b}.sheet-list button{font-size:11px;padding:8px 10px;min-height:33px}.sheet-list button.active{background:#fff0e6;color:#b4512d;border-radius:5px}.trade-key button{font-size:12px;min-height:34px}.upload-button{font-size:12px;min-height:38px}.revision-banner{font-size:11px;color:#476d80;background:#edf4f8;padding:9px 12px;gap:8px;flex-wrap:wrap}.revision-banner .small{font-size:10px}.tools{background:white;padding:9px;gap:3px}.tools button{min-height:35px;font-size:11px;border-radius:7px}.tools button[data-tool=scale]{color:#806030}.tools button[data-tool=line]{color:#3a6cb7}.tools button[data-tool=area]{color:#7953af}.tools button[data-tool=count]{color:#2b866e}.tools button.active{background:#e7f3f2;border-color:#a8d6d1;color:#146d70;box-shadow:0 1px 3px #183b4d08}.tools button kbd{font:9px Inter,sans-serif;opacity:.7;margin-left:3px}.stage{background-color:#e8eef2;background-image:radial-gradient(#b5c8d1 .7px,transparent .7px);background-size:16px 16px}.paper{box-shadow:0 8px 30px #173a4c20}.statusbar{font-size:10px;color:#577382;min-height:39px}.scale-badge{background:#e2f3ea;border-radius:5px;padding:4px 7px;color:#2f765e}.scale-badge.unset{background:#fff0d7;color:#915f1f}.register-head{padding:20px 18px 16px}.register-head h3{font-size:15px}.register-head p{font-size:11px;color:#6c8391}.register-fields{padding:15px 18px;background:#f7f9fc;gap:12px}.field-label{font-size:10px;color:#5f798a;letter-spacing:.7px}.register-fields input,.register-fields select{font-size:12px;padding:9px 10px;border-radius:7px;min-height:36px}.measure-list{padding:4px 17px}.measure-row{padding:16px 3px;font-size:12px;line-height:1.5}.measure-row:hover{background:#f2f8fa}.measure-row.selected{background:#eef7f6;box-shadow:0 0 0 6px #eef7f6;border-radius:5px}.measure-row .detail{font-size:11px;color:#667f8e}.measure-row .qty{font-size:14px}.quantity-totals span{font-size:10px;color:#607d8c}.quantity-totals b{font-size:14px}.register-bottom button{font-size:12px;padding:10px}.hint{font-size:11px;padding:9px 13px;max-width:85%;background:#153d4de8;border:1px solid #ffffff30;border-radius:8px}.sheet-navigation{display:flex;align-items:center;gap:6px}.sheet-navigation select{font-size:11px;border:1px solid #ccdae2;border-radius:5px;background:white;padding:5px;color:#365e72;max-width:110px}.sheet-navigation button{padding:4px 7px;min-height:28px;border-color:#d7e2e8}.sheet-navigation .previous .icon{transform:rotate(180deg)}.focus-toggle{white-space:nowrap}
.panel{border-radius:12px;box-shadow:0 3px 12px #18394d03}th{font-size:10px;color:#527183;background:#eef4f7;padding:15px 18px;letter-spacing:.8px}td{font-size:12px;color:#536f80;padding:18px}td strong{color:#264f64}tbody tr:hover{background:#f6fafb}td small{color:#698190;font-size:11px}td .small{min-width:32px;min-height:32px}.numeric{font-variant-numeric:tabular-nums}.trade-card{padding:23px;border-radius:13px;border-top:3px solid #7295a0}.trade-card h3{font-size:16px}.trade-card .totals{font-size:12px}.trade-card .totals b{font-size:22px}.trade-card .between{font-size:12px}.history-row p{font-size:13px;color:#416374}.history-row small{font-size:11px;color:#6a8392}.note-composer textarea{font-family:inherit;font-size:13px;border-radius:9px;border:1px solid #cbdbe4;padding:13px;min-height:110px}.notes-thread .history-row{padding:23px}.notice{font-size:13px;color:#41697e;line-height:1.7}
dialog{border-radius:17px;box-shadow:0 25px 90px #102d3d40;max-height:calc(100dvh - 40px)}dialog::backdrop{background:#0b273f70;backdrop-filter:blur(5px)}.modal-head{padding:24px 27px;background:linear-gradient(115deg,#f3f9f8,white)}.modal-head h2{font-size:21px}.modal-body{padding:25px 27px;gap:19px}.modal-body label{font-size:12px;color:#33566b}.modal-body p{font-size:13px;color:#607c8b}.modal-body input,.modal-body select,.modal-body textarea{border-radius:8px;font-size:13px;padding:11px 12px;min-height:40px}.modal-body input[type=checkbox]{width:16px;height:16px;min-height:0;display:inline-block;margin:0 7px 0 0;vertical-align:middle;accent-color:#0d7e80}.modal-footer{padding:18px 27px;background:#f5f8fa}.modal-footer button{min-height:39px;font-size:12px}.error{font-size:13px;border:1px solid #efcbc5}.command-search{font-size:15px!important}.command-results{display:grid;gap:6px;max-height:340px;overflow:auto}.command-result{justify-content:flex-start;text-align:left;padding:13px;border:1px solid #e3ecef;background:#f9fbfc;gap:12px}.command-result:hover{background:#eaf7f4;border-color:#baded5}.command-result>span{display:grid;gap:4px}.command-result strong{font-size:13px}.command-result small{font-size:11px}.command-result>.icon{color:#368a91}.command-empty{padding:25px;text-align:center;color:#688392}
#toast{top:90px;right:24px;bottom:auto;left:auto;transform:none;background:#163e4f;border:1px solid #ffffff20;border-left:4px solid #5ec9a6;max-width:420px;font-size:13px;padding:14px 18px;border-radius:10px;box-shadow:0 8px 30px #12374825}#toast.failure{background:#803c36;border-left-color:#f3b1a0}.login-form .otp-help small,.login-form .otp-help button{font-size:10px}.checkbox-label{font-size:11px}.login-form input:not([type=checkbox]){font-weight:450}.signin-card{box-shadow:0 18px 65px #143e5210;border-color:#ecf0f3}.login-form label{font-size:13px}
@media(min-width:1750px){.workspace{grid-template-columns:215px minmax(300px,1fr) 330px}.project-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.dashboard-columns{grid-template-columns:minmax(0,1fr) 300px}}
@media(max-width:1300px){.shell{grid-template-columns:208px minmax(0,1fr)}.sidebar{width:208px;padding:27px 14px 18px}.workspace-label strong{font-size:11px}.content{padding:26px}.topbar{padding:0 26px}.dashboard-columns{grid-template-columns:minmax(0,1fr) 250px;gap:20px}.project-body{padding:17px}.project-body h3{font-size:16px}.project-numbers{gap:9px}.project-numbers span{font-size:10px}.project-footer button{font-size:10px}.workspace{grid-template-columns:155px minmax(180px,1fr) 265px}.tools button span,.tools button kbd{display:none}.quick-jump{min-width:150px}.saved{display:none}.stat{padding:17px}.stat b{font-size:25px}.stat .stat-icon{padding:7px}.stat-top>span{font-size:11px}}
@media(max-width:1050px){.shell{grid-template-columns:76px minmax(0,1fr)}.sidebar{width:76px;padding:26px 11px}.sidebar .brand{margin:0}.sidebar .brand-copy,.workspace-label,.nav-label,.sidebar-note,.profile .grow,.nav>span{display:none}.sidebar .brand-mark{font-size:29px}.nav{padding:13px;justify-content:center}.profile{flex-wrap:wrap;justify-content:center;margin-top:auto}.profile .avatar{display:none}.dashboard-columns{grid-template-columns:minmax(0,1fr)}.dashboard-aside{grid-template-columns:1fr 1fr}.recent-timeline{max-height:260px;overflow:auto}.workspace{grid-template-columns:145px minmax(180px,1fr) 250px}.project-header>.between{flex-wrap:wrap}.project-header h1{font-size:22px}.tabs{gap:18px}.topbar .breadcrumb>span:last-child{max-width:120px}}
@media(max-width:700px){.shell{grid-template-columns:60px minmax(0,1fr)}.sidebar{width:60px;padding:22px 7px;gap:22px}.sidebar .brand-mark{font-size:25px}.nav{padding:11px;min-height:41px}.nav .icon{width:18px;height:18px}.profile button{padding:4px}.topbar{height:62px;padding:0 15px;gap:8px}.top-actions{gap:8px}.top-divider,.top-actions .saved,.quick-jump span,.quick-jump kbd{display:none}.quick-jump{min-width:0;padding:9px!important}.breadcrumb{font-size:11px;gap:6px}.breadcrumb>span:last-child:not(:first-child){display:none}.content{padding:22px 16px}.page-heading h1{font-size:28px}.page-heading p{font-size:13px}.heading-actions{width:100%;margin-top:14px}.heading-actions button{flex:1;padding:10px;font-size:11px}.stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;margin:20px 0 26px}.stat{padding:14px 12px}.stat b{font-size:23px}.stat-top>span{font-size:11px}.stat .stat-icon{display:none}.stat .stat-caption{font-size:10px}.project-grid,.dashboard-aside{grid-template-columns:1fr}.project-body{padding:20px}.project-body h3{font-size:18px}.library-controls{flex-direction:column;gap:8px}.project-sort{justify-content:flex-end}.library-search input{font-size:12px}.section-head .filters{margin-top:7px}.filters button{font-size:11px;padding:7px 9px}.project-cover{height:145px}.new-card{min-height:190px}.project-footer{font-size:10px}.project-footer button{font-size:11px}.welcome-banner>div{padding:23px}.welcome-banner h2{font-size:25px}.project-header{padding:20px 15px 0}.project-header h1{font-size:21px}.project-header>.between>.flex{justify-content:flex-start;gap:6px}.baseline-notice{padding:11px;font-size:11px;gap:8px}.baseline-notice .baseline-copy{min-width:0;flex-basis:100%}.baseline-actions{flex-wrap:wrap}.tabs{gap:18px}.tab{font-size:11px}.workspace{grid-template-columns:minmax(0,1fr);height:auto}.drawing-sidebar{display:flex;max-height:125px;padding:11px;gap:8px}.drawing-sidebar>.between{display:none}.drawing-item{min-width:165px;max-width:190px;margin:0}.drawing-sidebar .upload-button{min-width:100px;width:auto;margin:0}.viewer{height:68vh;min-height:420px}.stage{padding:18px}.tools button span{display:none}.tools button{padding:7px}.statusbar{flex-wrap:wrap;gap:6px}.statusbar>span:last-child{display:none}.register{max-height:500px;border-top:1px solid var(--line)}.register-fields{grid-template-columns:1fr 1fr}.register-fields label:last-child{grid-column:1/-1}.revision-banner{font-size:10px}.revision-banner .small{font-size:10px}.focus-toggle{padding:5px!important}.hint{bottom:58px;font-size:10px;width:90%}.trade-grid{grid-template-columns:1fr}.modal-head,.modal-body,.modal-footer{padding:19px}.modal-head h2{font-size:19px}#toast{right:12px;left:72px;max-width:none;top:74px;font-size:12px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}.project-card:hover{transform:none}}
@media print{.quick-jump,.baseline-actions,.filters,.library-controls{display:none!important}.project-header:has(.baseline-notice){display:block!important}.project-header>.project-bar{display:none!important}.baseline-notice{font-size:10px}.stat{box-shadow:none}.panel{box-shadow:none}th{color:#233f4d}td,th{padding:8px}.project-card:hover{transform:none}#toast{display:none!important}}

/* Quick guide: step lists and the tool table in sections 3 and 4 */
.help-section p{margin:0}.help-list,.help-tools{font-size:13px;color:#607c8b;line-height:1.6}.help-list b,.help-tools dt{color:#2d4553}.help-list{margin:6px 0 0;padding-left:18px;display:grid;gap:4px}.help-notes{margin-top:10px;padding:10px 12px 10px 28px;background:#f5f7f9;border-radius:6px}.help-tools{display:grid;grid-template-columns:max-content 1fr;gap:7px 14px;margin:8px 0 0;align-items:baseline}.help-tools dt{font-weight:600;white-space:nowrap}.help-tools dd{margin:0}.help-tools dt .keyboard{display:inline-block;min-width:22px;text-align:center;margin-right:4px}.help-tip{margin-top:10px!important;font-size:12px;color:var(--muted)}
/* Measurement properties: gross / cut-out / net breakdown */
.area-breakdown td{padding:5px 8px;font-size:12px}.area-breakdown input{padding:5px 8px;font-size:12px;min-height:0}.measure-formula{font-size:12px;color:#607c8b;margin:0}
/* Release 3: snapping toggle, multi-select and edit actions */
#snap-toggle[aria-pressed="true"]{background:#e8f4ee;color:#0a7d4f;border-color:#9fd3b8}#snap-status{color:#0a7d4f}.measure-row.multi-selected{outline:2px solid #2f6f8f;outline-offset:-2px;background:#eef5f8}.multi-bar{display:flex;flex-wrap:wrap;gap:6px;align-items:center;padding:8px;margin:0 0 8px;background:#eef5f8;border-radius:6px;font-size:12px}.multi-bar strong{margin-right:auto}.measure-actions{gap:8px}
/* Quick guide shortcuts: keep each key with its label on one line */
.help-shortcuts{display:flex;flex-wrap:wrap;gap:6px 14px;margin-top:6px}.help-shortcuts .shortcut{white-space:nowrap}
/* Takeoff workspace: collapsible side panels, full-screen Focus mode, single-line register rows, estimate status chip */
.panel-rail{display:none;flex-direction:column;align-items:center;gap:8px;width:100%;padding:10px 0;border:0;background:transparent;color:#365e72;font-size:11px;font-weight:600}.panel-rail span{writing-mode:vertical-rl}.panel-hide{padding:3px!important;min-height:0!important;color:#577382}.drawing-sidebar .panel-hide .icon{transform:rotate(180deg)}
.files-collapsed>.drawing-sidebar>:not(.panel-rail),.register-collapsed>.register>:not(.panel-rail){display:none!important}.files-collapsed>.drawing-sidebar>.panel-rail,.register-collapsed>.register>.panel-rail{display:flex}.files-collapsed>.drawing-sidebar,.register-collapsed>.register{padding:6px 3px;overflow:hidden}
@media(min-width:701px){.workspace{--files-col:190px;--register-col:300px}.workspace.files-collapsed,.workspace.register-collapsed{grid-template-columns:var(--files-col) minmax(200px,1fr) var(--register-col)}.workspace.files-collapsed{--files-col:36px}.workspace.register-collapsed{--register-col:36px}}
@media(min-width:1750px){.workspace{--files-col:215px;--register-col:330px}}
@media(min-width:701px) and (max-width:1300px){.workspace{--files-col:155px;--register-col:265px}}
@media(min-width:701px) and (max-width:1050px){.workspace{--files-col:145px;--register-col:250px}}
@media(max-width:700px){.panel-rail{flex-direction:row;justify-content:center}.panel-rail span{writing-mode:horizontal-tb}}
/* Inside a project: no app sidebar or top bar; one row holds the back arrow, project name, tabs, save status and project actions */
.shell.project-mode{grid-template-columns:minmax(0,1fr)}.shell.project-mode>.main{grid-column:1}.project-mode .project-header{padding:0 20px 0 14px}
.project-bar{display:flex;align-items:center;gap:16px;min-height:52px}.back-button{width:34px;height:34px;min-height:34px;padding:0;flex-shrink:0;color:#244f60}.back-button .icon{width:18px;height:18px}
.project-title{display:flex;align-items:center;gap:8px;min-width:0;max-width:300px}.project-mode .project-header h1{font-size:15px;margin:0;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.project-title>.badge,.project-title>.estimate-chip{flex-shrink:0}
.project-bar>.tabs{margin:0;flex:1 1 auto;min-width:0;align-self:stretch;gap:22px}.project-bar .tab{padding:3px 0 0;border-bottom-width:3px}
.project-bar>.saved{flex-shrink:0;white-space:nowrap;display:flex}.project-actions{display:flex;gap:8px;flex-shrink:0}.project-actions .small{min-height:34px;font-size:11px}
@media(max-width:1440px){.project-actions button:not(.primary){width:34px;padding:0}.project-actions button:not(.primary) span{display:none}}
@media(max-width:1366px){.project-bar .tab>.icon{display:none}.project-bar>.tabs{gap:18px}}
@media(max-width:1180px){.project-bar{gap:12px}.project-actions .primary{width:34px;padding:0}.project-actions .primary span{display:none}.project-title{max-width:220px}.project-bar>.saved{padding:7px}.project-bar>.saved #save-state{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}}
@media(max-width:1050px){.project-mode .project-header{padding:6px 14px 0}.project-bar{flex-wrap:wrap;gap:4px 10px}.project-title{flex:1;max-width:none}.project-bar>.tabs{order:5;flex-basis:100%;height:44px}.project-bar .tab>.icon{display:inline}}
@media(max-width:700px){.project-mode .project-header{padding:6px 12px 0}}
.measure-row{display:flex;flex-wrap:wrap;align-items:center;column-gap:8px;padding:6px;min-height:32px;line-height:1.3}.measure-row .name{flex:1;min-width:0}.measure-row .measure-title{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.measure-row .detail{display:contents}.measure-row .detail>span:first-child{display:none}.measure-row .qty{white-space:nowrap}
.project-header{position:relative}.estimate-chip{display:inline-flex;align-items:center;gap:6px;padding:3px 10px;min-height:0;border-radius:999px;font-size:11px;font-weight:600;border:1px solid #eeddbb;background:#fff7e9;color:#765a2c}.estimate-chip:before{content:'';width:7px;height:7px;border-radius:50%;background:currentColor}.estimate-chip .icon{width:12px;height:12px;transform:rotate(90deg)}.estimate-chip[aria-expanded=true] .icon{transform:rotate(-90deg)}
.estimate-panel{position:absolute;z-index:40;margin:0;max-width:min(560px,calc(100% - 32px));box-shadow:0 12px 32px #173a4c26}.estimate-panel[hidden]{display:none}.baseline-notice.estimate-panel[data-state=changed]{background:#fff7e9;border-color:#eeddbb;border-left-color:#ce994b;color:#765a2c}
@media print{.estimate-chip{display:none!important}.estimate-panel[hidden]{display:flex!important}.estimate-panel{position:static;box-shadow:none;max-width:none}}
/* Select in place: the selected register row expands to edit description, trade and work package */
.measure-row.expanded{cursor:default;padding-bottom:10px}.measure-edit{order:3;flex-basis:100%;display:grid;gap:7px;margin:8px 0 0 15px;font-size:11px;color:#577382}.measure-edit label{display:grid;gap:3px;font-size:10px;font-weight:600;letter-spacing:.3px}.measure-edit input,.measure-edit select{font-size:12px;padding:6px 8px;min-height:30px;border:1px solid #cbdde5;border-radius:6px;background:white;color:#244f60;width:100%}.measure-edit input:disabled,.measure-edit select:disabled{background:#f3f6f9;color:#617483}
.measure-facts{display:flex;gap:18px;margin:2px 0}.measure-facts dt{font-size:10px;color:#6c8391}.measure-facts dd{margin:0;font-weight:650;color:#314d61}.measure-readonly{margin:0;padding:6px 8px;border-radius:6px;background:#fff1e4;color:#9a5a1c;font-size:11px}.measure-edit [data-properties]{justify-self:start}
/* BOQ categories, items and the cost code library (workbench Phase 1c) */
.badge.uncoded{background:#fff1e4;color:#9a5a1c;border:1px solid #efc9a2}
.trade-code{margin:4px 0 10px;font-size:12px;color:#4b5d6b}
.item-list{display:grid;gap:4px;margin:10px 0}
.item-row{display:flex;justify-content:space-between;gap:10px;width:100%;text-align:left;font-size:12px;padding:6px 8px;border:1px solid #e3e9ee;border-radius:6px;background:#fff}
.item-row span:last-child{color:#4b5d6b;white-space:nowrap}
.item-row.heading{font-weight:700;background:#f4f7f9;border-color:transparent}
.item-row.note{border-style:dashed}
.item-row.in-package{margin-left:16px;width:calc(100% - 16px)}
.code-field{display:grid;gap:6px;margin-bottom:12px}
.code-chosen{font-size:13px}
.code-results{display:grid;gap:4px;max-height:220px;overflow:auto}
.code-option{text-align:left;font-size:12px;padding:6px 8px}
.code-option small,.code-chosen small{color:#7e92a0}
tr.category-row td{background:#f4f7f9;border-top:2px solid #dde5eb}
tr.heading-row td{font-style:italic}
/* A work package is a bold black row, as in RAM's estimate sheets; a note a plain row with "Note" as its unit. */
tr.package-row td{font-style:normal;color:#14212b;padding-top:12px}
tr.note-row td{color:#33434f}
.library-list{display:grid;gap:10px;margin-bottom:14px}
.code-search{display:block;max-width:520px;margin-bottom:10px}
/* Takeoff register tree, layer switches, focus summary and money totals (workbench Phase 3) */
.register-head{padding:12px 14px 10px}
.register-fields{grid-template-columns:auto minmax(0,1fr);align-items:center;gap:4px 8px;padding:8px 14px}
.register-fields label{display:contents}
.register-fields .field-label{margin:0;font-size:9px}
.register-fields input,.register-fields select{min-height:28px;padding:4px 8px;font-size:11px;border-radius:6px}
.scope-toggle{display:flex;gap:4px;margin:8px 14px}
.scope-toggle button{flex:1;font-size:11px;padding:4px 6px}
.scope-toggle button[aria-pressed=true]{background:#173a4c;color:#fff;border-color:#173a4c}
.tree-trade{margin-bottom:6px}
.tree-trade-row{display:flex;align-items:center;gap:6px;padding:5px 6px;border-radius:6px;background:#f1f5f8;cursor:pointer;font-size:12px}
.tree-trade-row .tree-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tree-trade-row.focused,.tree-item.focused{outline:2px solid #2f6f8f;outline-offset:-2px}
.twisty{border:0;background:none;padding:0 2px;font-size:11px;min-width:16px}
.layer-toggle{border:0;background:none;padding:2px;opacity:.45}
.layer-toggle[aria-pressed=true]{opacity:1}
.layer-toggle[data-lock][aria-pressed=true]{color:#a1352b}
.tree-money{font-size:12px;white-space:nowrap}
.tree-item{display:flex;align-items:center;gap:8px;padding:4px 6px 4px 22px;font-size:12px;color:#314d61;cursor:pointer;border-radius:5px}
.tree-item:hover{background:#f6f9fb}
.tree-item .tree-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600}
.tree-item .tree-qty{color:#6c8391;white-space:nowrap}
.tree-item.loose{color:#9a5a1c;cursor:default}
.tree-heading{padding:4px 6px 2px 22px;font-size:11px;font-style:italic;color:#6c8391}
.tree-trade .measure-row{margin-left:22px}
.hidden-layer .tree-trade-row{opacity:.55}
.hidden-layer .measure-row,.hidden-layer .tree-item{opacity:.55}
.locked-layer .tree-trade-row{background:#fbf1ef}
.measure-row.focused{box-shadow:inset 3px 0 0 #2f6f8f}
.multi-sum{font-size:11px;color:#4b5d6b}
.focus-card{border:1px solid #d7e2e9;border-radius:8px;padding:8px 10px;margin-bottom:8px;font-size:12px;display:grid;gap:6px;background:#fff}
.focus-card small{display:block;color:#6c8391}
.sheet-steps{display:flex;flex-wrap:wrap;gap:4px;align-items:center}
.sheet-chip{font-size:11px;padding:2px 6px}
.sheet-chip.current{background:#173a4c;color:#fff;border-color:#173a4c}
.focus-facts{display:flex;gap:14px;margin:0}
.focus-facts dt{font-size:10px;color:#6c8391}
.focus-facts dd{margin:0;font-weight:650}
.focus-total{border-top:1px solid #e3e9ee;padding-top:4px}
.money-totals{display:grid;gap:2px;margin:6px 0;font-size:12px}
.money-totals>div{display:flex;justify-content:space-between;gap:8px}
.money-totals .sheet-total b{font-size:14px}
.money-totals .project-total{color:#6c8391}
/* Drawing files panel: a compact tree of drawings and sheets, and search (Ctrl+Shift+F) with its results tree */
.files-head{gap:6px;align-items:center}
.files-head .eyebrow{display:flex;align-items:center;gap:6px}
.files-actions{display:flex;align-items:center;gap:2px}
.icon-button{padding:4px!important;min-height:0!important;border:0;background:transparent;color:#577382;border-radius:6px;line-height:0}
.icon-button .icon{width:15px;height:15px}
.icon-button:hover,.icon-button.active{background:#eaf5f5;color:#22636b}
.drawing-sidebar .drawing-set-controls{display:flex;gap:4px;align-items:center;padding:8px 0 6px}
.drawing-sidebar .drawing-set-controls select{flex:1;min-width:0;min-height:28px;padding:4px 6px}
.file-tree,.result-tree{display:grid;grid-template-columns:minmax(0,1fr);gap:1px}
.drawing-sidebar .search-bar,.drawing-sidebar .search-box{min-width:0}
.drawing-sidebar .drawing-item,.result-drawing,.result-sheet{display:flex;align-items:center;gap:4px;width:100%;min-height:28px;padding:4px 6px;margin:0;border:1px solid transparent;border-radius:6px;background:transparent;font-size:12px;font-weight:600;text-align:left;line-height:1.3;word-break:normal;color:inherit}
.file-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.twisty{display:inline-flex;flex:none;color:#7a919e}
.twisty .icon{width:12px;height:12px;transition:transform .12s}
[aria-expanded=true]>.twisty .icon{transform:rotate(90deg)}
.drawing-node{display:flex;align-items:center}
.drawing-node>.drawing-item{flex:1;min-width:0}
.drawing-node>.twisty{align-self:stretch;align-items:center;padding:0 3px;border-radius:5px;cursor:pointer}
.drawing-node>.twisty:hover{background:#f0f5f8;color:#22636b}
.drawing-node>.twisty[aria-expanded=true] .icon{transform:rotate(90deg)}
.rev-badge{flex:none;font-size:9px;font-weight:600;color:#5f7d8c;background:#eef3f6;border-radius:4px;padding:1px 4px}
.previous-tag{flex:none;font-size:9px;font-weight:500;color:#8f9fa8}
.drawing-sidebar .sheet-list{margin:0 0 4px 12px;padding-left:8px}
.drawing-sidebar .sheet-list button{min-height:26px;padding:4px 8px}
.search-bar{display:grid;gap:6px;padding:8px 0 6px}
.search-box{display:flex;align-items:center;gap:4px;border:1px solid #cbdde5;border-radius:7px;background:#f7fbfc;padding:0 2px 0 7px}
.search-box:focus-within{border-color:#38999b;box-shadow:0 0 0 2px #38999b33}
.search-box>.icon{width:14px;height:14px;color:#7a919e;flex:none}
.search-box input{flex:1;min-width:0;border:0;background:transparent;padding:6px 2px;font-size:12px;outline:none;box-shadow:none}
.search-option{font-size:11px;display:flex;gap:6px;align-items:center;color:#4c6878}
.search-count{font-size:11px;color:#4c6878;margin:2px 0 6px}
.search-note{font-size:11px;color:#6c8391;margin:4px 0 8px;line-height:1.45}
.result-sheet{padding-left:16px;font-weight:500}
.result-count{flex:none;font-size:10px;font-weight:600;color:#5f7d8c;background:#eef3f6;border-radius:8px;padding:0 6px}
.result-hit{display:block;width:100%;min-height:0;padding:4px 6px 4px 34px;border:0;border-radius:5px;background:transparent;text-align:left;font-size:11px;font-weight:400;line-height:1.35;color:#33505f;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.result-hit b{color:#b4512d;font-weight:700;background:#fff0e6;border-radius:2px}
.result-hit:hover,.result-drawing:hover,.result-sheet:hover{background:#f0f5f8}
.result-hit.active{background:#eaf5f5;box-shadow:inset 3px 0 #38999b}
.measure-hit .icon{width:12px;height:12px;vertical-align:-2px;margin-right:4px;color:#7a919e}
/* A search or measurement highlight: never smaller than 44 px on screen (app.mjs pulseBoxes); a ring round a counted dot. */
.search-pulse{position:absolute;z-index:3;border:3px solid #d65c32;border-radius:6px;background:#d65c3226;box-shadow:0 0 0 2px #fff,0 0 14px 4px #d65c3290;pointer-events:none;animation:search-pulse .6s ease-in-out 4}
.search-pulse.round{border-radius:50%}
@keyframes search-pulse{0%,100%{transform:scale(1);opacity:1}50%{transform:scale(1.35);opacity:.5}}
/* Export dialog: the drawing PDF scope */
.export-scope{border:1px solid var(--line);border-radius:8px;padding:6px 12px 12px;margin:10px 0;display:grid;gap:10px}
.export-scope legend{font-size:12px;font-weight:650;padding:0 4px}
.export-scope .scope-choices{display:flex;flex-wrap:wrap;gap:6px 20px}
.export-scope label{display:flex;gap:7px;align-items:center;font-size:13px;margin:0;cursor:pointer}
.export-scope input[type=radio]{width:16px;height:16px;min-height:0;padding:0;margin:0;display:inline-block;flex-shrink:0;accent-color:#0d7e80}
.export-scope button{margin:0}
/* Drawing groups: Ungrouped, then each group, its PDFs and their sheets. */
.group-row{display:flex;align-items:center;gap:4px;padding:5px 4px 3px;margin-top:6px;font-size:10px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:#4c6b7a;border-radius:5px}
.group-row:first-child{margin-top:0}
.group-row .group-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;outline-offset:2px}
.group-row .badge{font-size:9px}
.group-row.ungrouped{padding-left:6px}
.group-body{display:grid;grid-template-columns:minmax(0,1fr);gap:1px;padding-left:6px;min-height:6px;border-radius:5px}
.group-empty{font-size:10px;color:#8a9ea9;padding:4px 8px;margin:0}
.drop-target{background:#e3f3f2;box-shadow:inset 0 0 0 1px #8fcac7}
.drawing-node[draggable=true]{cursor:grab}
.sheet-node{display:flex;align-items:center}
.sheet-node>.sheet-item{flex:1;min-width:0;display:flex;align-items:center;gap:4px}
.row-menu{flex:none;min-height:0!important;padding:0 6px!important;font-size:13px;line-height:1;color:#7a919e;opacity:.55;background:none;border:0}
.drawing-node:hover .row-menu,.sheet-node:hover .row-menu,.group-row:hover .row-menu,.measure-row:hover .row-menu,tr:hover .row-menu,.row-menu:focus-visible{opacity:1}
@media (hover:none){.row-menu{opacity:1}}
.measure-row .name .row-menu{margin-left:auto}
/* BOQ crown: full when every measurement on the sheet is in the BOQ, outlined when some are. */
.crown{display:inline-flex;flex:none;color:#b8860b;margin-left:4px}
.crown svg{width:12px;height:12px;stroke:currentColor;stroke-width:2;stroke-linejoin:round;fill:none}
.crown-full svg{fill:currentColor}
/* Row menus (right-click or ⋯). */
.context-menu{position:fixed;z-index:1000;min-width:180px;padding:4px;background:#fff;border:1px solid #d3dfe5;border-radius:8px;box-shadow:0 8px 24px #0d2a3a26;display:grid}
.context-menu button{display:block;width:100%;text-align:left;border:0;background:none;padding:7px 10px;font-size:12px;border-radius:5px;min-height:0;justify-content:flex-start}
.context-menu button:hover:not([disabled]),.context-menu button:focus-visible{background:#eef5f7;outline:none}
.context-menu button[disabled]{color:#a7b5bd;cursor:default}
.context-menu button.danger{color:#b4412d}
.context-separator{height:1px;background:#e3eaee;margin:4px 2px}
/* BOQ Preview measurement rows, under their item. */
.boq-measure td{font-size:11px;color:#47606d;padding-top:4px;padding-bottom:4px}
.boq-indent{padding-left:18px}
/* Upload review: the name each file uploads as, and any clash. */
.upload-name{display:grid;gap:4px;font-size:11px}
.upload-name input{min-width:0}
.upload-clash{grid-column:1/-1;font-size:11px;color:#476d80}
.upload-clash[data-state=error]{color:#b4412d}
.drawing-sidebar .sheet-list .sheet-item{white-space:nowrap}
.drawing-sidebar .sheet-list .row-menu{width:auto}
.upload-review-row{grid-template-columns:minmax(0,1fr) minmax(220px,42%)}
.upload-review-row label.upload-name{display:grid;gap:4px}
@media(max-width:700px){.upload-review-row{grid-template-columns:1fr}}
/* BOQ item dialog: only the fields the chosen unit uses show, and the live formula preview. */
#modal [data-field][hidden]{display:none!important}
.formula-preview{font-size:13px;font-weight:600;color:#22636b;background:#eef6f6;border-radius:6px;padding:8px 10px;margin:4px 0;font-variant-numeric:tabular-nums}
.field-help{display:block;font-size:11px;font-weight:400;line-height:1.45;color:#5f7684;margin-top:4px}
.field-help:empty{display:none}

/* Side panels resize by dragging their inner edge (app.mjs bindResize); widths come in as --files-size / --register-size. */
.drawing-sidebar,.register{position:relative}
.panel-resize{position:absolute;top:0;bottom:0;width:8px;z-index:6;cursor:col-resize;touch-action:none}
.drawing-sidebar>.panel-resize{right:-4px}
.register>.panel-resize{left:-4px}
.panel-resize:hover,.workspace.resizing .panel-resize{background:linear-gradient(90deg,transparent 3px,#2f8f95 3px,#2f8f95 5px,transparent 5px)}
.workspace.resizing{cursor:col-resize;user-select:none}
.files-collapsed .drawing-sidebar>.panel-resize,.register-collapsed .register>.panel-resize{display:none}
@media(min-width:701px){
  .workspace.sized{grid-template-columns:var(--files-size,194px) minmax(200px,1fr) var(--register-size,296px)!important}
  .workspace.sized.files-collapsed{--files-size:36px!important}
  .workspace.sized.register-collapsed{--register-size:36px!important}
}
@media(max-width:700px){.panel-resize{display:none}}

/* Drawing files: a group is a folder band; its PDFs (file icon) sit indented beneath a guide line. */
.group-row{background:#eef3f6;border-left:3px solid #8fa9b8;padding:6px 4px 6px 4px;color:#29495a;margin-top:8px}
.group-row.ungrouped{background:#f6f8f9;border-left-color:#c8d5dc;color:#5d7584}
.group-row .group-icon{display:inline-flex;line-height:0;color:#5f8193}
.group-row .group-icon .icon{width:14px;height:14px}
.group-body{margin-left:9px;padding-left:7px;border-left:1px dashed #cfdbe2;border-radius:0}
.drawing-sidebar .drawing-item .icon{width:13px;height:13px;flex:none;color:#8aa0ad}
.drawing-sidebar .drawing-item.active .icon{color:inherit}

/* A new project has no trades. */
.empty-trades{background:#fff;border:1px dashed #cfdbe2;border-radius:8px;padding:18px;color:#4b5d6b;font-size:13px;margin-bottom:14px}

/* Takeoff register: the summary of a category or item replaces the sheet and BOQ totals while it is open. */
.register-bottom.focused #sheet-totals,.register-bottom.focused #money-totals{display:none}
.register-bottom .focus-card{margin-bottom:0;gap:8px}
.register-bottom .focus-card button{width:auto}
.focus-head{display:flex;align-items:flex-start;gap:6px}
.focus-title{flex:1;min-width:0}
.focus-title strong{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;line-height:1.3;font-size:13px}
.focus-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(80px,1fr));gap:7px}
.focus-stats span{font-size:9px;color:#8a99a4;display:block;text-transform:uppercase;letter-spacing:.04em}
.focus-stats b{font-size:13px;font-weight:650;display:block;margin-top:3px;font-variant-numeric:tabular-nums}
.focus-stats small{display:inline;color:#6c8391;font-weight:500}
/* Each item row: the name takes the full width (more of it shows as the register is dragged wider) and the amount is pinned
   on the right, on a layer above it, the name fading out beneath. minmax(0,1fr): a long name never widens the list. */
.register-bottom .focus-card{grid-template-columns:minmax(0,1fr)}
.focus-items{display:grid;grid-template-columns:minmax(0,1fr);gap:2px;max-height:92px;overflow-x:hidden;overflow-y:auto;border-top:1px solid #e3e9ee;padding-top:5px}
.focus-items>div{position:relative;font-size:11px;line-height:1.5;min-width:0}
.focus-items span{display:block;overflow:hidden;white-space:nowrap;text-overflow:clip;color:#4b5d6b}
.focus-items b{position:absolute;top:0;right:0;z-index:1;padding-left:22px;font-weight:600;font-variant-numeric:tabular-nums;background:linear-gradient(90deg,rgba(255,255,255,0),#fff 18px)}
.sheet-stepper{display:flex;align-items:center;gap:4px}
.sheet-stepper>.small{padding:2px 7px;min-height:0;flex:none}
.sheet-stepper .sheet-now{flex:1;min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:1px;padding:3px 7px;font-size:11px;text-align:left;border:1px solid #dce5ea;border-radius:6px;background:#fff}
.sheet-stepper .sheet-now.current{border-color:#173a4c}
.sheet-stepper .sheet-now small{font-size:9px;color:#6c8391}
.sheet-stepper .sheet-now span{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600}

/* Takeoff register tree: Category → Package → BOQ item → measurements. Each level sits indented beneath a guide line from
   its parent, so what belongs to what reads at a glance; one line per row, money and quantities right-aligned. */
.measure-list .tree-trade{margin:0 0 12px}
.measure-list .tree-trade-row{gap:6px;padding:6px 8px;border-radius:7px;background:#f1f5f8;font-size:12px;font-weight:600;color:#1d3442}
.measure-list .tree-trade-row .tree-money{font-variant-numeric:tabular-nums}
/* The layer switches only show on hover, or while one is on (hidden for you, locked for everyone). */
.tree-trade-row .layer-toggle{opacity:0;transition:opacity .12s}
.tree-trade-row:hover .layer-toggle,.tree-trade-row:focus-within .layer-toggle,.tree-trade-row .layer-toggle[data-eye][aria-pressed=false],.tree-trade-row .layer-toggle[data-lock][aria-pressed=true]{opacity:1}
.tree-trade-body{margin:4px 0 0 12px;padding-left:9px;border-left:1px solid #dbe4ea}
.tree-package{margin:6px 0 2px}
.tree-package-row{display:flex;align-items:center;gap:7px;padding:3px 4px 3px 0;font-size:10px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:#4c6b7a}
.tree-package-row::before{content:'';flex:none;width:8px;height:8px;border:1.5px solid #7f9cad;border-radius:2px}
.tree-package-row .tree-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tree-package-row b{font-size:11px;font-weight:650;letter-spacing:0;text-transform:none;color:#314d61;font-variant-numeric:tabular-nums}
.tree-package-body{margin-left:3px;padding-left:10px;border-left:1px dashed #c9d7df}
.measure-list .tree-item{gap:8px;padding:4px 4px 4px 2px;font-size:12px;color:#22394a}
.measure-list .tree-item .tree-name{font-weight:600}
.measure-list .tree-item .tree-qty{font-size:11px;color:#6c8391;font-variant-numeric:tabular-nums}
.measure-list .tree-item b{font-weight:650;font-variant-numeric:tabular-nums}
.measure-list .tree-item.loose{color:#9a5a1c}
.tree-measures{margin:0 0 4px 6px;padding-left:9px;border-left:1px solid #e3eaef}
.measure-list .tree-trade .measure-row{margin:0;padding:3px 4px;min-height:24px;border:0;border-radius:5px;font-size:11.5px}
.measure-list .tree-trade .measure-row.selected{box-shadow:none}
.measure-list .measure-row .name{display:flex;align-items:center;gap:6px;width:100%;font-size:11.5px;font-weight:400;color:#33434f}
.measure-list .measure-row .measure-title{flex:1;min-width:0}
.measure-list .measure-row .qty{flex:none;font-size:11.5px;font-weight:600;color:#314d61;font-variant-numeric:tabular-nums}
.measure-list .measure-row .qty small{font-weight:400;color:#6c8391}
.measure-list .measure-row .name .row-menu{margin-left:0}
.measure-list .measure-row .crown{flex:none}

/* Trade markup colour (public/colour-picker.mjs): a button in the trade dialog opens the Select colour window. */
.colour-field{display:grid;gap:7px}
.colour-field .colour-title{font-size:11px;font-weight:600;color:#33566b}
.colour-button{display:flex;align-items:center;gap:12px;width:100%;padding:8px 12px;border:1px solid #d4dfe6;border-radius:8px;background:#fff;text-align:left;cursor:pointer}
.colour-button:hover{border-color:#9fb3c1}
.colour-chip{width:44px;height:28px;border-radius:6px;flex:none;box-shadow:inset 0 0 0 1px #0002}
.colour-button-text{display:grid;gap:2px;flex:1;font-size:12px;color:#263f51}
.colour-button-text code{font-size:11px;color:#73808c}
.colour-change{font-size:12px;color:#2f6f8f;font-weight:600}
.colour-window{width:min(760px,95vw);max-width:95vw}
.colour-window .modal-body{gap:20px}
.colour-window h3{font-size:13px;font-weight:700;color:#263f51;margin:0 0 10px}
.colour-top{display:grid;grid-template-columns:minmax(0,300px) minmax(0,1fr);gap:28px;align-items:start}
.colour-side{display:grid;gap:22px;padding-left:24px;border-left:1px solid var(--line)}
.honeycomb{width:100%;height:auto;outline:none;border-radius:10px}
.honeycomb:focus-visible{box-shadow:0 0 0 2px #233543}
.honeycomb .cell{cursor:pointer;stroke:#fff;stroke-width:2}
.honeycomb .cell:hover{stroke:#233543;stroke-width:2.5}
.honeycomb .cell[aria-checked="true"]{stroke:#fff;stroke-width:4;filter:drop-shadow(0 0 2px #0009)}
.honeycomb .tick{pointer-events:none}
.colour-selected{display:flex;align-items:center;gap:14px;padding-bottom:16px;border-bottom:1px solid var(--line)}
.colour-bar{width:120px;height:44px;border-radius:9px;box-shadow:inset 0 0 0 1px #0002}
.colour-code{font-size:17px;font-weight:600;color:#263f51;flex:1}
.colour-copy.copied{color:#2a8f3c}
.colour-hint{margin:10px 0 0;font-size:12px;color:#9a4b12}
.colour-tiles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px 10px}
.colour-tile{display:grid;justify-items:center;gap:6px;padding:4px;min-height:0;border:0;background:none;font-size:12px;color:#33566b;cursor:pointer}
.colour-tile span{width:100%;max-width:64px;height:40px;border-radius:9px;box-shadow:inset 0 0 0 1px #0002}
.colour-tile[aria-pressed="true"] span{box-shadow:0 0 0 2px #fff,0 0 0 4px #1f6fd1}
.colour-preview-section{padding-top:18px;border-top:1px solid var(--line)}
.colour-previews{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.colour-preview{margin:0;display:grid;gap:6px;justify-items:center;font-size:12px;color:#33566b}
.colour-preview svg{width:100%;height:auto;border:1px solid #dfe5e9;border-radius:9px;background:#fff}
@media (max-width:640px){.colour-top{grid-template-columns:minmax(0,1fr)}.colour-side{padding-left:0;border-left:0}.colour-previews{grid-template-columns:minmax(0,1fr)}}

/* The suggested colours in the trade dialog (colour-picker.mjs colourButtonHTML); More colours… opens the chart. */
.colour-suggest{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.colour-swatch{display:grid;justify-items:center;gap:4px;padding:4px 2px;min-height:0;border:1px solid transparent;border-radius:9px;background:none;font-size:11px;color:#33566b;cursor:pointer}
.colour-swatch span{width:100%;max-width:56px;height:26px;border-radius:7px;box-shadow:inset 0 0 0 1px #0002}
.colour-swatch:hover{border-color:#d4dfe6}
.colour-swatch[aria-checked="true"]{border-color:#1f6fd1;background:#f2f7fd;font-weight:600}
.colour-button.chosen{border-color:#1f6fd1;background:#f2f7fd}

/* Trades tab: search (app.mjs bindTradeSearch) and cards whose item list scrolls inside a fixed height. */
.trade-tools{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.trade-find{position:relative;width:min(300px,100%)}
.trade-find input{width:100%;border:1px solid #d4dfe6;border-radius:8px;padding:9px 12px;font:inherit;font-size:13px;background:#fff}
.trade-results{position:absolute;z-index:20;top:calc(100% + 4px);left:0;right:0;max-height:320px;overflow:auto;background:#fff;border:1px solid #d4dfe6;border-radius:9px;box-shadow:0 12px 30px #102d3d26;padding:4px}
.trade-results button{display:grid;gap:2px;width:100%;text-align:left;padding:7px 9px;min-height:0;border:0;border-radius:6px;background:none;cursor:pointer}
.trade-results button:hover,.trade-results button:focus-visible{background:#f2f7fd}
.trade-results small{color:#73808c;font-size:11px}
.trade-results p{margin:6px 9px;font-size:12px}
.trade-card .item-list{max-height:300px;overflow-y:auto;overscroll-behavior:contain;padding-right:4px}
.jump-flash{animation:jump-flash 2s ease-out}
@keyframes jump-flash{0%,30%{box-shadow:0 0 0 3px #d65c32;background:#fdf0ea}100%{box-shadow:0 0 0 0 #d65c3200}}

/* The tool options bar (app.mjs toolOptionsHTML): the next measurement's trade, package, item and name, under the drawing
   tools while a measuring tool is chosen. */
.tool-options{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;padding:7px 12px;background:#eef5fc;border-bottom:1px solid #d3e2f1;flex-shrink:0;font-size:12px;color:#33566b}
.tool-options[hidden]{display:none}
.tool-options strong{font-size:12px;color:#1f4f7a;margin-right:4px;white-space:nowrap}
.tool-options label{display:flex;align-items:center;gap:6px;margin:0;font-size:11px;font-weight:600}
.tool-options select,.tool-options input{min-height:30px;padding:4px 8px;font-size:12px;border:1px solid #c9d8e6;border-radius:6px;background:#fff;color:#263f51}
.tool-options select{max-width:220px}
.tool-options input{width:200px}
@media (max-width:760px){.tool-options label{flex:1 1 100%}.tool-options select,.tool-options input{flex:1;max-width:none;width:auto}}

/* BOQ Preview levels, loudest first (boq-view.mjs boqPreviewHTML): category band with its colour at the edge; a package as a
   quiet indented sub-header; the items in it on a guide line; their measurements. */
tr.category-row td{background:#e4ecf2;border-top:2px solid #c6d5e0;padding-top:14px;padding-bottom:14px}
tr.category-row td:first-child{box-shadow:inset 5px 0 0 var(--trade,#7f9cad);padding-left:20px}
tr.category-row strong{font-size:14.5px;color:#10202b}
tr.package-row td{background:#f8fafc;border-top:1px solid #e6edf2;padding-top:8px;padding-bottom:8px}
tr.package-row td:first-child{padding-left:22px}
tr.package-row strong{font-size:13px;font-weight:700;color:#1b3443}
tr.boq-item td:first-child strong{font-weight:600;color:#263f51}
.row-tag{display:inline-block;margin-right:8px;padding:1px 6px;border-radius:4px;background:transparent;border:1px solid #d3dee6;font-size:8.5px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#7b909d;vertical-align:1px}
tr.boq-item.in-package td:first-child,tr.boq-measure.in-package td:first-child{padding-left:38px;background-image:linear-gradient(#cfdce6,#cfdce6);background-size:2px 100%;background-position:20px 0;background-repeat:no-repeat}
@media print{tr.category-row td,tr.package-row td{-webkit-print-color-adjust:exact;print-color-adjust:exact}}

/* The quick guide (app.mjs showHelp): cards read left to right, wrapping on narrow screens. */
.guide-dialog{width:min(1180px,95vw);max-width:95vw}
.guide-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:14px}
.guide-card{border:1px solid #e1e8ee;border-radius:12px;padding:14px 16px;background:#fbfcfd;display:grid;align-content:start;gap:8px}
.guide-card h3{display:flex;align-items:center;gap:9px;margin:0;font-size:14px;color:#14212b}
.guide-card h3 span{flex:none;display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:#1f4f7a;color:#fff;font-size:12px}
.guide-card p,.guide-card li,.guide-card dd{font-size:12px;line-height:1.6;color:#4a6070;margin:0}
.guide-card dl.help-tools{display:grid;grid-template-columns:auto 1fr;gap:4px 10px;margin:0}
.guide-card dt{font-size:12px;font-weight:600;white-space:nowrap}
.guide-card .help-list{margin:0;padding-left:18px}
.guide-card .help-shortcuts{display:grid;gap:5px}
.guide-card .help-shortcut{display:flex;align-items:center;gap:8px;font-size:12px;color:#4a6070}

/* Pinned page header: the top bar (pages outside a project) or the project header (name and tabs; a project page has no
   top bar) stays at the top of the window while the page scrolls. */
.topbar{position:sticky;top:0;z-index:40}
.project-header{position:sticky;top:0;z-index:39}
/* The drawings workspace already fills the window under its header (styles.css), so there the header keeps its place above
   the drawing tools instead of sliding over them. */
@media(min-width:701px){.main:has(.workspace)>.project-header{position:relative;top:auto}}

/* A measurement in another unit than its BOQ item: its quantity in the item's unit (core.mjs convertedQuantity). */
.qty-converted{flex:none;font-size:11px;font-weight:600;color:#1f4f7a;white-space:nowrap;font-variant-numeric:tabular-nums}
.qty-converted small{font-weight:400;color:#5f7d92}
.boq-measure .converted{color:#1f4f7a;font-weight:600}

/* Renaming a measurement in the takeoff register (app.mjs startRename): its name as a text box. */
.measure-list .rename-input{width:100%;min-height:0;padding:2px 6px;font:inherit;font-size:11.5px;color:#14212b;border:1px solid #1f6fd1;border-radius:4px;background:#fff;outline:none;box-shadow:0 0 0 2px #1f6fd133}

/* Any fold arrow turns down while its section is open (a group's arrow carries aria-expanded itself). */
.twisty[aria-expanded=true] .icon{transform:rotate(90deg)}
