:root{--ink:#233b34;--muted:#5f6a61;--field-line:#879285;--green:#234f42;--green-soft:#eaf0e9;--line:#e4e6de;--paper:#fbfbf7;--white:#fff;--accent:#d0a973;--red:#a34235;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--paper);font-size:14px}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,label.upload-button{touch-action:manipulation}button{cursor:pointer;border:0}button:disabled{cursor:not-allowed;opacity:.5}input,select,textarea{border:1px solid var(--field-line);border-radius:7px;background:white;color:var(--ink);padding:11px;min-width:0}input:focus,select:focus,textarea:focus,button:focus-visible,a:focus-visible{outline:2px solid var(--green);outline-offset:2px}textarea{resize:vertical;line-height:1.5}label{display:grid;gap:8px;font-weight:550}h1,h2,p{margin-top:0}h1{font-size:28px;letter-spacing:-1px;font-weight:550}h2{font-size:19px;font-weight:550;letter-spacing:-.4px}a{color:inherit;text-decoration:none}p{line-height:1.6}button{border-radius:7px;padding:10px 15px;font-weight:550}.primary{background:var(--green);color:white}.primary:hover{background:#173e32}.secondary{background:white;border:1px solid var(--line)}.quiet{background:transparent;color:var(--muted);padding:9px}.quiet:hover{background:var(--green-soft);color:var(--green)}.wide{width:100%}.small{font-size:12px;line-height:1.5}.muted{color:var(--muted)}.eyebrow{font-size:11px;font-weight:650;letter-spacing:1.5px;color:var(--muted);margin-bottom:12px}.brand{display:flex;align-items:center;gap:12px;font-size:17px;font-weight:600;white-space:nowrap}.brand-mark{font-size:26px;letter-spacing:-2px;font-weight:700;color:var(--green)}.brand-mark span{color:var(--accent)}.topbar{height:76px;display:flex;align-items:center;gap:36px;padding:0 28px;background:var(--white);border-bottom:1px solid var(--line)}.project-picker{display:flex;align-items:center;gap:6px;min-width:180px}.project-picker select{border:0;background:var(--paper);max-width:280px}.icon-button{background:var(--paper);font-size:20px;padding:5px 12px}.top-actions{margin-left:auto;display:flex;align-items:center;gap:16px;font-size:12px}.desk-layout{display:grid;grid-template-columns:310px minmax(0,1fr);min-height:calc(100vh - 76px)}.conversation{display:flex;flex-direction:column;border-right:1px solid var(--line);background:#f4f5ef}.conversation-title{padding:30px 24px 20px}.conversation-title h2{font-size:20px;line-height:1.35;margin-bottom:8px}.side-tabs{display:flex;margin:0 20px;border-bottom:1px solid var(--line);gap:20px}.side-tabs button{padding:10px 0;background:transparent;border-radius:0;color:var(--muted);font-size:12px}.side-tabs button.active{color:var(--green);border-bottom:2px solid var(--green)}.discussion-panel{display:flex;flex:1;flex-direction:column;min-height:420px}.comments{padding:18px 20px;max-height:55vh;overflow:auto;flex:1}.comment{padding:14px;background:white;border:1px solid var(--line);border-radius:9px;margin-bottom:12px}.comment-meta{display:flex;align-items:center;gap:8px;font-size:11px;margin-bottom:9px}.comment-meta time{margin-left:auto;color:var(--muted);font-size:11px}.comment-meta button{padding:3px 8px;font-size:11px}.comment p{font-size:12px;white-space:pre-wrap;margin-bottom:0;overflow-wrap:anywhere}.comment-tag{font-size:11px;color:var(--green);background:var(--green-soft);padding:4px 7px;border-radius:4px;display:inline-block;margin-bottom:8px}.composer{margin:0 18px 20px;border:1px solid #cbd5c9;border-radius:9px;background:white;overflow:hidden}.composer textarea{width:100%;border:0;background:transparent;padding:12px;min-height:90px}.composer>div{display:flex;align-items:center;gap:10px;padding:0 10px 10px}.composer .small{font-size:11px}.composer button{margin-left:auto;padding:8px 12px}.sidebar-foot{margin-top:auto;padding:16px 20px;font-size:11px;color:var(--muted);border-top:1px solid var(--line)}.status-dot{display:inline-block;width:6px;height:6px;background:#6c9970;border-radius:50%;margin-right:6px}.context{padding:10px 18px;font-size:12px;background:var(--green-soft);display:flex;align-items:center;gap:8px}.context button{margin-left:auto;padding:3px 8px}.artifact-pane{padding:32px 34px;min-width:0}.artifact-header{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:24px}.artifact-header h1{margin-bottom:14px}.artifact-meta{display:flex;gap:14px;align-items:center;font-size:11px;color:var(--muted)}.pill{background:var(--green-soft);color:var(--green);padding:5px 9px;border-radius:4px;font-weight:550}.artifact-actions{display:flex;gap:8px;align-items:center}.artifact-actions button{font-size:12px}.count{display:inline-flex;justify-content:center;align-items:center;border-radius:50%;background:var(--green-soft);font-size:11px;min-width:18px;height:18px;margin-left:5px}.artifact-toolbar{display:flex;align-items:center;gap:14px;border-bottom:1px solid var(--line);padding-bottom:14px}.view-toggle{display:flex;gap:3px;background:#eceee7;border-radius:7px;padding:3px}.view-toggle button{font-size:12px;padding:7px 13px;color:var(--muted);background:transparent}.view-toggle button.active{background:white;color:var(--ink);box-shadow:0 1px 3px #0000000b}.calendar-note{font-size:11px;color:var(--muted);margin-right:auto}.artifact-toolbar .quiet{font-size:11px}.table-scroll{overflow:auto;max-height:53vh;background:white}.programme-table{width:100%;border-collapse:collapse;font-size:12px;text-align:left;white-space:nowrap}.programme-table th{font-size:11px;font-weight:550;color:var(--muted);padding:16px 12px;background:#f6f7f1;position:sticky;top:0;z-index:1}.programme-table td{padding:15px 12px;border-bottom:1px solid #edf0e7}.programme-table th:first-child,.programme-table td:first-child{padding-left:18px;color:var(--muted);width:40px}.programme-table td:nth-child(2){min-width:230px;white-space:normal}.programme-table tbody tr:hover{background:#f6f8f2}.trade-tag{display:inline-block;border-radius:4px;padding:4px 7px;font-size:11px;background:#edf1e8;color:#5e7151}.trade-tag.electrical{background:#f5efdf;color:#907c49}.trade-tag.public-health{background:#e8eff5;color:#5d7585}.progress-cell{display:flex;align-items:center;gap:6px;font-size:11px}.progress-track{width:40px;height:4px;background:#e9ede5;border-radius:3px;overflow:hidden}.progress-fill{height:100%;background:#789c7e}.programme-table .row-comment{font-size:13px;padding:4px 8px;background:transparent;color:var(--muted)}.programme-table input{padding:7px 5px;font-size:11px;max-width:120px;border-radius:4px}.programme-table input.activity-title{max-width:none;width:100%;min-width:170px}.programme-table input[type=number]{width:60px}.programme-table input[type=date]{width:125px}.add-activity{padding:15px 18px;background:transparent;color:var(--green);font-size:12px}.empty-activities{text-align:center;padding:80px 20px;background:white}.empty-activities h2{font-size:17px}.empty-activities p{font-size:12px}.artifact-footer{padding:15px 0;display:flex;justify-content:space-between;gap:16px;font-size:11px;color:var(--muted)}.request-composer{margin-top:26px;padding:24px;border:1px solid var(--line);background:#f3f5ee;border-radius:10px;display:flex;gap:28px;align-items:center}.request-composer>div{flex:1}.request-composer h2{margin-bottom:7px}.request-composer p{margin-bottom:0}.request-composer .eyebrow{font-size:11px;margin-bottom:10px}.request-composer form{display:flex;gap:10px;align-items:stretch;flex:1.4}.request-composer textarea{width:100%;font-size:12px}.request-composer button{font-size:11px;min-width:100px}.draft-banner{margin:14px 0;padding:14px;background:#f9f1df;border:1px solid #e7d9b9;border-radius:8px;display:flex;align-items:center;gap:10px;font-size:12px}.draft-banner>div{margin-right:auto}.draft-banner span{display:block;font-size:11px;margin-top:4px}.sources-panel{padding:20px;flex:1}.source{display:flex;align-items:start;gap:8px;padding:12px 0;border-bottom:1px solid var(--line);font-size:12px}.source label{display:block;font-weight:400;overflow-wrap:anywhere}.source input{margin-top:3px}.source a{display:block;font-size:11px;margin-top:5px;color:var(--muted)}.upload-button{display:block;margin-top:18px;padding:12px;border:1px dashed #b7c8b4;border-radius:6px;font-size:12px;text-align:center;cursor:pointer;color:var(--green)}.drop-zone{border-radius:8px;transition:background-color .15s,outline-color .15s}.drop-zone.drag-over{background:var(--green-soft);outline:2px dashed var(--green);outline-offset:4px}.empty-project{padding:15vh 20px;text-align:center}.empty-icon{font-size:44px;color:#74947c;display:block;margin-bottom:30px}.empty-project h1{font-size:30px}.empty-project .muted{max-width:380px;margin:0 auto 24px}.empty-project .eyebrow{margin-bottom:14px}.gantt-panel{background:white;overflow:auto;max-height:55vh;min-height:220px}.gantt-grid{min-width:700px}.gantt-axis,.gantt-row{display:grid;grid-template-columns:220px minmax(480px,1fr)}.gantt-axis{position:sticky;top:0;z-index:1;background:#f6f7f1;font-size:11px;color:var(--muted)}.gantt-axis>div{padding:15px}.gantt-dates{display:flex;justify-content:space-between;border-left:1px solid var(--line)}.gantt-label{padding:16px;border-right:1px solid var(--line);font-size:11px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.gantt-row{border-bottom:1px solid #edf0e7}.gantt-lane{position:relative;background:repeating-linear-gradient(to right,transparent 0,transparent calc(14.285% - 1px),#eff1ea calc(14.285% - 1px),#eff1ea 14.285%)}.gantt-bar{padding:0;position:absolute;top:12px;height:22px;min-width:3px;border-radius:4px;background:#93b19a;color:#173e32;font-size:11px;text-align:center;overflow:hidden;line-height:22px}.gantt-bar.electrical{background:#d8c68f}.gantt-bar.public-health{background:#9ebccc}.gantt-bar:hover{filter:brightness(.92)}dialog{border:1px solid var(--line);padding:28px;border-radius:14px;box-shadow:0 20px 100px #142c2929;width:min(480px,calc(100vw - 32px));max-height:88vh;color:var(--ink)}dialog::backdrop{background:#203c3659;backdrop-filter:blur(2px)}dialog.large-dialog{width:min(960px,calc(100vw - 32px))}dialog#preview-dialog:modal{width:calc(100vw - 32px);height:calc(100vh - 32px);max-height:calc(100vh - 32px);display:flex;flex-direction:column}#preview-dialog .dialog-heading{flex-shrink:0}#preview-dialog #preview-content{flex:1;min-height:0;overflow:auto}#preview-dialog .table-scroll{max-height:none}dialog#requests-dialog:modal{width:calc(100vw - 32px);height:calc(100vh - 32px);max-height:calc(100vh - 32px);display:flex;flex-direction:column}#requests-dialog .dialog-heading{flex-shrink:0}#requests-dialog #requests{flex:1;min-height:0;overflow:auto}.dialog-heading{display:flex;align-items:start;justify-content:space-between;gap:15px;margin-bottom:24px}.dialog-heading h2{margin-bottom:0;font-size:23px}.dialog-heading .eyebrow{margin-bottom:8px}.close{background:transparent;font-size:25px;color:var(--muted);padding:0 5px}dialog form>label{margin-bottom:22px}dialog textarea{width:100%}.request-card{border:1px solid var(--line);padding:20px;border-radius:8px;margin-bottom:14px}.request-card h3{font-size:14px;margin:12px 0;white-space:pre-wrap;overflow-wrap:anywhere}.request-card p{font-size:12px;white-space:pre-wrap}.request-meta{display:flex;gap:12px;align-items:center;flex-wrap:wrap;font-size:11px;color:var(--muted)}.request-buttons{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px}.request-buttons button,.request-buttons a{font-size:11px}.state-badge{display:inline-block;font-size:11px;border-radius:4px;padding:5px 8px;background:var(--green-soft);color:var(--green);font-weight:550}.state-badge.submitted{background:#f4ecd8;color:#8a6b28}.state-badge.failed,.error-note{background:#f8ebe7;color:var(--red)}.state-badge.running,.state-badge.queued{background:#e7eef5;color:#4b6c8b}.review-notes{background:var(--paper);padding:12px;border-radius:6px;margin-top:12px}.review-notes p{margin-bottom:7px}.review-notes h4{font-size:12px;margin:14px 0 6px;color:var(--ink)}.review-notes h4:first-child{margin-top:0}.review-notes ul{margin:0 0 7px;padding-left:20px}.review-notes li{font-size:12px;line-height:1.6;margin-bottom:4px}.review-line-text{display:block;margin-bottom:5px}.line-reply{width:100%;font-size:12px;padding:6px 8px;margin-bottom:9px}.answer-questions{margin-top:14px}.answer-questions label{font-size:12px;font-weight:550;gap:6px}.answer-questions textarea{width:100%;font-size:12px}.answer-questions button{margin-top:8px}.user-form{display:grid;grid-template-columns:1fr 1fr 1.3fr auto;gap:10px;align-items:end}.user-form label{font-size:11px;margin-bottom:0}.user-form button{height:42px;font-size:12px}.team-project{display:flex;align-items:center;gap:14px;margin:24px 0 8px;font-size:12px}.team-project select{flex:1}.user-row{display:flex;align-items:center;gap:14px;border-bottom:1px solid var(--line);padding:16px 0}.user-details{flex:1}.user-details strong{display:block;font-size:13px}.user-details span{font-size:11px;color:var(--muted)}.user-row select{font-size:11px;padding:8px;max-width:155px}.user-row button{font-size:11px;padding:8px}.setup-link{border:1px solid #b9cbb5;background:var(--green-soft);border-radius:8px;padding:16px;margin:20px 0;font-size:12px}.setup-link>div{display:flex;gap:8px}.setup-link input{flex:1;font-size:11px}.history-row{display:flex;align-items:center;gap:16px;border-bottom:1px solid var(--line);padding:18px 0;font-size:12px}.history-row>div{flex:1}.history-row span{display:block;color:var(--muted);font-size:11px;margin-top:5px}
.calendar-row{border-bottom:1px solid var(--line);padding:14px 0}.calendar-row:last-child{border-bottom:0}.calendar-row p{margin:4px 0 0}#calendars-list{max-height:55vh;overflow:auto}.preview-note{padding:12px;background:var(--green-soft);font-size:12px;line-height:1.6}.signin{min-height:100vh;display:grid;grid-template-columns:1.1fr 1fr}.signin-story{padding:48px 60px;background:#e9eee4;display:flex;flex-direction:column;justify-content:space-between;min-height:100vh}.signin-story h1{font-family:Georgia,"Times New Roman",serif;font-size:clamp(42px,5vw,72px);font-weight:400;line-height:1.1;letter-spacing:-2px;margin:22px 0 30px}.story-copy{color:#6b7c6a;line-height:1.8}.story-foot{font-size:11px;color:#71826d;letter-spacing:1.5px;margin:0}.signin-form{align-self:center;max-width:380px;margin:60px auto;width:calc(100% - 64px)}.signin-form h2{font-size:32px;margin-bottom:12px}.signin-form form{margin:30px 0}.signin-form label{margin-bottom:20px;font-size:12px}.form-error{font-size:12px;color:var(--red);margin-top:14px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}#notice{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);max-width:min(650px,90vw);z-index:20;background:#203e35;color:white;padding:14px 22px;border-radius:9px;box-shadow:0 5px 25px #0002;font-size:12px}#notice.error{background:#903e31}[hidden]{display:none!important}@media(min-width:1500px){.desk-layout{grid-template-columns:340px minmax(0,1fr)}.artifact-pane{padding:40px 50px}}@media(max-width:1100px){.topbar{gap:20px;padding:0 20px}.desk-layout{grid-template-columns:270px minmax(0,1fr)}.artifact-pane{padding:26px 20px}.artifact-header{align-items:start;flex-direction:column}.request-composer{display:block}.request-composer form{margin-top:16px}.calendar-note{display:none}.artifact-toolbar{gap:6px}.artifact-footer{flex-direction:column;gap:5px}.user-form{grid-template-columns:1fr 1fr}.draft-banner{flex-wrap:wrap}}@media(max-width:760px){.topbar{height:auto;min-height:72px;flex-wrap:wrap;gap:10px;padding:14px 16px}.brand{font-size:15px}.project-picker{order:3;width:100%}.project-picker select{max-width:none;width:100%}.top-actions{gap:6px}.top-actions #user-name{display:none}.top-actions button,.top-actions a{font-size:11px}.desk-layout{display:flex;flex-direction:column}.artifact-pane{order:0;padding:24px 16px}.conversation{order:1;border-right:0;border-top:1px solid var(--line)}.conversation-title{padding:24px 20px 12px}.discussion-panel{min-height:250px}.comments{max-height:350px}.artifact-toolbar .quiet{padding:7px}.view-toggle{gap:1px}.view-toggle button{padding:7px 8px;font-size:11px}.request-composer{padding:18px;margin-top:16px}.request-composer form{display:block}.request-composer button{width:100%;margin-top:8px}.artifact-actions{width:100%}.artifact-actions button{flex:1}.programme-table td{padding:12px 9px}.signin{display:block}.signin-story{min-height:280px;padding:25px 30px}.signin-story h1{font-size:40px;margin:25px 0 15px}.story-copy{font-size:12px}.story-foot{display:none}.signin-form{margin:38px auto}.user-form{grid-template-columns:1fr}.user-row{flex-wrap:wrap}.user-details{min-width:160px}dialog{padding:20px}.setup-link>div{flex-direction:column}.empty-project{padding:50px 10px}}
:is(.artifact-toolbar){flex-wrap:wrap}.artifact-toolbar>.secondary{font-size:11px;padding:8px 10px}.source-details{flex:1;min-width:0}.source-status{font-size:11px;margin:6px 0;color:var(--muted);line-height:1.5}.source-status.ready{color:var(--green)}.source-status.running,.source-status.queued{color:#4b6c8b}.source-status.failed,.source-status.unsupported,.source-error{color:var(--red)}.source-warning{color:#866424;overflow-wrap:anywhere}.source-error,.source-warning{margin:7px 0}.source-actions{display:flex;align-items:center;flex-wrap:wrap;gap:5px;margin-top:7px}.source .source-actions a{margin:0}.source-actions button{font-size:11px;padding:6px 8px}.source-text{white-space:pre-wrap;overflow-wrap:anywhere;max-height:40vh;overflow:auto;background:#f5f6f0;border:1px solid var(--line);border-radius:7px;padding:16px;font:12px/1.6 ui-monospace,SFMono-Regular,Consolas,monospace}.source-text+h3{margin-top:22px}#source-preview-title{overflow-wrap:anywhere}#source-preview-content>h3{font-size:14px;margin-top:20px}#source-preview-content>.table-scroll{margin:14px 0;max-height:35vh}#source-preview-actions{position:sticky;bottom:-28px;margin:16px -1px -1px;padding:12px 0 0;background:white}#upload-status{overflow-wrap:anywhere}@media(max-width:760px){.artifact-toolbar{row-gap:10px}.artifact-toolbar>.view-toggle{margin-right:auto}#source-preview-actions{bottom:-20px;flex-wrap:wrap}}
.hierarchy-controls{display:flex;align-items:center;gap:6px;padding:8px 4px;flex-wrap:wrap}.hierarchy-controls>span{margin-right:auto}.hierarchy-controls button{font-size:11px;padding:6px 8px}.summary-row{background:#edf2e9}.programme-table tbody tr.summary-row:hover{background:#e6eddf}.summary-row td{border-bottom-color:#dae3d4}.hierarchy-title{padding-left:calc(var(--depth,0)*18px);min-width:0}.hierarchy-line{display:flex;align-items:center;gap:6px;min-height:24px}.hierarchy-name{overflow-wrap:anywhere}.tree-toggle,.tree-spacer{flex:0 0 22px;width:22px;text-align:center}.tree-toggle{padding:2px;border:1px solid #c5d4bf;background:white;border-radius:4px;line-height:19px;color:var(--green);font-size:13px}.tree-toggle:hover{background:var(--green-soft)}.tree-spacer{font-size:13px;color:var(--muted)}.hierarchy-location{display:block;margin:3px 0 0 28px;color:var(--muted);font-size:11px;line-height:1.5;font-weight:400;overflow-wrap:anywhere}.gantt-axis,.gantt-row{grid-template-columns:280px minmax(480px,1fr)}.gantt-label{white-space:normal;padding:12px;min-height:48px}.gantt-bar{top:50%;transform:translateY(-50%)}.gantt-bar.summary-bar{background:var(--green);color:white;border-radius:0;height:16px;line-height:16px;border-left:3px solid #173e32;border-right:3px solid #173e32}.gantt-undated{position:absolute;top:50%;left:12px;transform:translateY(-50%);font-size:11px;color:var(--muted)}.programme-preview>.table-scroll{max-height:45vh}.programme-table .summary-row td:nth-child(3){font-size:11px;color:var(--green)}

.programme-paging{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:10px 0}.programme-paging input{flex:1;min-width:170px;max-width:400px;font-size:12px;padding:8px}.programme-paging button{font-size:11px;padding:7px 9px}.programme-paging>span{margin-left:auto}.composer>p{padding:0 12px;margin:0 0 10px;font-size:11px}.composer .composer-actions{justify-content:flex-end;flex-wrap:wrap}.composer .composer-actions button{margin-left:0}.conversation-request .state-badge{margin-bottom:9px}.conversation-request>.quiet{font-size:11px;padding:7px 0;margin-top:8px}.danger{background:var(--red);color:white}.danger:hover{background:#89372d}.programme-preview>.programme-paging{position:sticky;top:-28px;background:white;z-index:2}@media(max-width:760px){.programme-paging input{max-width:none;width:100%}.programme-paging>span{margin-left:0;margin-right:auto}.programme-preview>.programme-paging{top:-20px}}

/* Keep the main programme dense; source and revision previews keep their layout. */
.completion-controls{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.programme-paging .completion-filter{display:inline-flex;align-items:center;gap:6px;font-size:11px;font-weight:400;white-space:nowrap;cursor:pointer;min-height:28px}
.programme-paging .completion-filter input{flex:none;width:15px;height:15px;min-width:0;max-width:none;margin:0;padding:0;accent-color:var(--green)}
#completed-status{font-size:11px}
.programme-filter-empty{padding:16px;background:var(--green-soft);border:1px solid var(--line);border-radius:7px;flex-shrink:0}
.programme-filter-empty p{margin:0 0 8px;font-size:12px}
.programme-filter-empty button{font-size:11px;padding:7px 10px}
#table-panel .table-scroll{max-height:72vh;max-height:72dvh}
#gantt-panel{max-height:72vh;max-height:72dvh}
#table-panel .programme-table{table-layout:fixed;min-width:880px}
#table-panel .programme-table th{padding:9px 6px}
#table-panel .programme-table td{padding:2px 6px;height:29px;overflow:hidden;text-overflow:ellipsis}
#table-panel .programme-table :is(th,td):first-child{width:56px;padding-left:10px}
#table-panel .programme-table :is(th,td):nth-child(2){min-width:0}






:is(#table-panel,#gantt) .hierarchy-title{display:flex;align-items:center;gap:8px;padding-left:calc(var(--depth,0)*14px)}
:is(#table-panel,#gantt) .hierarchy-line{flex:1;min-width:0;min-height:24px}
:is(#table-panel,#gantt) .hierarchy-name{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
:is(#table-panel,#gantt) .hierarchy-location{flex:0 1 14ch;max-width:14ch;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:11px}
:is(#table-panel,#gantt) .tree-toggle{flex-basis:24px;width:24px;min-height:24px}
#table-panel .row-comment{width:24px;min-height:24px;padding:0}
#table-panel .trade-tag{max-width:100%;overflow:hidden;text-overflow:ellipsis;vertical-align:middle;padding:3px 5px}
#table-panel .programme-table input{padding:4px;font-size:12px;width:100%;max-width:100%}
#table-panel .programme-table input.activity-title{min-width:0}
#table-panel.editing .programme-table{min-width:1120px}
#table-panel.editing .programme-table :is(th,td):nth-child(3){width:130px}
#table-panel.editing .programme-table :is(th,td):nth-child(4){width:120px}
#table-panel.editing .programme-table :is(th,td):nth-child(5){width:144px}
#table-panel.editing .programme-table :is(th,td):nth-child(6){width:84px}
.summary-open{padding:0;border-radius:3px;background:transparent;color:inherit;font:inherit;text-align:left;line-height:22px}
.summary-open:hover{text-decoration:underline;text-underline-offset:3px;color:var(--green)}
.summary-focus{margin-top:8px;padding:10px 12px;border:1px solid #cad7c5;border-radius:7px;background:#f2f5ed;min-height:0}
.summary-focus-heading{display:flex;align-items:start;justify-content:space-between;gap:12px}
.summary-focus-heading>div:first-child{min-width:0}
#summary-focus-title{margin:0;font-size:15px;overflow-wrap:anywhere}
#summary-focus-location{margin:4px 0 0;font-size:11px;overflow-wrap:anywhere}
.summary-focus-actions{display:flex;gap:6px;flex-shrink:0}
.summary-focus-actions button{max-width:240px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:11px;padding:6px 8px}
.summary-focus details>summary{cursor:pointer;font-size:11px;margin-top:8px;width:max-content}
#summary-focus-details{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px 12px;margin:10px 0 6px}
#summary-focus-details dt{font-size:11px;color:var(--muted)}
#summary-focus-details dd{margin:3px 0 0;font-size:12px;font-weight:600}
#summary-focus-note{font-size:11px;line-height:1.4;margin:0}
.programme-expanded .summary-focus{flex:0 1 auto;max-height:36vh;max-height:36dvh;overflow:auto}
@media(max-width:1100px){#summary-focus-details{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){
  .summary-focus-heading{flex-direction:column;gap:8px}
  .summary-focus-actions{flex-wrap:wrap;max-width:100%}
  .summary-focus-actions button{max-width:100%}
  #summary-focus-details{grid-template-columns:repeat(2,minmax(0,1fr))}
}
#gantt .gantt-axis,#gantt .gantt-row{grid-template-columns:minmax(280px,35%) minmax(480px,1fr)}
#gantt .gantt-label{padding:2px 8px;min-height:29px}
#gantt .hierarchy-title{padding-left:calc(var(--depth,0)*10px)}
#gantt .gantt-axis>div{padding:9px 8px}
@media(min-width:761px){
  .artifact-pane{padding-top:24px}
  .artifact-header{margin-bottom:14px;gap:12px}
  .artifact-header .eyebrow{margin-bottom:6px}
  .artifact-header h1{font-size:24px;display:inline-block;margin:0 12px 0 0;vertical-align:middle}
  .artifact-meta{display:inline-flex;flex-wrap:wrap;vertical-align:middle;gap:10px}
  .artifact-toolbar{padding-bottom:10px;gap:8px}
  .hierarchy-controls{padding:5px 2px}
}
/* Expansion uses the existing workspace, preserving edits, filters and tree state. */
body.programme-expanded{overflow:hidden}
.programme-expanded .topbar,.programme-expanded .conversation{display:none}
.programme-expanded .desk-layout{display:block;min-height:0;height:100vh;height:100dvh}
.programme-expanded .artifact-pane{height:100%;padding:12px}
.programme-expanded #artifact-workspace{display:flex;flex-direction:column;height:100%;min-height:0}
.programme-expanded :is(.artifact-header,.artifact-toolbar,.hierarchy-controls,.programme-paging,.draft-banner){flex-shrink:0}
.programme-expanded .artifact-header{margin-bottom:8px;gap:8px;flex-direction:row;align-items:center}
.programme-expanded .artifact-header .eyebrow{display:none}
.programme-expanded .artifact-header h1{font-size:20px;margin:0 10px 0 0;display:inline-block}
.programme-expanded .artifact-meta{display:inline-flex;font-size:11px}
.programme-expanded .artifact-toolbar{padding-bottom:7px}
.programme-expanded .programme-paging{padding:7px 0}
.programme-expanded .artifact-footer,.programme-expanded .request-composer{display:none}
.programme-expanded #table-panel{display:flex;flex-direction:column;flex:1;min-height:0}
.programme-expanded #table-panel .table-scroll{flex:1;min-height:0;max-height:none}
.programme-expanded #gantt-panel{flex:1;min-height:0;max-height:none}
.programme-expanded .add-activity{flex-shrink:0;align-self:flex-start;padding:8px 12px}
.programme-expanded #programme-controls{flex-shrink:0;min-height:0}
#artifact-workspace[data-view="dashboard"] #programme-filter-empty{display:none}
.files-heading{font-size:12px;margin:22px 0 4px;color:var(--ink)}
.hierarchy-controls .outline-level-label{display:inline-flex;align-items:center;gap:7px;font-size:11px;font-weight:400}
.outline-level-label select{font-size:11px;padding:6px 24px 6px 8px;max-width:155px}
#outline-scope{font-size:11px;margin-right:0}
.sources-panel .upload-button{margin:12px 0}
.sources-panel>#write-file-request{font-size:11px;margin:2px 0 14px;width:100%}
.composer .selected-files{font-size:11px;text-align:left;padding:0 12px 10px;overflow-wrap:anywhere;white-space:normal;width:100%}
#dashboard-panel{min-width:0;padding-top:22px}
.dashboard-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:14px}
.dashboard-header h2{font-size:20px;margin:0 0 6px;overflow-wrap:anywhere}
.dashboard-header p{margin:0;font-size:11px;color:var(--muted);line-height:1.6}
.dashboard-downloads{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.dashboard-downloads button{font-size:11px;padding:9px 11px}
.dashboard-toolbar{display:flex;align-items:end;gap:12px;flex-wrap:wrap;padding:14px;background:#f2f5ed;border:1px solid var(--line);border-radius:8px;margin-bottom:12px}
.dashboard-control{font-size:11px;min-width:120px;flex:1;max-width:260px}
.dashboard-control :is(input,select){font-size:12px;padding:8px;width:100%;min-width:0;margin-top:5px}
.dashboard-scope{font-size:11px;color:var(--muted);margin:0 0 16px;line-height:1.6;overflow-wrap:anywhere}
.dashboard-note,.dashboard-status{font-size:11px;color:var(--muted);line-height:1.6;overflow-wrap:anywhere}
.dashboard-status{margin:10px 0}
.dashboard-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:16px 0}
.dashboard-metric{margin:0;background:white;border:1px solid var(--line);border-radius:9px;padding:16px;min-width:0}
.dashboard-metric :is(h3,dt){font-size:11px;color:var(--muted);font-weight:500;margin:0 0 9px;line-height:1.4}
.dashboard-metric :is(dd,strong,.dashboard-metric-value){display:block;font-size:28px;line-height:1.2;font-weight:600;margin:0;color:var(--ink)}
.dashboard-metric p{font-size:11px;color:var(--muted);margin:8px 0 0;line-height:1.5}
.dashboard-completion{display:flex;height:16px;border-radius:4px;overflow:hidden;background:#edf0e8;margin:0 0 8px}
.dashboard-completion>span{height:100%;min-width:0}
.dashboard-completion-completed{background:#426e59}.dashboard-completion-in-progress{background:#c2ac68}.dashboard-completion-not-started{background:#dfe6d8}
.dashboard-sections{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.dashboard-section{background:white;border:1px solid var(--line);border-radius:8px;min-width:0;padding:16px}
.dashboard-section h3{font-size:14px;margin:0 0 8px}
.dashboard-section>p{font-size:11px;line-height:1.6;color:var(--muted)}
.dashboard-table-wrap{overflow:auto;max-width:100%;max-height:360px}
.dashboard-section table{width:100%;border-collapse:collapse;text-align:left;font-size:11px}
.dashboard-section th{font-size:11px;color:var(--muted);font-weight:500;background:#f6f7f1;position:sticky;top:0}
.dashboard-section :is(th,td){padding:9px 8px;border-bottom:1px solid #edf0e7;vertical-align:top}
.dashboard-section :is(th,td):first-child{padding-left:0;min-width:100px;overflow-wrap:anywhere;max-width:250px}
.dashboard-section :is(th,td):not(:first-child){white-space:nowrap}
.dashboard-activity-context{display:block;font-size:11px;color:var(--muted);margin-top:4px;overflow-wrap:anywhere}
.dashboard-pagination{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:10px;font-size:11px;color:var(--muted)}
.dashboard-pagination>span{margin-right:auto}
.dashboard-pagination button{font-size:11px;padding:6px 8px}
.dashboard-empty{padding:35px 20px;text-align:center;background:#f3f5ee;border:1px solid var(--line);border-radius:9px}
.dashboard-empty h3{font-size:18px;margin:0 0 10px}
.dashboard-empty p{font-size:12px;line-height:1.7;color:var(--muted)}
.dashboard-empty button{font-size:12px}
.programme-expanded #dashboard-panel{flex:1;min-height:0;overflow:auto;padding:12px 6px 8px 0}
@media(max-width:1100px){.dashboard-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-sections{grid-template-columns:1fr}}
@media(max-width:760px){
  #table-panel .programme-table td{padding-top:7px;padding-bottom:7px;height:43px}
  :is(#table-panel,#gantt) .tree-toggle,#table-panel .row-comment{min-height:30px;min-width:30px}
  #gantt .gantt-label{min-height:43px;padding-top:6px;padding-bottom:6px}
  .programme-expanded .artifact-header{flex-wrap:wrap}
  .programme-expanded .artifact-meta{margin-top:5px}
  .programme-expanded .artifact-header h1{font-size:18px}
  .programme-expanded .artifact-pane{padding:8px}
  .programme-expanded .artifact-toolbar{gap:5px}
  .dashboard-header{gap:12px}
  .dashboard-downloads{width:100%}
  .dashboard-downloads button{flex:1}
  .dashboard-toolbar{gap:10px}
  .dashboard-control{max-width:none;min-width:0;flex:1 1 calc(50% - 10px)}
  .dashboard-metrics{gap:8px}
  .dashboard-metric{padding:12px}
  .dashboard-metric :is(dd,strong,.dashboard-metric-value){font-size:25px}
  .dashboard-section{padding:12px}
  .dashboard-section :is(th,td){padding:8px 6px}
  .dashboard-section :is(th,td):first-child{max-width:150px}
  .dashboard-control input[type=date]{min-height:36px}
}

/* Touch screens: 16px fields stop iOS zooming the page on focus. */
@media (pointer:coarse){input,select,textarea{font-size:16px}}
@media (pointer:coarse){:is(.view-toggle,.artifact-toolbar,.side-tabs,.top-actions,.request-buttons,.source-actions,.dashboard-pagination) :is(button,a,select){min-height:44px}}
/* Phones: the conversation stacks below the whole artifact; give it a way in from the top bar. */
#jump-discussion{display:none}@media(max-width:760px){#jump-discussion{display:inline-flex;align-items:center}.top-actions{flex-wrap:wrap;justify-content:flex-end}}
.top-actions a.quiet{border-radius:7px;font-weight:550}
/* Baseline comparison */
/* Three more columns: scroll sideways inside the panel rather than squeezing activity names. */
#table-panel:not(.no-baseline) .programme-table{min-width:1200px}


#table-panel .programme-table th:last-child{width:40px}
.programme-table .baseline-col{white-space:nowrap;font-variant-numeric:tabular-nums;min-width:11ch}
.artifact-actions button{white-space:nowrap}
.slip.late{color:var(--red);font-weight:600}.slip.early{color:var(--green)}.slip.new{color:var(--muted)}
.gantt-lane .gantt-baseline{position:absolute;bottom:3px;height:5px;min-width:3px;border-radius:2px;background:#5f6a61;opacity:.75;pointer-events:none}
.source label .state-badge{margin-left:8px}
.codes-shown{border:1px solid var(--line);border-radius:8px;padding:12px 14px;margin:0 0 8px;max-height:240px;overflow:auto}
.codes-shown legend{font-weight:550;padding:0 4px}.codes-shown label{display:flex;gap:8px;align-items:center;font-weight:400;font-size:12px;padding:5px 0}
.programme-table td.code-col{overflow:hidden;text-overflow:ellipsis}
/* Reports tab */
#reports-panel{min-width:0}
.reports-header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}
.reports-header h1{margin-bottom:0}
#reports-toolbar{margin-bottom:6px}
#reports-toolbar+.small{margin-bottom:16px}
#reports-subtabs{margin-bottom:22px;flex-wrap:wrap}
.reports-section{margin-bottom:28px}
.lookahead-layout{display:flex;gap:16px;align-items:flex-start}
.lookahead-layout .report-table-scroll{flex:1;min-width:0}
.lookahead-layout .gantt-panel{flex:1;min-width:0}
@media(max-width:1100px){.lookahead-layout{flex-direction:column}}
@media print{
  .topbar,.conversation,.artifact-toolbar,.request-composer,.artifact-footer,#notice,
  .artifact-actions,#reports-toolbar,#reports-subtabs,.reports-header button{display:none!important}
  .desk-layout{display:block}
  .artifact-pane{padding:0}
  .gantt-panel,.report-table-scroll,.scurve-chart{max-height:none;overflow:visible}
  .lookahead-layout{flex-direction:column}
}
.report-metrics{grid-template-columns:repeat(auto-fill,minmax(180px,1fr))}
.report-metric-value.good{color:var(--green)}
.report-metric-value.watch{color:#8a6b28}
.report-metric-value.high{color:var(--red)}
.reports-subsection{margin-bottom:20px}
.reports-subsection h3{font-size:14px;margin-bottom:10px}
.report-table{width:100%;border-collapse:collapse;text-align:left;font-size:12px;max-width:600px}
.report-table th{font-size:11px;color:var(--muted);font-weight:500;background:#f6f7f1;padding:8px 10px}
.report-table td{padding:8px 10px;border-bottom:1px solid #edf0e7}
.branch-link{background:transparent;border:0;padding:0;margin:0;font:inherit;color:inherit;text-align:left;text-decoration:underline;text-decoration-color:transparent;cursor:pointer}
.branch-link:hover,.branch-link:focus-visible{text-decoration-color:currentColor}
.branch-link[aria-pressed=true]{color:var(--green);font-weight:600;text-decoration-color:currentColor}
.gantt-label .branch-link{color:var(--muted);font-size:11px}
.gantt-label .branch-link[aria-pressed=true]{color:var(--green)}
.lookahead-weeks{display:flex;align-items:center;gap:8px;font-weight:400;font-size:12px;margin-bottom:14px}
.lookahead-weeks input{width:60px}
.report-table-scroll{overflow:auto;max-height:55vh;background:white}
.report-table-scroll .report-table th{position:sticky;top:0}
.scurve-chart{width:100%;height:auto;max-width:900px;background:white;border:1px solid var(--line);border-radius:8px}
.scurve-grid{stroke:var(--line);stroke-width:1}
.scurve-axis{font-size:10px;fill:var(--muted)}
.scurve-today{stroke:var(--accent);stroke-width:1.5;stroke-dasharray:3 3}
.scurve-line{fill:none;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}
.scurve-baseline{stroke:var(--muted);stroke-dasharray:6 4}
.scurve-actual{stroke:var(--green)}
.scurve-legend{display:flex;gap:18px;margin:10px 0;font-size:12px}
.scurve-key{display:flex;align-items:center;gap:6px}
.scurve-key::before{content:"";width:18px;height:0;border-top:2.5px solid currentColor}
.scurve-key.scurve-baseline{color:var(--muted)}
.scurve-key.scurve-baseline::before{border-top-style:dashed}
.scurve-key.scurve-actual{color:var(--green)}
.weekly-bars{display:flex;align-items:flex-end;gap:6px;height:160px;overflow-x:auto;padding-top:18px}
.weekly-bars-col{display:flex;flex-direction:column;align-items:center;flex:1 0 42px;min-width:42px;height:100%}
.weekly-bars-pct{font-size:10px;color:var(--muted);height:14px;white-space:nowrap}
.weekly-bars-pair{display:flex;align-items:flex-end;gap:2px;flex:1;width:100%;justify-content:center}
.weekly-bar{width:12px;min-height:1px;border-radius:2px 2px 0 0}
.weekly-bar-planned{background:var(--muted)}
.weekly-bar-actual{background:var(--green)}
.weekly-bars-label{font-size:9px;color:var(--muted);margin-top:4px;white-space:nowrap}
.weekly-bars-legend-key{display:flex;align-items:center;gap:6px}
.weekly-bars-legend-key::before{content:"";width:12px;height:12px;border-radius:2px;background:currentColor}
.weekly-bars-legend-key.planned{color:var(--muted)}
.weekly-bars-legend-key.actual{color:var(--green)}
/* Resizable Programme-table columns: JS now owns widths (defaults + any saved override). */
.programme-table th{position:relative}
.col-resizer{position:absolute;top:0;right:0;width:8px;height:100%;cursor:col-resize;touch-action:none;z-index:2}
.col-resizer:hover,.col-resizer.resizing{background:var(--green-soft)}
.col-resizer::after{content:"";position:absolute;top:0;bottom:0;right:0;width:1px;background:var(--line)}
/* D4.2 locked grid: one row = sticky sheet cell (clipped at the divider) + its chart lane. */
#table-panel{--sheet-w:640px}
#table-panel .grid-wrap{position:relative}
#table-panel .programme-table{display:block;width:max-content;min-width:100%;table-layout:auto;border-collapse:separate;border-spacing:0}
#table-panel .programme-table :is(thead,tbody){display:block}
#table-panel .programme-table tr{display:flex;background:white}
#table-panel .programme-table tr.summary-row{background:#edf2e9}
#table-panel .programme-table tbody tr:hover{background:#f6f8f2}
#table-panel .programme-table tbody tr.summary-row:hover{background:#e6eddf}
#table-panel .programme-table :is(th,td){padding:0;height:auto;border-bottom:1px solid #edf0e7}
#table-panel .programme-table :is(th,td).s{flex:0 0 var(--sheet-w);width:var(--sheet-w);display:grid;grid-template-columns:var(--cols);overflow:hidden;position:sticky;left:0;z-index:2;background:inherit;border-right:1px solid #d3d7cc}
/* The whole header row sticks (cells cannot leave their own row); the sheet half also sticks left. */
#table-panel .programme-table thead{position:sticky;top:0;z-index:5}
#table-panel .programme-table thead th{position:relative;top:auto;background:#f6f7f1}
#table-panel .programme-table thead th.s{position:sticky;left:0;z-index:6}
#table-panel .s>div{display:flex;align-items:center;min-width:0;padding:1px 6px;height:28px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;border-right:1px solid #f0f2ea}
#table-panel .s>div.num{padding-left:10px;color:var(--muted)}
#table-panel .s>div.activity{display:block;padding-top:2px}
#table-panel thead .s>div.hcell{position:relative;height:var(--head-h,40px);align-items:flex-end;padding:0 6px 6px;font-size:11px;font-weight:550;color:var(--muted)}
#table-panel .hcell>span{overflow:hidden;text-overflow:ellipsis}
#table-panel .col-resizer{position:absolute;top:0;right:-3px;bottom:0;width:7px;cursor:col-resize;z-index:1;touch-action:none}
#table-panel .col-resizer:hover,#table-panel .col-resizer.resizing{background:var(--green);opacity:.35}
#table-panel .programme-table :is(th,td).c-head,#table-panel td.lane{flex:0 0 var(--chart-w);width:var(--chart-w);position:relative}
#table-panel .programme-table.no-chart :is(.c-head,.lane){display:none}
#table-panel td.lane{min-height:28px}
#table-panel td.lane{background-image:var(--lane-bg,none);background-size:var(--lane-bg-size,auto)}
#table-panel .tier{position:absolute;left:0;right:0;top:0;height:20px}
#table-panel .tier.t2{border-top:1px solid var(--line)}
#table-panel .tier>div{position:absolute;top:0;height:20px;padding:3px 4px 0;border-left:1px solid var(--line);font-size:11px;font-weight:400;color:var(--muted);white-space:nowrap;overflow:hidden;font-variant-numeric:tabular-nums}
#table-panel .tier:not(.t2)>div{font-weight:600;color:var(--ink)}
#table-panel .tier>div.weekend{background:#f1f2ec}
#table-panel .gantt-bar{position:absolute;top:50%;transform:translateY(-50%);height:14px;line-height:14px;min-width:3px;padding:0;border-radius:3px;font-size:10px;z-index:1}
#table-panel .gantt-bar.summary-bar{height:8px;line-height:8px;font-size:0;border-radius:0}
#table-panel .gantt-baseline{position:absolute;bottom:3px;height:4px;border-radius:2px;background:#a3aa9f;opacity:.85}
#table-panel .gantt-undated{position:absolute;top:50%;left:8px;transform:translateY(-50%);font-size:11px;color:var(--muted)}
#table-panel .grid-splitter{position:absolute;top:0;bottom:0;left:var(--sheet-w);width:10px;margin-left:-5px;cursor:col-resize;z-index:6;touch-action:none}
#table-panel .grid-splitter::before{content:"";position:absolute;left:4px;top:0;bottom:0;width:2px;background:transparent;transition:background .15s}
#table-panel .grid-splitter:is(:hover,.dragging,:focus-visible)::before{background:var(--green)}
#table-panel .no-chart~.grid-splitter,#table-panel .grid-wrap:has(.no-chart) .grid-splitter{display:none}
.zoom-toggle{display:inline-flex;border:1px solid var(--line);border-radius:7px;overflow:hidden}
.zoom-toggle button{border-radius:0;padding:5px 10px;font-size:11px;background:white;color:var(--muted)}
.zoom-toggle button[aria-pressed="true"]{background:var(--green);color:white}
/* D4.2b layout C: Navigator left, programme centre, conversation + Activity on the right. */
.navigator details{border-bottom:1px solid var(--line)}
.navigator summary{cursor:pointer;list-style:none;padding:12px 14px;font-size:11px;font-weight:650;letter-spacing:.6px;text-transform:uppercase;color:var(--muted);position:sticky;top:0;background:#f4f5ef;z-index:1}
.navigator summary::-webkit-details-marker{display:none}
.navigator summary::before{content:"▸";display:inline-block;width:14px;transition:transform .15s ease-out}
.navigator details[open]>summary::before{transform:rotate(90deg)}
.nav-body{padding:0 8px 10px}
.nav-item{display:flex;align-items:center;gap:8px;width:100%;text-align:left;background:transparent;color:var(--ink);font-weight:400;font-size:12px;padding:5px 6px;border-radius:5px;min-width:0}
.nav-item:hover{background:#e9ede4}
.nav-item.active,.nav-tree-line.active>.nav-item{background:#dfe9e0;font-weight:600}
.nav-label{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.nav-count{color:var(--muted);font-size:11px;font-variant-numeric:tabular-nums}
.nav-tree-line{display:flex;align-items:center;gap:2px;padding-left:calc(var(--depth,0)*12px)}
.nav-toggle-branch{flex:0 0 20px;width:20px;height:20px;padding:0;background:transparent;color:var(--muted);font-size:11px;border-radius:4px}
.nav-toggle-branch:hover{background:#dde5da;color:var(--ink)}
.nav-toggle-branch.spacer{display:inline-block}
.nav-meter{flex:0 0 40px;height:5px;border-radius:3px;background:#e1e5dc;overflow:hidden}
.nav-meter i{display:block;height:100%;background:var(--green)}
.nav-static{display:grid;gap:2px;padding:6px}
.code-slicers{display:flex;flex-wrap:nowrap;gap:6px;align-items:center;padding:4px 0;overflow-x:auto;scrollbar-width:thin}
.code-slicers>*{flex:0 0 auto}
.code-slicers select{font-size:11px;padding:5px 8px;max-width:220px}
.code-chip{display:inline-flex;align-items:center;gap:6px;font-size:11px;font-weight:550;padding:4px 9px;border:1px solid #cfd6c8;border-radius:14px;background:white;color:var(--ink)}
.code-chip:hover{border-color:var(--green)}
.code-chip[aria-pressed="true"]{background:var(--green);border-color:var(--green);color:white}
.chip-count{opacity:.7;font-variant-numeric:tabular-nums}
.chip-more{font-size:11px;padding:4px 8px}
#table-panel .programme-table tbody tr.inspected{background:#dfe9e0}
#table-panel tbody tr{cursor:default}
.activity-panel{padding:16px 18px;overflow:auto;flex:1;font-size:12px}
.activity-panel h3{font-size:15px;margin:2px 0 8px;line-height:1.35;overflow-wrap:anywhere}
.activity-panel h4{font-size:12px;margin:16px 0 6px}
.activity-path{margin:0;overflow-wrap:anywhere}
.activity-badges{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:8px}
.badge{font-size:11px;font-weight:600;padding:3px 7px;border-radius:4px;background:var(--green-soft);color:var(--green)}
.badge.critical,.badge.late{background:#f8ebe7;color:var(--red)}
.activity-facts{display:grid;grid-template-columns:auto 1fr;gap:5px 12px;margin:8px 0 0}
.activity-facts dt{color:var(--muted)}
.activity-facts dd{margin:0;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.activity-list{margin:0;padding-left:18px}
.activity-list li{margin-bottom:4px;line-height:1.5}
.link-button{background:transparent;padding:0;color:var(--green);font-weight:550;font-size:12px;text-align:left}
.link-button:hover{text-decoration:underline}
.activity-note{white-space:pre-wrap;overflow-wrap:anywhere;background:var(--paper);padding:8px;border-radius:6px}
.activity-empty{margin-top:20px}
.activity-panel>.secondary{margin-top:10px;font-size:12px}
.context-menu{position:fixed;z-index:1000;min-width:220px;max-width:min(320px,calc(100vw - 8px));background:white;border:1px solid #d3d7cc;border-radius:8px;box-shadow:0 12px 32px #142c2933;padding:4px}
.menu-item{display:block;width:100%;text-align:left;background:transparent;color:var(--ink);font-weight:400;font-size:12px;padding:7px 10px;border-radius:5px}
.menu-item:hover:not(:disabled),.menu-item:focus-visible{background:var(--green-soft);color:var(--green);outline:none}
.menu-item:disabled{color:#a2a89e}
.menu-separator{height:1px;background:var(--line);margin:4px 2px}
.panel-toggles{display:inline-flex;border:1px solid var(--line);border-radius:7px;overflow:hidden}
.panel-toggles button{border-radius:0;padding:5px 9px;font-size:11px;background:white;color:var(--muted)}
.panel-toggles button[aria-pressed="true"]{background:var(--green-soft);color:var(--green)}
.panel-toggles button+button{border-left:1px solid var(--line)}
#table-panel .programme-table{position:relative}
#table-panel .programme-table :is(th,td).c-head{height:var(--head-h,40px)}
#table-panel .tier{border-top:1px solid var(--line)}
#table-panel .tier:first-child{border-top:0}
#table-panel .chart-lines{position:absolute;top:0;bottom:0;left:var(--sheet-w);width:var(--chart-w);pointer-events:none;z-index:0}
#table-panel .chart-lines>i{position:absolute;top:0;bottom:0;width:1px;background:#dfe3d9}
#table-panel .chart-lines>i.year{background:#c9a3a0;width:2px}
#table-panel .chart-lines>i.today{background:#a34235;width:2px;opacity:.6}
#table-panel .programme-table.no-chart .chart-lines{display:none}
.scale-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:14px;margin:14px 0 20px}
.scale-options fieldset{border:1px solid var(--line);border-radius:8px;padding:10px 14px;display:grid;gap:8px}
.scale-options legend{font-size:12px;font-weight:600;padding:0 4px}
.scale-options label.check{display:flex;align-items:center;gap:8px;font-weight:400;font-size:12px}
.activity-codes{margin:4px 0 0}
.activity-codes dt{color:var(--muted);font-size:11px;margin-top:8px;overflow-wrap:anywhere}
.activity-codes dd{margin:2px 0 0;overflow-wrap:anywhere}
.activity-facts{grid-template-columns:minmax(80px,40%) minmax(0,1fr)}
.activity-facts dt{overflow-wrap:anywhere}
.top-actions .panel-toggles{margin-right:6px}
@media(max-width:760px){.top-actions .panel-toggles{display:none}}

/* Layout C, revised (owner, 15 Oct): ribbon (title + toolbar) across the top; the tree sits
   beside the grid, level with its header, resizable and scrollable; conversation on the right. */
.desk-layout{grid-template-columns:minmax(0,1fr) 310px}
.desk-layout .artifact-pane{order:0}
.desk-layout .conversation{order:1;border-right:0;border-left:1px solid var(--line)}
@media(min-width:1500px){.desk-layout{grid-template-columns:minmax(0,1fr) 340px}}
@media(max-width:1100px){.desk-layout{grid-template-columns:minmax(0,1fr) 270px}}
.desk-layout.conv-hidden{grid-template-columns:minmax(0,1fr)}
.desk-layout.conv-hidden .conversation{display:none}
.programme-body{display:flex;align-items:stretch;min-width:0;--nav-w:260px}
.programme-body>#table-panel{flex:1;min-width:0}
.navigator{flex:0 0 var(--nav-w);width:var(--nav-w);background:#f4f5ef;border:1px solid var(--line);border-right:0;border-radius:8px 0 0 8px;overflow:auto;max-height:calc(72vh + 2px);max-height:calc(72dvh + 2px);font-size:12px}
.navigator .nav-body{width:max-content;min-width:100%}
.navigator .nav-label{overflow:visible;text-overflow:clip}
.navigator summary{cursor:pointer;list-style:none;padding:12px 14px;font-size:11px;font-weight:650;letter-spacing:.6px;text-transform:uppercase;color:var(--muted);position:sticky;top:0;left:0;background:#f4f5ef;z-index:1}
.navigator summary::-webkit-details-marker{display:none}
.navigator summary::before{content:"▸";display:inline-block;width:14px;transition:transform .15s ease-out}
.navigator details[open]>summary::before{transform:rotate(90deg)}
.navigator details{border-bottom:1px solid var(--line)}
.nav-splitter{flex:0 0 8px;cursor:col-resize;touch-action:none;background:linear-gradient(to right,transparent 3px,var(--line) 3px 5px,transparent 5px)}
.nav-splitter:is(:hover,.dragging,:focus-visible){background:linear-gradient(to right,transparent 3px,var(--green) 3px 5px,transparent 5px);outline:none}
.programme-body.nav-hidden :is(.navigator,.nav-splitter){display:none}
@media(max-width:1439px){.programme-body:not(.nav-open) :is(.navigator,.nav-splitter){display:none}}
@media(max-width:760px){.programme-body{flex-direction:column}.navigator{flex-basis:auto;width:auto;max-height:40vh;border-radius:8px;border-right:1px solid var(--line)}.nav-splitter{display:none}}
.programme-expanded .programme-body{flex:1;min-height:0}
.programme-expanded .navigator{max-height:none}.programme-body:has(>.navigator[hidden]) .nav-splitter{display:none}
/* Clearly separated Navigator sections (owner, 15 Oct). */
.navigator details{border-bottom:0;margin:6px;background:white;border:1px solid var(--line);border-radius:7px;overflow:hidden}
.navigator summary{display:flex;align-items:center;gap:7px;background:#e9efe7;color:var(--green);border-bottom:1px solid transparent}
.navigator details[open]>summary{border-bottom-color:var(--line)}
.navigator summary::before{order:2;margin-left:auto;color:var(--muted)}
.nav-icon{flex:none}
.navigator .nav-body{padding:6px}
/* Clearly visible buttons with icons (owner, 15 Oct); icons are CSS masks so labels stay plain text. */
#artifact-workspace :is(.artifact-toolbar,.hierarchy-controls,.programme-paging) .quiet{background:white;border:1px solid #d3d7cc;color:var(--ink);padding:6px 10px;border-radius:6px;display:inline-flex;align-items:center;gap:6px}
#artifact-workspace :is(.artifact-toolbar,.hierarchy-controls,.programme-paging) .quiet:hover:not(:disabled){border-color:var(--green);background:var(--green-soft);color:var(--green)}
#delete-project-button{color:var(--red)!important}
#delete-project-button:hover{border-color:var(--red)!important;background:#f8ebe7!important}
.artifact-toolbar .secondary{display:inline-flex;align-items:center;gap:6px}
#export{text-decoration:none}
#expand-programme::before{content:"";width:14px;height:14px;flex:none;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2018%2018%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%207V3h4M15%207V3h-4M3%2011v4h4M15%2011v4h-4%22/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2018%2018%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%207V3h4M15%207V3h-4M3%2011v4h4M15%2011v4h-4%22/%3E%3C/svg%3E") center/contain no-repeat}
#load-programme::before{content:"";width:14px;height:14px;flex:none;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2018%2018%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M9%2012V3M5.5%206.5%209%203l3.5%203.5M3%2013v2h12v-2%22/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2018%2018%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M9%2012V3M5.5%206.5%209%203l3.5%203.5M3%2013v2h12v-2%22/%3E%3C/svg%3E") center/contain no-repeat}
#load-baseline::before{content:"";width:14px;height:14px;flex:none;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2018%2018%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M9%2012V3M5.5%206.5%209%203l3.5%203.5%22/%3E%3Cpath%20d%3D%22M3%2015h12%22%20stroke-dasharray%3D%222%202%22/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2018%2018%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M9%2012V3M5.5%206.5%209%203l3.5%203.5%22/%3E%3Cpath%20d%3D%22M3%2015h12%22%20stroke-dasharray%3D%222%202%22/%3E%3C/svg%3E") center/contain no-repeat}
#codes-button::before{content:"";width:14px;height:14px;flex:none;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2018%2018%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M2.5%209.2V3.5a1%201%200%200%201%201-1h5.7l6.3%206.3-6.7%206.7z%22/%3E%3Ccircle%20cx%3D%226%22%20cy%3D%226%22%20r%3D%221.2%22/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2018%2018%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M2.5%209.2V3.5a1%201%200%200%201%201-1h5.7l6.3%206.3-6.7%206.7z%22/%3E%3Ccircle%20cx%3D%226%22%20cy%3D%226%22%20r%3D%221.2%22/%3E%3C/svg%3E") center/contain no-repeat}
#calendars-button::before{content:"";width:14px;height:14px;flex:none;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2018%2018%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%222.5%22%20y%3D%223.5%22%20width%3D%2213%22%20height%3D%2212%22%20rx%3D%221.6%22/%3E%3Cpath%20d%3D%22M2.5%207.5h13M6%202v3M12%202v3%22/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2018%2018%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%222.5%22%20y%3D%223.5%22%20width%3D%2213%22%20height%3D%2212%22%20rx%3D%221.6%22/%3E%3Cpath%20d%3D%22M2.5%207.5h13M6%202v3M12%202v3%22/%3E%3C/svg%3E") center/contain no-repeat}
#export::before{content:"";width:14px;height:14px;flex:none;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2018%2018%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M9%203v9M5.5%208.5%209%2012l3.5-3.5M3%2013v2h12v-2%22/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2018%2018%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M9%203v9M5.5%208.5%209%2012l3.5-3.5M3%2013v2h12v-2%22/%3E%3C/svg%3E") center/contain no-repeat}
#history-button::before{content:"";width:14px;height:14px;flex:none;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2018%2018%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%229%22%20cy%3D%229%22%20r%3D%226.5%22/%3E%3Cpath%20d%3D%22M9%205.5V9l2.5%201.5%22/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2018%2018%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%229%22%20cy%3D%229%22%20r%3D%226.5%22/%3E%3Cpath%20d%3D%22M9%205.5V9l2.5%201.5%22/%3E%3C/svg%3E") center/contain no-repeat}
#delete-project-button::before{content:"";width:14px;height:14px;flex:none;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2018%2018%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%205h12M7%205V3h4v2M5%205l1%2010h6l1-10%22/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2018%2018%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%205h12M7%205V3h4v2M5%205l1%2010h6l1-10%22/%3E%3C/svg%3E") center/contain no-repeat}
#expand-all::before{content:"";width:14px;height:14px;flex:none;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2018%2018%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%222.5%22%20y%3D%222.5%22%20width%3D%2213%22%20height%3D%2213%22%20rx%3D%222%22/%3E%3Cpath%20d%3D%22M9%206v6M6%209h6%22/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2018%2018%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%222.5%22%20y%3D%222.5%22%20width%3D%2213%22%20height%3D%2213%22%20rx%3D%222%22/%3E%3Cpath%20d%3D%22M9%206v6M6%209h6%22/%3E%3C/svg%3E") center/contain no-repeat}
#collapse-all::before{content:"";width:14px;height:14px;flex:none;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2018%2018%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%222.5%22%20y%3D%222.5%22%20width%3D%2213%22%20height%3D%2213%22%20rx%3D%222%22/%3E%3Cpath%20d%3D%22M6%209h6%22/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2018%2018%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%222.5%22%20y%3D%222.5%22%20width%3D%2213%22%20height%3D%2213%22%20rx%3D%222%22/%3E%3Cpath%20d%3D%22M6%209h6%22/%3E%3C/svg%3E") center/contain no-repeat}
#scroll-today::before{content:"";width:14px;height:14px;flex:none;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2018%2018%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%229%22%20cy%3D%229%22%20r%3D%226.5%22/%3E%3Ccircle%20cx%3D%229%22%20cy%3D%229%22%20r%3D%222%22/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2018%2018%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%229%22%20cy%3D%229%22%20r%3D%226.5%22/%3E%3Ccircle%20cx%3D%229%22%20cy%3D%229%22%20r%3D%222%22/%3E%3C/svg%3E") center/contain no-repeat}
