#scope-build{padding-left:240px!important;position:relative;min-height:calc(100vh - 34px)}
#scope-build>header{position:fixed!important;top:34px;bottom:0;left:0;width:240px;box-sizing:border-box;display:flex!important;flex-direction:column;align-items:stretch!important;gap:22px;padding:24px 16px!important;background:#f1f1f3;border-right:1px solid #dedee3;z-index:20;overflow-y:auto}
#scope-build>header nav{display:flex;flex-direction:column;align-items:stretch;gap:5px;flex:1}
#scope-build>header nav>button{width:100%;text-align:left;justify-content:flex-start;padding:10px 12px}
#scope-build>header .company{margin-top:auto;font-size:12px}
#scope-build .sidebar-project{border-top:1px solid #dcdce1;margin-top:16px;padding-top:20px;min-width:0}
#scope-build .sidebar-caption{font-size:10px;letter-spacing:1px;color:#74747c}
#scope-build .sidebar-switch{display:block;font-size:12px;margin-top:12px}
#scope-build .sidebar-switch select{width:100%;margin-top:6px;box-sizing:border-box;font-size:12px}
#scope-build .sidebar-customer{display:block;margin:8px 0 16px;color:#74747c;overflow-wrap:anywhere}
#scope-build .sidebar-project .project-navigation{display:block;border:0;padding:0;background:transparent;margin:0}
#scope-build .sidebar-project .project-nav-links{display:flex;flex-direction:column;gap:5px}
#scope-build .sidebar-project .project-destination{width:100%;justify-content:flex-start;text-align:left;padding:10px 12px}
#scope-build .sidebar-project [aria-current=page]{background:#e0e0e7;color:#202028}
#scope-build .sidebar-project .project-navigation>small{display:block;font-size:11px;line-height:1.5;margin-top:12px}
#scope-build .co-exit-choice{position:fixed;z-index:100;left:260px;right:24px;top:60px;background:white;padding:24px;border:1px solid #dcdce1;border-radius:12px;box-shadow:0 12px 45px #0003}
@media(max-width:1000px){#scope-build{padding-left:210px!important}#scope-build>header{width:210px}#scope-build>main{padding:20px!important}}
#scope-build .document-focus{display:flex;background:#f0f2f5;border:1px solid #e1e4e9;border-radius:12px;padding:16px 20px;margin:16px 0}
#scope-build .document-focus small{font-size:10px;letter-spacing:1px;color:#68707c}
#scope-build .document-focus strong{display:block;font-size:18px;margin:5px 0}
#scope-build .document-focus p,#scope-build .document-next-step{font-size:12px;color:#616974;line-height:1.5;margin:6px 0}
#scope-build .document-library{background:#fff;border:1px solid #e1e4e9;border-radius:12px;padding:16px 20px;margin:18px 0}
#scope-build .document-library h2{font-size:15px;margin:0 0 8px}
#scope-build .document-older{border-top:1px solid #e4e6eb;margin-top:12px;padding-top:12px}
#scope-build .document-older summary{cursor:pointer;font-size:12px;color:#626a76;padding:6px 0}
#scope-build .document-older>button{margin:6px 6px 0 0}
/* Compact document workspace: the document, rather than repeated cards, leads. */
#scope-build[data-page="quote"] .book-context{margin-bottom:8px;padding-top:0;padding-bottom:8px}
#scope-build .document-heading-compact{margin-top:10px;margin-bottom:12px;gap:12px}
#scope-build .document-heading-compact h1{font-size:24px;margin-top:8px;margin-bottom:4px}
#scope-build .document-tools-compact{padding:0!important;margin:0 0 12px!important;border:0!important}
#scope-build .document-tools-compact>.job-actions{margin:0;gap:8px;flex-wrap:wrap}
#scope-build .document-tools-compact button{padding:8px 12px;min-height:36px}
#scope-build .document-secondary,#scope-build .document-history-compact{margin:8px 0;font-size:12px}
#scope-build .document-secondary>summary,#scope-build .document-history-compact>summary{cursor:pointer;color:#626a76;padding:6px 0}
#scope-build .document-secondary[open]{padding-bottom:12px;border-bottom:1px solid #e1e4e9}
#scope-build .document-secondary>.job-actions{margin:8px 0}
#scope-build .document-secondary>h2{font-size:13px;margin:12px 0 4px}
#scope-build .document-history-compact .document-library{margin:8px 0;padding:12px 16px}
#scope-build[data-page="quote"] article.quote{margin-top:12px}
#scope-build .proposal-snapshot-notice{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:10px 14px;margin:10px 0;border-left:0;background:#fff5df;border-radius:6px;font-size:12px;line-height:1.5}
#scope-build .proposal-snapshot-notice button{padding:6px 10px;white-space:nowrap}
#scope-build .proposal-draft-label{font-size:12px;color:#426047;margin:6px 0 12px}
#scope-build.context-available{display:grid;grid-template-columns:minmax(0,1fr);align-items:start;padding-right:0!important;box-sizing:border-box;width:100%}
#scope-build.context-available.has-context-panel{grid-template-columns:minmax(0,1fr) 296px}
#scope-build.context-available>main{grid-column:1;grid-row:2;min-width:0;width:100%;box-sizing:border-box;overflow-x:auto}
#scope-build .context-toggle{position:static;grid-column:1;grid-row:1;justify-self:end;margin:10px 18px 0;font-size:12px;padding:7px 12px}
#scope-build.has-context-panel .context-toggle{grid-column:2;position:fixed;right:16px;top:42px;margin:0;z-index:31}
#scope-build .context-inspector{position:fixed;top:84px;right:16px;width:280px;margin:0;box-sizing:border-box;border:1px solid #d9dce2;border-radius:12px;background:#fff;box-shadow:0 3px 14px #00000008;display:flex;flex-direction:column;overflow:hidden}
#scope-build .context-titlebar{display:flex;align-items:center;justify-content:space-between;padding:8px 12px;background:#f4f5f7;border-bottom:1px solid #e4e5e9;flex-shrink:0;font-size:12px}
#scope-build .context-titlebar button{padding:0 7px;font-size:20px;border:0;background:transparent}
#scope-build .context-inspector .context-body{flex:1;min-height:0;padding:12px}
#scope-build .context-resize{position:static;flex-shrink:0;width:100%;height:16px;line-height:10px;padding:0;border:0;border-top:1px solid #eee;background:#f7f8fa;color:#79828c;cursor:ns-resize;touch-action:none}
#scope-build .context-tabs{display:flex;padding:12px;gap:6px;border-bottom:1px solid #eee}
#scope-build .context-tabs button{flex:1;font-size:12px;padding:8px 10px;border:0;border-radius:7px;background:transparent}
#scope-build .context-tabs [aria-pressed=true]{background:#eef2f8;color:#1766bc}
#scope-build .context-body{overflow-y:auto;padding:16px;font-size:12px}
#scope-build .context-body>small{display:block;color:#747983;line-height:1.5}
#scope-build .context-body h2{font-size:15px;margin:14px 0 10px}
#scope-build .context-caption,#scope-build .context-empty{font-size:12px;color:#747983;line-height:1.5}
#scope-build .context-current{width:100%;padding:9px;border-radius:7px;color:#1766bc;background:#f2f6fc;font-size:12px;text-align:left}
#scope-build .context-document{border-top:1px solid #eceef1;padding:8px 0}
#scope-build .context-document>button{display:block;width:100%;text-align:left;padding:10px 8px;border:0;background:transparent;white-space:normal}
#scope-build .context-document strong,#scope-build .context-document small{display:block;line-height:1.6;font-size:12px}
#scope-build .context-document small{color:#747983}
#scope-build .context-document.is-selected{background:#f0f5fc;border-radius:7px}
#scope-build .context-unissued{color:#8a5905;background:#fff5df;padding:8px;border-radius:6px;font-weight:600}
#scope-build .context-note{border-top:1px solid #eceef1;padding:12px 0}
#scope-build .context-note p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.5}
#scope-build .context-body>.secondary{margin:6px 0;width:100%;font-size:12px}
@media print{#scope-build .context-inspector,#scope-build .context-toggle{display:none!important}#scope-build.has-context-panel{padding-right:0!important}}

@media print{#scope-build.context-available,#scope-build.context-available.has-context-panel{display:block}}
/* Keep ordinary proposal work visible without restoring the large header cards. */
#scope-build .document-tools-compact>.job-actions{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:8px 0 4px}
#scope-build .document-tools-compact>.job-actions>button{font-size:12px;line-height:1.3;padding:8px 10px;min-height:34px;white-space:normal}
#scope-build .document-secondary{margin:4px 0 10px}
#scope-build .document-secondary>summary{font-size:12px;padding:5px 0}
#scope-build .document-secondary>small{display:block;line-height:1.5;margin:6px 0;overflow-wrap:anywhere}
#scope-build .document-secondary>h2{display:flex;align-items:center;gap:5px;flex-wrap:wrap}
#scope-build .document-tools-compact>.document-attachment{margin-top:10px}
#scope-build .proposal-workspace-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:18px 0}
#scope-build .proposal-workspace-heading h1{font-size:25px;font-weight:650;letter-spacing:-.9px;line-height:1.25;color:var(--sb-ink);margin:0 0 6px}
#scope-build .proposal-workspace-heading>.primary{flex-shrink:0;margin-left:auto}
#scope-build .proposal-view-controls{display:flex;align-items:center;gap:10px 16px;flex-wrap:wrap;margin:12px 0 16px;font-size:12px}
#scope-build .proposal-view-controls .proposal-version-hint{flex-basis:100%;color:var(--sb-muted)}
#scope-build .proposal-view-controls .quote-controls{display:flex;align-items:center;gap:8px}
/* Soft selected states, without decorative inset underlines or colored card caps. */
#scope-build .project-destination[aria-current=page],
#scope-build .sidebar-project [aria-current=page],
#scope-build .archive-controls button[aria-pressed=true]{box-shadow:none;background:var(--sb-soft);color:var(--sb-blue)}
#scope-build .measurement-layout>section.panel,
#scope-build .accepted-summary,
#scope-build .financial-baseline{border-top:0}
#scope-build details.workspace-customer{padding:0 20px}
#scope-build .workspace-customer-heading{display:flex;align-items:center;gap:12px;cursor:pointer;list-style:none;padding:16px 0}
#scope-build .workspace-customer-heading::-webkit-details-marker{display:none}
#scope-build .workspace-customer-heading::before{content:'›';font-size:19px;color:var(--sb-muted);width:14px;flex-shrink:0}
#scope-build details.workspace-customer[open]>.workspace-customer-heading::before{transform:rotate(90deg)}
#scope-build .workspace-customer-heading h2{font-size:16px;margin:0 0 3px}
#scope-build .workspace-customer-heading small{font-size:12px;color:var(--sb-muted)}
#scope-build .workspace-customer-actions{padding:0 0 12px;display:flex;gap:12px;flex-wrap:wrap}
