/* Daily workspace. Loaded last so historical tools keep their behaviours, not their clutter. */
:root,[data-theme="light"]{--font:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;--display:var(--font);--bg:#f7f8fa;--surface:#fff;--surface-2:#f1f3f6;--border:#e2e6ec;--text:#20252c;--text-muted:#616b79;--text-dim:#697384;--accent:#a9472e;--accent-soft:#f9eee9;--ws-radius:12px}
body{grid-template-columns:220px minmax(0,1fr);font-size:14px;line-height:1.5;background:var(--bg)}
button,a,input,textarea,select{touch-action:manipulation}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #b2634b;outline-offset:3px}h1:focus{outline:0}button:disabled{cursor:not-allowed}
.nw-sidebar,[data-theme="light"] .nw-sidebar{padding:28px 16px 16px;background:#fff;height:100dvh}.nw-sidebar .sidebar-logo{padding:0 12px;font-size:27px;letter-spacing:-1.4px}.nw-logo-dot{color:var(--accent)}.nw-sidebar .sidebar-badge{padding:0 12px;margin-bottom:32px;font-size:9px;color:var(--text-muted);letter-spacing:.08em}.nw-sidebar .sidebar-link{font-size:13px;min-height:45px;margin-bottom:5px;padding:12px;border-radius:7px}.nw-sidebar .sidebar-link-icon{font-size:19px}.nw-sidebar .sidebar-link.active{font-weight:650;background:var(--accent-soft);color:var(--accent)}.nw-sidebar-note{margin:35px 12px 0;padding-top:20px;border-top:1px solid var(--border)}.nw-sidebar-note>span{font-size:9px;font-weight:700;letter-spacing:.12em;color:var(--text-dim)}.nw-sidebar-note p{font-size:12px;line-height:1.8;color:var(--text-muted);margin:10px 0}.nw-sidebar-note button{border:0;background:none;padding:0;font:500 11px var(--font);color:var(--accent);text-align:left;cursor:pointer;min-height:32px}.nw-sidebar .sidebar-user{border:1px solid var(--border);width:100%;text-align:left;cursor:pointer;background:var(--bg);color:var(--text);font:inherit;padding:10px}.sidebar-user-info{min-width:0}.nw-sidebar .sidebar-user-name,.nw-sidebar .sidebar-user-role{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.nw-sidebar .sidebar-user-name{font-size:12px}.nw-sidebar .sidebar-user-role{font-size:10px;margin-top:2px}.nw-sidebar .sidebar-avatar{flex-shrink:0;background:#e7ebf0;color:#536071;border-radius:8px}
/* Historical Agent Lab must never hide the daily navigation. */
body.confidential-mode .nw-sidebar .sidebar-link{display:flex!important}body.confidential-mode .nw-sidebar .sidebar-logo{font-size:27px}body.confidential-mode .nw-sidebar .sidebar-logo::after,body.confidential-mode .nw-sidebar .sidebar-badge::after{display:none}body.confidential-mode .nw-sidebar .sidebar-badge{font-size:9px}
.main{padding:0 32px 40px;height:100dvh;min-width:0}.page-section{max-width:1360px}.ws-topbar{max-width:1360px;margin:0 auto 30px;min-height:66px;gap:16px;font-size:12px;border-bottom:1px solid var(--border)}.ws-topbar #wsBreadcrumb{margin-right:auto;min-width:0}.ws-search-trigger{height:34px;padding:5px 10px;font-size:11px;gap:10px;background:transparent}.ws-search-trigger kbd{font-size:10px;color:var(--text-dim)}.nw-help-trigger{width:30px;height:30px;border:1px solid var(--border);border-radius:50%;background:transparent;color:var(--text-muted);cursor:pointer}#page-dashboard>.main-header{display:none}#nwSectionNav{max-width:1360px;margin:-10px auto 25px}#nwSectionNav nav{display:flex;gap:5px;overflow:auto;border-bottom:1px solid var(--border)}#nwSectionNav nav button{border:0;border-bottom:2px solid transparent;white-space:nowrap;padding:11px 15px;background:none;font:500 12px var(--font);color:var(--text-muted);cursor:pointer}#nwSectionNav nav [aria-current=page]{border-bottom-color:var(--accent);color:var(--accent)}.nw-context{display:flex;gap:16px;align-items:center;border:1px solid var(--border);border-radius:8px;padding:10px 14px;background:var(--surface);font-size:12px}.nw-context button{border:0;background:none;color:var(--accent);font:600 12px var(--font);cursor:pointer;text-align:left}.nw-context>span{margin-left:auto;color:var(--text-muted);font-size:11px}.nw-legacy-hint{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 16px;background:var(--surface);border:1px solid var(--border);border-radius:8px;font-size:12px;color:var(--text-muted);margin-bottom:24px}
.nw-page-heading,.cw-library-heading{display:flex;justify-content:space-between;align-items:center;gap:24px;margin:0 0 28px}.nw-page-heading h1,.cw-library-heading h1,.cw-client h1{font:650 32px/1.2 var(--font);letter-spacing:-1.1px;margin:0 0 8px;overflow-wrap:anywhere}.nw-page-heading p,.cw-library-heading p,.cw-client p{font-size:13px;color:var(--text-muted);margin:0;line-height:1.7}.nw-overline,.cw-kicker{display:block;font-size:10px;letter-spacing:.1em;font-weight:650;color:var(--text-muted)}.nw-page-heading .nw-overline{font-size:9px;margin-bottom:10px}.nw-button,.cw-shell .af-button,.cw-dialog .af-button{border:1px solid var(--border);border-radius:7px;min-height:37px;padding:9px 13px;background:var(--surface);font:550 12px/1.5 var(--font)!important;color:var(--text);cursor:pointer;display:inline-flex;align-items:center;justify-content:center;text-decoration:none;gap:7px}.nw-button:hover,.cw-shell .af-button:hover{background:var(--surface-2);border-color:#bbc3ce}.nw-primary,.cw-shell .af-primary,.cw-dialog .af-primary{background:var(--accent);color:white;border-color:var(--accent)}.nw-primary:hover,.cw-shell .af-primary:hover{background:#923c28;color:white;border-color:#923c28}.nw-text-button{font:600 12px var(--font);color:var(--accent);padding:8px 0;border:0;background:none;cursor:pointer}.nw-summary{display:flex;align-items:center;gap:26px;margin:0 0 28px;padding:15px 0;border-block:1px solid var(--border);font-size:12px;color:var(--text-muted);flex-wrap:wrap}.nw-summary>span strong{font-size:17px;color:var(--text);margin-right:5px;font-weight:600}.nw-summary>button{margin-left:auto;display:flex;align-items:center;gap:8px;border:0;background:none;color:var(--text-muted);font:12px var(--font);cursor:pointer}.nw-summary i,.cw-dot{width:6px;height:6px;display:inline-block;border-radius:50%;background:#9aa3af}.is-live{background:#428665!important;box-shadow:0 0 0 4px #42866512}.nw-home-grid{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(280px,1fr);gap:24px;align-items:start}.nw-panel,.cw-panel{background:var(--surface);border:1px solid var(--border);border-radius:10px;min-width:0;padding:22px}.nw-panel-heading,.cw-panel-heading{display:flex;justify-content:space-between;gap:16px;align-items:center;margin-bottom:16px}.nw-panel h2,.nw-orientation h2,.cw-panel h2,.cw-panel-heading h2,.cw-price-source h2{font-size:16px;font-weight:650;letter-spacing:-.3px;margin:0}.nw-panel-heading>.nw-button{background:none;border:0;padding:5px;color:var(--accent);font-size:11px!important;min-height:30px}.nw-home-row{display:flex;width:100%;gap:14px;align-items:center;text-align:left;color:var(--text);font:inherit;background:transparent;border:0;border-top:1px solid var(--border);padding:18px 0;cursor:pointer}.nw-home-row:hover strong{color:var(--accent)}.nw-home-row>span:nth-child(2){flex:1;min-width:0}.nw-home-row strong{display:block;font-size:13px;font-weight:600;overflow-wrap:anywhere}.nw-home-row small{display:block;font-size:11px;color:var(--text-muted);margin-top:3px}.nw-home-row>span:last-child{color:var(--text-dim)}.nw-record-symbol{width:36px;height:36px;display:grid;place-items:center;border-radius:7px;background:var(--surface-2);font-size:19px;color:#788394;flex-shrink:0}.nw-decisions .nw-panel-heading>span{font-size:11px;background:var(--surface-2);padding:2px 7px;border-radius:5px}.nw-decisions .nw-home-row{padding:14px 0}.nw-orientation{padding:24px 6px}.nw-orientation h2{margin:10px 0}.nw-orientation p,.nw-tool p,.nw-panel>p{font-size:13px;line-height:1.85;color:var(--text-muted);margin:10px 0}.nw-quiet,.nw-empty,.cw-empty{text-align:center;padding:28px 16px}.nw-quiet>span,.nw-empty>span,.cw-empty-icon{display:block;font-size:26px;color:#849386;margin-bottom:12px}.nw-quiet h3,.nw-empty h3,.cw-empty h3{font-size:15px;font-weight:600;margin:0 0 8px}.nw-quiet p,.nw-empty p,.cw-empty p{font-size:12px;color:var(--text-muted);line-height:1.8;max-width:430px;margin:8px auto 18px}.nw-quiet{padding:22px 0 8px}.nw-quiet>span{font-size:22px}.nw-loading{padding:60px 20px;text-align:center;font-size:13px;color:var(--text-muted)}.nw-warning,.cw-warning{background:#fff8ec;color:#785320;border:1px solid #efdfc0;padding:12px 15px;font-size:12px;line-height:1.7;border-radius:7px;margin:0 0 18px}.nw-footnote,.cw-caption,.cw-muted{font-size:11px;color:var(--text-muted);line-height:1.8}.nw-tool-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.nw-tool{padding:22px;border:1px solid var(--border);border-radius:10px;background:var(--surface);text-align:left;color:var(--text);font:inherit;cursor:pointer}.nw-tool:hover{border-color:#b9c3cf}.nw-tool strong{display:flex;justify-content:space-between;font-size:14px;gap:10px}.nw-tool strong span{color:var(--text-muted)}.nw-tool p{font-size:12px;margin-bottom:0}.nw-lab{margin-top:24px}
.cw-shell{--af-ink:var(--text);--af-accent:var(--accent);--af-line:var(--border);--af-muted:var(--text-muted);font-size:14px;max-width:none}.cw-shell .af-status:empty{display:none}.cw-shell .af-status:not(:empty){padding:12px 15px;background:var(--surface);border:1px solid var(--border);border-radius:7px;margin:0 0 18px}.cw-library-nav{display:flex;border-bottom:1px solid var(--border);margin-bottom:16px;overflow:auto}.cw-library-nav>div{display:flex;gap:22px}.cw-library-nav .af-button{border:0;border-bottom:2px solid transparent;white-space:nowrap;border-radius:0;background:none;padding:12px 0;color:var(--text-muted)}.cw-library-nav [aria-pressed=true]{border-bottom-color:var(--accent);color:var(--accent)}.cw-shell .af-library-toolbar{display:flex;align-items:center;gap:15px;margin:0 0 16px}.cw-shell .af-library-toolbar .af-search{margin:0;max-width:420px;flex:1}.cw-shell .af-library-toolbar .af-search input{min-height:40px;font-size:12px}.cw-shell .af-archive-filter{font-size:11px;white-space:nowrap;margin:0;gap:7px}.cw-shell input[type=checkbox],.cw-shell input[type=radio]{accent-color:var(--accent)}.cw-records{background:var(--surface);border:1px solid var(--border);border-radius:10px;overflow:hidden}.cw-record-head,.cw-record{display:grid;grid-template-columns:minmax(190px,1.3fr) minmax(150px,1fr) 150px 18px;align-items:center;gap:20px;padding:17px 22px}.cw-record-head{font-size:10px;color:var(--text-muted);background:#fbfcfd;letter-spacing:.04em;border-bottom:1px solid var(--border)}.cw-record{width:100%;font:inherit;text-align:left;background:none;border:0;border-bottom:1px solid var(--border);color:var(--text);cursor:pointer;min-height:84px}.cw-record:hover{background:#fafbfd}.cw-record-client{display:flex;align-items:center;gap:14px;min-width:0}.cw-record-client>i{display:grid;place-items:center;width:38px;height:38px;background:var(--surface-2);border-radius:8px;font-size:20px;font-style:normal;color:#778493;flex-shrink:0}.cw-record-client>span{min-width:0}.cw-record strong{font-size:13px;display:block;overflow-wrap:anywhere}.cw-record small{display:block;margin-top:5px;font-size:11px;color:var(--text-muted);overflow-wrap:anywhere}.cw-record-content b{font-size:11px;font-weight:500}.cw-status{font-size:10px!important;font-weight:550;background:#edf1f5;color:#586477;border-radius:5px;display:inline-flex;justify-self:start;padding:4px 8px;line-height:1.6}.cw-status.needs-attention{background:#fbefdb;color:#865f20}.cw-record>span:last-child{color:var(--text-dim)}.cw-result-count{font-size:10px;color:var(--text-muted);margin:0;padding:12px 22px}.cw-library-foot{display:flex;align-items:center;gap:24px;margin:20px 0;justify-content:space-between}.cw-library-foot p{max-width:620px;font-size:11px;color:var(--text-muted);line-height:1.8;margin:0}.cw-library-foot .af-button{flex-shrink:0}
.cw-breadcrumb{display:flex;align-items:center;gap:10px;font-size:11px;color:var(--text-muted);margin:0 0 23px}.cw-breadcrumb>.af-button{border:0;background:none;padding:0;min-height:32px;color:var(--text-muted);font-size:11px!important}.cw-breadcrumb>div{margin-left:auto;display:flex;align-items:center;gap:6px}.cw-breadcrumb>div>.af-button{width:33px;min-height:33px;padding:5px}.cw-breadcrumb>span:last-of-type{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cw-client{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:26px}.cw-client h1{font-size:30px}.cw-client p{font-size:12px}.cw-client p span{margin:0 6px}.cw-tabs{padding:0;gap:26px;background:none;border-top:0;white-space:nowrap}.cw-shell .cw-tabs .af-button{font-size:12px!important;padding:12px 0;min-height:44px;background:none;border:0;border-bottom:2px solid transparent;border-radius:0;font-weight:500!important;color:var(--text-muted)}.cw-shell .cw-tabs [aria-current=page]{color:var(--accent);border-bottom-color:var(--accent);font-weight:600!important}.cw-content{padding:24px 0;min-height:320px}.cw-next{display:grid;grid-template-columns:minmax(0,1fr) 220px;border:1px solid #dfd6cf;border-radius:10px;background:#fffdfb;margin-bottom:24px;overflow:hidden}.cw-next>div{padding:27px 30px}.cw-next h2{font-size:24px;font-weight:600;letter-spacing:-.65px;line-height:1.3;margin:10px 0}.cw-next p{color:var(--text-muted);font-size:13px;line-height:1.8;max-width:640px;margin:10px 0 20px}.cw-next aside{padding:28px;background:#f5f1ec;border-left:1px solid #e8ded4;display:flex;flex-direction:column}.cw-next aside strong{font-size:19px;font-weight:600;margin-top:16px;letter-spacing:-.4px}.cw-next aside p{font-size:11px;margin:7px 0 15px}.cw-step-count{font:12px ui-monospace,monospace;margin-top:auto;color:#857464}.cw-overview-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(240px,1fr);gap:24px}.cw-inventory>button{display:grid;grid-template-columns:140px 1fr 16px;align-items:center;gap:12px;width:100%;background:none;border:0;border-top:1px solid var(--border);padding:17px 0;text-align:left;color:var(--text);font:600 12px var(--font);cursor:pointer}.cw-inventory>button>span:nth-child(2){font-size:11px;font-weight:400;color:var(--text-muted);line-height:1.6}.cw-inventory b{font-size:14px;color:var(--text-dim);font-weight:400}.cw-inventory>button:hover>span:first-child{color:var(--accent)}.cw-path{list-style:none;display:grid;gap:0;margin:0;padding:0}.cw-path li{position:relative;display:flex;align-items:center;gap:12px;padding:9px 0;color:var(--text-muted)}.cw-path li:not(:last-child):before{content:'';position:absolute;left:12px;top:30px;width:1px;height:25px;background:var(--border)}.cw-path li>span{width:25px;height:25px;border:1px solid var(--border);background:#fff;border-radius:50%;font-size:10px;display:grid;place-items:center;z-index:1}.cw-path strong{font-size:12px;font-weight:500}.cw-path small{display:inline-block;margin-left:10px;font-size:9px;color:var(--accent)}.cw-path .is-current>span{background:var(--accent);color:#fff;border-color:var(--accent)}.cw-path .is-current strong{color:var(--text);font-weight:650}.cw-path .is-complete>span{background:#eaf3ed;border-color:#d7e6da;color:#4b7b58}.cw-panel>.cw-caption{margin:15px 0 0}.cw-shell .af-history{padding:16px 0;background:none;font-size:11px}.cw-shell .af-history>p{font-size:12px;padding-top:10px}.cw-shell .af-history>summary{list-style:revert;color:var(--text-muted)}
.cw-panel-heading p,.cw-price-source p{font-size:12px;color:var(--text-muted);margin:7px 0 0;line-height:1.7}.cw-study-status{display:flex;justify-content:space-between;gap:16px;font-size:11px;padding:13px 16px;border:1px solid var(--border);border-radius:7px;background:var(--surface);margin:20px 0 16px;color:var(--text-muted)}.cw-study-status>div{display:flex;align-items:center;gap:12px}.cw-study-status strong{color:var(--text);font-weight:600}.cw-documents{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.cw-document{display:flex;align-items:center;gap:13px;text-align:left;background:#f4f5f7;border:1px solid var(--border);color:var(--text-muted);padding:18px;border-radius:8px;font:inherit}.cw-shell .cw-document:disabled{opacity:1;cursor:default}.cw-document.is-ready{background:white;cursor:pointer;color:var(--text)}.cw-document.is-ready:hover{border-color:#bdc9be}.cw-document>span:nth-child(2){flex:1;min-width:0}.cw-document strong{display:block;font-size:12px;font-weight:600}.cw-document small{display:block;font-size:11px;color:var(--text-muted);margin-top:5px}.cw-doc-icon{font-size:23px;color:#909ba8}.cw-document.is-ready .cw-doc-icon{color:#527f5c}.cw-doc-footer{margin-top:20px}.cw-doc-footer>p{font-size:11px;color:var(--text-muted);margin-bottom:16px}.cw-job-select{max-width:420px;margin:18px 0}.cw-sites-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:24px}.cw-sites-grid h3{font-size:17px;font-weight:600;line-height:1.5;margin:13px 0 8px}.cw-sites-grid p,.cw-delivery-note p{font-size:12px;color:var(--text-muted);line-height:1.85;margin:10px 0 18px}.cw-site-row{border-top:1px solid var(--border);margin-top:20px;padding-top:18px}.cw-site-row strong,.cw-site-row small{display:block;font-size:12px}.cw-site-row small{font-size:11px;color:var(--text-muted);margin:5px 0 14px}.cw-delivery-note{margin-top:24px;border:1px dashed #cbd1d9;border-radius:9px;padding:20px 24px}.cw-delivery-note>strong{font-size:10px;font-weight:600;letter-spacing:.08em}.cw-subtabs{display:flex;gap:8px;margin-bottom:16px}.cw-form-panel{padding:25px;background:var(--surface);border:1px solid var(--border);border-radius:10px}.cw-price-source{display:flex;justify-content:space-between;gap:18px;margin-bottom:22px}.cw-shell .af-save{position:sticky;bottom:0;background:var(--surface);border-top:1px solid var(--border);padding:14px 0;margin:20px 0 0;z-index:5}.cw-shell label{font-size:12px}.cw-shell input:not([type=radio]):not([type=checkbox]),.cw-shell textarea,.cw-shell select{background:var(--surface);color:var(--text);border-color:var(--border);font-size:13px;line-height:1.6}.cw-shell .af-offer{background:#fafbfc;border-color:var(--border)}.cw-shell .af-offer:has(input:checked){background:var(--accent-soft);border-color:#c89581}.cw-shell .af-offer strong{font-size:16px}.cw-shell .af-offer small{font-size:11px}.cw-shell .af-note{font-size:11px!important;line-height:1.85}.cw-shell .af-section-heading p{font-size:12px}.cw-shell .af-empty-small{background:var(--surface-2)}.cw-shell .af-stats strong{font-size:23px}.cw-shell .af-subsection{margin-top:26px;padding-top:22px}.cw-shell .af-inline{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.cw-shell .af-menu summary{display:grid;place-items:center;width:33px;height:33px;background:var(--surface);border:1px solid var(--border);border-radius:6px;font-size:11px}.cw-shell .af-menu>div{background:var(--surface);border-color:var(--border);box-shadow:0 10px 35px #1b26351a}
.nw-help,.cw-dialog{margin:auto;width:640px;max-width:calc(100% - 32px);max-height:90dvh;overflow:auto;padding:28px;border:1px solid var(--border);border-radius:12px;background:var(--surface);color:var(--text);font-family:var(--font);box-shadow:0 25px 90px #20293633}.nw-help::backdrop,.cw-dialog::backdrop{background:#222b3866;backdrop-filter:blur(3px)}.nw-help header{display:flex;align-items:center;justify-content:space-between;gap:14px}.nw-help header button{width:32px;height:32px;background:none;border:1px solid var(--border);border-radius:6px;color:var(--text-muted);cursor:pointer;font-size:20px}.nw-help h2{font-size:28px;line-height:1.3;letter-spacing:-.8px;margin:20px 0 24px}.nw-help-items>div{display:flex;gap:18px;border-top:1px solid var(--border);padding:17px 0}.nw-help-items b{font-size:11px;color:var(--accent);padding-top:3px}.nw-help-items strong{font-size:13px}.nw-help-items p{font-size:12px;line-height:1.8;color:var(--text-muted);margin:6px 0 0}.nw-help .nw-footnote{padding:14px;border-radius:8px;background:var(--surface-2);font-size:11px}.cw-dialog h2{font-size:23px}.cw-dialog p{line-height:1.8}.cw-create-recap{padding:14px 16px;border:1px solid var(--border);background:var(--surface-2);border-radius:7px;font-size:12px;margin:16px 0}.cw-create-recap span{display:block;color:var(--text-muted);margin-top:4px}.cw-dialog .af-dialog-heading{margin-bottom:18px}
/* Calm shared hierarchy for secondary screens; no workflow or data changes. */
.ws-heading{margin:0 0 28px;align-items:center}.ws-heading h1,.ds-header h1,.ns-heading h1{font-size:32px!important;line-height:1.2;letter-spacing:-1px;margin:0 0 10px}.ws-heading p:not(.ws-eyebrow){font-size:13px}.ws-heading .ws-eyebrow{margin-bottom:8px}.ws-card{border-radius:10px;padding:24px}.ws-card h2{font-size:18px;letter-spacing:-.3px}.ws-button{font-size:12px;min-height:37px;gap:9px}.ws-settings-grid{gap:20px}.main-title{font-size:28px;font-weight:600;letter-spacing:-.8px}.section-header{margin-bottom:20px}.section-title{font-size:17px}.ds-stage{min-width:0}.ds-workspace{min-width:0}
@media(min-width:1700px){.main{padding-inline:48px}}
@media(max-width:1200px){.main{padding-inline:24px}.nw-home-grid{grid-template-columns:minmax(0,1.4fr) minmax(260px,1fr)}.cw-overview-grid{grid-template-columns:minmax(0,1.5fr) minmax(220px,1fr)}.cw-record-head,.cw-record{grid-template-columns:minmax(150px,1.2fr) minmax(120px,1fr) 115px 15px;gap:12px;padding-inline:17px}.cw-inventory>button{grid-template-columns:115px 1fr 14px}.cw-panel-heading{flex-wrap:wrap;gap:5px}.cw-library-heading{align-items:flex-start}.nw-summary{gap:18px}.nw-summary>button{margin-left:0}.nw-tool-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:1000px){.cw-next{grid-template-columns:1fr 170px}.cw-next>div{padding:24px}.cw-next aside{padding:24px 20px}.cw-tabs{gap:20px}.cw-shell .cw-tabs .af-button{font-size:11px!important}.cw-library-heading{flex-wrap:wrap;gap:16px}.cw-library-foot{align-items:flex-start;flex-direction:column;gap:12px}.cw-panel{padding:18px}.cw-overview-grid{gap:16px}}
@media(max-width:900px){body{grid-template-columns:minmax(0,1fr)}.nw-sidebar{display:none}.main{padding:0 22px 100px}.ws-topbar{min-height:60px;position:sticky;top:0;background:var(--bg);z-index:20;margin-bottom:24px}.ws-topbar .ws-search-trigger{margin-left:auto}.ws-mobile-brand{font-size:21px}.ws-mobile-dock{grid-template-columns:repeat(5,minmax(0,1fr));padding:6px 8px max(8px,env(safe-area-inset-bottom));background:#fffffffa;backdrop-filter:blur(12px)}.ws-mobile-dock span{font-size:10px}.ws-mobile-dock a{font-size:21px;min-height:46px;gap:2px;padding:4px 2px}.cw-shell .af-save{bottom:64px}.nw-home-grid{grid-template-columns:minmax(0,1.4fr) minmax(250px,1fr)}}
@media(max-width:700px){.nw-home-grid,.cw-overview-grid,.cw-sites-grid{grid-template-columns:minmax(0,1fr)}.nw-home-grid{gap:20px}.nw-page-heading,.cw-library-heading{align-items:flex-start;gap:16px}.nw-page-heading h1,.cw-library-heading h1{font-size:28px}.nw-page-heading{flex-wrap:wrap}.cw-next{grid-template-columns:1fr}.cw-next aside{display:none}.cw-next h2{font-size:22px}.cw-next>div{padding:23px}.cw-path{grid-template-columns:repeat(3,1fr);gap:4px 10px}.cw-path li{align-items:flex-start}.cw-path li:before{display:none}.cw-path li strong{font-size:11px}.cw-path small{display:block;margin:3px 0 0;font-size:8px}.cw-path li>span{flex-shrink:0;width:23px;height:23px}.cw-path li{gap:7px}.cw-documents{grid-template-columns:1fr}.cw-study-status{flex-wrap:wrap;gap:10px}.cw-shell #afCases{display:block;overflow:hidden}.cw-record-head{display:none}.cw-record{grid-template-columns:minmax(0,1fr) auto;padding:18px;gap:12px}.cw-record-client{grid-column:1}.cw-record-content{grid-column:1;padding-left:52px}.cw-record>.cw-status{grid-row:1;grid-column:2;max-width:110px;font-size:9px!important}.cw-record>span:last-child{grid-column:2;grid-row:2;justify-self:end}.cw-record-content small{margin-top:3px}.cw-library-nav{margin-bottom:15px}.cw-library-nav>div{gap:20px}.cw-shell .af-library-toolbar{flex-wrap:wrap;gap:12px}.cw-shell .af-library-toolbar .af-search{flex-basis:100%;max-width:none;flex-grow:1}.cw-library-heading .af-inline{width:100%;justify-content:space-between}.cw-library-heading .af-inline .af-button:first-child{padding-left:0;background:none;border-color:transparent;font-size:11px!important}.cw-tabs{gap:24px}.cw-content{padding:20px 0}.cw-client{margin-bottom:20px;align-items:flex-start}.cw-client h1{font-size:27px}.cw-form-panel{padding:18px}.cw-shell .af-save{align-items:center;gap:12px;bottom:66px;padding:12px 0}.cw-shell .af-save span{font-size:10px;max-width:none;flex:1}.cw-shell .af-save .af-button{flex-shrink:0}.cw-shell .af-offers{grid-template-columns:1fr}.cw-shell .af-offer small{display:block}.cw-shell .af-checks{gap:18px}.cw-shell .af-checks label{white-space:normal}.cw-shell .af-receipts>div{flex-wrap:wrap}.cw-price-source{flex-wrap:wrap}.nw-context{flex-direction:column;align-items:flex-start;gap:6px}.nw-context>span{margin-left:0}.nw-legacy-hint{flex-direction:column;align-items:flex-start;font-size:11px}.cw-job-select{max-width:none}.nw-tool-grid{grid-template-columns:1fr}.nw-help,.cw-dialog{padding:22px;max-width:calc(100% - 24px)}.nw-help h2{font-size:24px}.cw-breadcrumb{margin-bottom:18px;gap:7px}.cw-shell .af-history{padding:14px 0}.cw-panel-heading>.af-button{margin-top:8px}.nw-help-items>div{gap:13px}.nw-orientation{padding:22px 4px}.nw-orientation p{font-size:12px}}
@media(max-width:440px){.main{padding-inline:16px}.ws-search-trigger{padding:4px 8px;font-size:10px;gap:6px}.ws-topbar{gap:10px}.nw-page-heading{margin-bottom:22px}.nw-page-heading p,.cw-library-heading p{font-size:12px}.nw-summary{gap:12px 20px;font-size:11px;padding:14px 0;margin-bottom:22px}.nw-summary>span strong{font-size:15px}.nw-summary>button{width:100%;font-size:11px}.nw-panel{padding:18px}.nw-inventory{min-width:0}.cw-inventory>button{grid-template-columns:115px 1fr 12px;gap:7px}.cw-library-heading .af-inline{gap:5px}.cw-shell .af-library-heading .af-button{padding:8px 10px}.cw-client>.cw-status{font-size:9px!important;white-space:nowrap}.cw-study-status>div{gap:8px}.cw-shell .cw-tabs .af-button{font-size:12px!important}.cw-path{gap:6px}.cw-path li{gap:5px}.cw-next p{font-size:12px}.cw-panel-heading .cw-muted{font-size:10px}.cw-result-count{padding-inline:18px}}
.cw-dialog{--af-line:var(--border);--af-ink:var(--text);--af-muted:var(--text-muted);--af-accent:var(--accent)}.cw-creation-recap{padding:14px 16px;border:1px solid var(--border);background:var(--surface-2);border-radius:7px;font-size:12px}.cw-creation-recap p{font-size:11px;color:var(--text-muted);margin:8px 0 0}.cw-dialog input:not([type=checkbox]),.cw-dialog textarea{background:var(--surface)}.cw-content{max-width:none}
@media(prefers-reduced-motion:reduce){.is-live{animation:none!important}}
/* Private client source library */
.cs-context{background:#f3f4ed;border:1px solid #dedfd4;border-radius:14px;padding:20px;margin:12px 0 24px}
.cs-context p{margin:8px 0 0;color:#62675e;line-height:1.55}
.cs-imports{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-bottom:32px}
.cs-imports form{display:flex;flex-direction:column;gap:14px;padding:24px;border:1px solid #e0e1d8;border-radius:16px;min-width:0;background:#fffefa}
.cs-imports h3,.cs-imports p{margin:0}.cs-imports p,.cs-imports small{color:#74796e;font-size:13px;line-height:1.5}
.cs-imports label:not(.cs-permission){display:flex;flex-direction:column;gap:9px;font-size:14px}
.cs-imports input[type=url]{width:100%;min-width:0;border:1px solid #d9dccf;border-radius:8px;background:#fff;padding:12px;font:inherit}
.cs-drop{border:1px dashed #a8ad9a;background:#f7f8f1;border-radius:10px;padding:18px;cursor:pointer}
.cs-drop input{width:100%;min-width:0;font-size:13px}.cs-drop input::file-selector-button{border:0;border-radius:6px;padding:8px;background:#e6e9dc;margin-right:8px}
.cs-imports label.cs-permission{display:flex;flex-direction:row;align-items:flex-start;gap:9px;font-size:12px;color:#74796e;line-height:1.5}.cs-permission input{flex:none;width:16px;height:16px;margin-top:2px}
.cs-imports button{align-self:flex-start;margin-top:auto}.cs-list-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:24px 0 12px}.cs-list-heading h3{margin:0}.cs-list-heading span{font-size:12px;color:#74796e}
.cs-source{display:flex;gap:16px;align-items:flex-start;border-top:1px solid #e3e5dc;padding:22px 0}.cs-source-icon{display:grid;place-items:center;width:42px;height:48px;flex:none;background:#f0f2e9;border-radius:8px;font-size:22px;color:#5d684a}
.cs-source-body{flex:1;min-width:0}.cs-source-body h3{font-size:16px;margin:0 0 6px;overflow-wrap:anywhere}.cs-source-body p{font-size:12px;color:#74796e;margin:0 0 6px}.cs-source-body small{color:#526540}.cs-source-body details{font-size:12px;margin-top:10px;color:#74796e}.cs-source-body li{margin-top:6px;line-height:1.5}.cs-source-body summary,.cs-archives summary{cursor:pointer}
.cs-source-actions{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end;max-width:280px}.cs-source-actions .af-button{font-size:12px;padding:8px 11px;min-height:36px}.cs-archives{border-top:1px solid #e3e5dc;padding:20px 0;color:#74796e}
.cs-excerpts section{border-top:1px solid #e3e5dc;padding:14px 0}.cs-excerpts strong{font-size:12px;color:#6d765e}.cs-excerpts p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.65;font-size:14px}.cs-hash{overflow-wrap:anywhere;font-size:11px}
@media(max-width:850px){.cs-imports{grid-template-columns:1fr}.cs-source{flex-wrap:wrap}.cs-source-actions{max-width:none;width:100%;justify-content:flex-start;padding-left:58px}.cs-list-heading{align-items:flex-start;flex-direction:column}.cs-imports form{padding:18px}}

/* The client brochure is the primary outcome; technical reports stay secondary. */
.cb-progress{display:flex;list-style:none;padding:0;margin:24px 0 34px;border-block:1px solid #dfe4df;gap:20px}.cb-progress li{flex:1;display:flex;align-items:center;gap:12px;font-size:13px;color:#6c756e;padding:20px 0}.cb-progress span{border-radius:50%;width:29px;height:29px;display:grid;place-items:center;background:#edf0ea;flex:none}.cb-progress .is-current{color:#20362d;font-weight:700}.cb-progress .is-current span{color:#fff;background:#20362d}
.cb-layout{display:grid;grid-template-columns:minmax(220px,0.7fr) minmax(0,1.6fr);gap:38px;align-items:start}.cb-cover{background:#f3f0e8;color:#20362d;border:1px solid #e2dfd5;border-radius:4px;padding:34px 28px;position:sticky;top:24px;min-width:0}.cb-cover>span{font-size:34px;font-weight:800;letter-spacing:-.06em;display:block;margin-bottom:48px}.cb-cover small{font-size:10px;letter-spacing:.14em;color:#a8492e;display:block}.cb-cover h3{font-size:clamp(25px,2.6vw,40px);line-height:1.1;margin:18px 0;overflow-wrap:anywhere;letter-spacing:-.04em}.cb-cover p{font-size:18px;line-height:1.5}.cb-cover ol{padding:24px 0 24px 18px;margin-top:30px;border-top:1px solid #d5d9cf;font-size:12px;line-height:2.4}
.cb-editor{min-width:0}.cb-editor h3{font-size:19px}.cb-editor p{font-size:13px;line-height:1.65;color:#6b756e}.cb-copy{border-bottom:1px solid #dfe4df;padding:0 0 25px;margin-bottom:24px}.cb-copy summary{font-size:18px;font-weight:650;cursor:pointer}.cb-fields{display:grid;grid-template-columns:1fr 1fr;gap:18px}.cb-editor label{display:flex;flex-direction:column;gap:8px;font-size:12px;font-weight:600;color:#43544b;margin:14px 0}.cb-editor input,.cb-editor textarea{width:100%;border:1px solid #d5ded7;background:#fff;border-radius:8px;color:#20362d;padding:12px;font:14px/1.6 inherit;box-sizing:border-box;min-width:0}.cb-editor textarea{font-family:inherit;font-size:13px;line-height:1.6;resize:vertical;min-height:104px}.cb-editor input:focus,.cb-editor textarea:focus{outline:2px solid #a8492e;outline-offset:2px}.cb-check{display:flex!important;flex-direction:row!important;align-items:flex-start;gap:10px!important;font-size:13px!important;line-height:1.6;margin:16px 0!important}.cb-check input{width:18px!important;height:18px;flex:none;margin-top:2px}.cb-export{border-top:1px solid #dfe4df;margin-top:22px;padding-top:22px;display:flex;gap:12px;flex-wrap:wrap}.cb-export p{flex-basis:100%;margin:2px 0}
@media(max-width:1050px){.cb-layout{grid-template-columns:1fr}.cb-cover{position:static;min-height:0;padding:24px}.cb-cover>span{margin-bottom:24px}.cb-cover ol{display:none}.cb-cover h3{font-size:30px}.cb-cover p{font-size:16px}.cb-progress{gap:12px}.cb-progress li{font-size:12px}}
@media(max-width:600px){.cb-fields{grid-template-columns:1fr;gap:0}.cb-progress{flex-direction:column;gap:0;padding:10px 0}.cb-progress li{padding:8px 0}.cb-export .af-button{width:100%}}
