.site-programme{--programme-green:#087560;display:grid;gap:20px;min-width:0}.programme-top,.programme-row-top{display:flex;justify-content:space-between;align-items:center;gap:14px}.programme-top h2{margin:8px 0;font-size:25px}.programme-top p,.programme-stage p{font-size:13px;color:var(--muted);line-height:1.6}.programme-picker{max-width:420px}.programme-summary{display:flex;justify-content:space-between;gap:24px;background:linear-gradient(120deg,#e7f5ee,#f6fbf8);padding:28px;border:1px solid #bfded1;border-radius:18px}.programme-summary h3{font-size:clamp(22px,3vw,34px);margin:10px 0;color:#076b55}.programme-summary p{font-size:13px;line-height:1.7;margin:5px 0}.programme-late{background:linear-gradient(120deg,#fff2e8,#fffaf5);border-color:#edd5bf}.programme-late h3{color:#925122}.programme-summary-count{display:grid;align-content:center;gap:8px;min-width:120px;text-align:right}.programme-summary-count strong{font-size:27px}.programme-summary-count span{font-size:12px;color:var(--muted)}.programme-import{display:grid;gap:14px}.programme-import p{font-size:13px;line-height:1.6;margin:7px 0}.programme-upload{position:relative;overflow:hidden;cursor:pointer;display:inline-flex;align-items:center}.programme-upload input{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%;height:100%}.programme-upload:focus-within{outline:2px solid var(--programme-green);outline-offset:3px}.programme-draft{display:flex;gap:16px;align-items:center;flex-wrap:wrap;padding-top:16px;border-top:1px solid var(--line);font-size:13px}.programme-tabs{display:flex;gap:8px;flex-wrap:wrap}.programme-tabs [aria-pressed=true]{background:#087560;color:white;border-color:#087560}.programme-attention summary{cursor:pointer;font-weight:700}.programme-attention li{font-size:13px;line-height:1.8}.programme-job{margin-bottom:16px}.programme-job>summary{display:flex;gap:16px;justify-content:space-between;align-items:center;cursor:pointer;list-style:none}.programme-job>summary strong{font-size:18px}.programme-job>summary small{display:block;font-size:12px;color:var(--muted);margin-top:7px}.programme-position{font-size:12px;color:#087560;font-weight:700;text-align:right}.programme-stage-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:18px}.programme-stage{border:1px solid var(--line);border-left:3px solid #149580;border-radius:12px;background:#fbfdfc;padding:18px;min-width:0;overflow-wrap:anywhere}.programme-stage strong{font-size:14px;line-height:1.5}.programme-stage .site-status{font-size:10px;flex-shrink:0}.programme-dates{display:grid;gap:10px;font-size:12px;margin:16px 0}.programme-dates div{display:grid;grid-template-columns:125px minmax(0,1fr);gap:10px}.programme-dates dt{color:var(--muted)}.programme-dates dd{margin:0;line-height:1.5}.programme-stage details{font-size:12px;line-height:1.7}.programme-stage .form-actions{gap:8px}.programme-stage .button{font-size:12px}.programme-assumptions{line-height:1.8}.programme-dialog{max-width:760px;width:calc(100% - 32px)}.programme-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.programme-form>.hint,.programme-form>fieldset,.programme-form>.programme-check{grid-column:1/-1}.programme-form textarea,.programme-form select[multiple]{min-height:105px}.programme-week{border:1px solid var(--line);border-radius:12px;display:flex;gap:15px;flex-wrap:wrap;padding:16px;font-size:13px}.programme-week label{display:flex;gap:7px;align-items:center}.programme-check{display:flex;gap:12px;align-items:flex-start;font-size:13px;line-height:1.7;margin:20px 0}.programme-check input{width:18px;height:18px;flex-shrink:0;margin:3px 0}.programme-review{max-width:1220px}.programme-review-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.85fr);gap:24px;align-items:start}.programme-review-row{border:1px solid var(--line);border-radius:14px;padding:18px;margin-bottom:14px;display:grid;gap:12px;min-width:0}.programme-review-row blockquote{font-size:12px;line-height:1.7;padding:10px;margin:0;background:#f0f5f4;border-radius:8px;overflow-wrap:anywhere}.programme-review-row .review-flag{font-size:12px;margin:0}.programme-source{position:sticky;top:0;display:grid;gap:14px;padding:18px;border-radius:14px;background:#f2f6f5;min-width:0}.programme-source pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:58vh;overflow:auto;font:12px/1.8 monospace;margin:0}.programme-note{font-size:13px;line-height:1.7;padding:14px;border-radius:10px;background:#edf5f1}.programme-review-grid>.programme-source select{width:100%}.programme-source h3{font-size:16px}.programme-dialog .error{color:#a32929;font-size:13px}.programme-dialog select,.programme-dialog input,.programme-dialog textarea{max-width:100%;box-sizing:border-box}
@media(max-width:950px){.programme-stage-grid{grid-template-columns:1fr}.programme-review-grid{grid-template-columns:1fr}.programme-source{position:static}.programme-source pre{max-height:260px}}
@media(max-width:600px){.programme-top{align-items:flex-start;flex-direction:column}.programme-summary{padding:20px;gap:18px;flex-direction:column}.programme-summary-count{text-align:left;display:flex;align-items:baseline;min-width:0}.programme-form{grid-template-columns:1fr}.programme-job>summary{align-items:flex-start;flex-direction:column}.programme-position{text-align:left}.programme-dates div{grid-template-columns:1fr;gap:4px}.programme-dialog{padding:18px;width:calc(100% - 20px)}.programme-row-top{align-items:flex-start}.programme-review-row{padding:14px}.programme-week{gap:12px}.programme-review-grid{gap:16px}.programme-top .form-actions{margin:0}.programme-source{padding:14px}.programme-dialog .form-grid{grid-template-columns:1fr}}
.programme-recovery-button{justify-self:start}.programme-stage-tools{display:grid;gap:12px;margin-top:14px;font-size:12px}.programme-stage-tools summary,.programme-change summary{cursor:pointer;font-weight:600}.programme-stage-tools ul,.programme-change li{line-height:1.8}.programme-quantity{padding:12px;background:#edf5f1;border-radius:10px}.programme-quantity p{margin:5px 0}.programme-change{font-size:13px;line-height:1.8}.programme-change>summary{font-size:14px}.programme-preparation-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:20px 0 28px}.programme-preparation-grid>section{padding:16px;background:#f5f8f7;border-radius:12px;min-width:0}.programme-preparation-grid h3{font-size:15px;margin-bottom:12px}.programme-preparation-row{display:flex;align-items:flex-start;gap:12px;width:100%;text-align:left;padding:12px 0;background:transparent;border:0;border-bottom:1px solid #dce8e2;color:var(--ink);text-decoration:none;overflow-wrap:anywhere}.programme-preparation-row strong{display:block;font-size:13px;line-height:1.6}.programme-preparation-row small{display:block;font-size:11px;color:var(--muted);line-height:1.6}.programme-prep-type{font-size:10px;text-transform:uppercase;color:#087560;font-weight:700;padding-top:4px}.programme-preparation-editor{display:grid;grid-template-columns:1fr 1fr;gap:12px;border:1px solid var(--line);border-radius:12px;padding:14px;margin-bottom:14px}.programme-form>[data-preparation-editor],.programme-form>.programme-quick-more,.programme-form>[data-block-fields],.programme-form>[data-review-fields],.programme-form>.programme-estimate{grid-column:1/-1}.programme-quick-more{font-size:13px;line-height:1.7;padding:12px;border:1px solid var(--line);border-radius:10px}.programme-quick-more[open]{display:grid;gap:14px}.programme-quick-more input[type=number]{max-width:180px}.programme-form>[hidden]{display:none}.programme-estimate{background:#eef6f1;padding:16px;border-radius:12px;font-size:13px;line-height:1.8}.programme-scenario-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;border:1px solid var(--line);padding:16px;border-radius:12px;margin:16px 0}.programme-scenario-row>details{grid-column:1/-1;font-size:13px}.programme-scenario-row select[multiple]{width:100%;min-height:100px}.programme-recovery>[data-preview-scenario]{display:block;margin-top:20px}.programme-preview-comparison{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:20px}.programme-preview-comparison>div{background:#eef6f1;border-radius:12px;padding:16px;display:grid;gap:8px}.programme-preview-comparison span{font-size:12px;color:var(--muted)}.programme-preview-comparison strong{font-size:22px}.programme-recovery [data-scenario-result]{font-size:13px;line-height:1.8}.programme-stage .form-actions{flex-wrap:wrap}
@media(max-width:600px){.programme-preparation-grid,.programme-preparation-editor,.programme-scenario-row{grid-template-columns:1fr}.programme-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.programme-tabs .button{padding:10px 8px;font-size:12px}.programme-preview-comparison{gap:8px}.programme-preview-comparison>div{padding:12px}.programme-preview-comparison strong{font-size:18px}}

.programme-scope-bar{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}.programme-scope-bar .programme-tabs{margin:0}.programme-scope-intro,.programme-form>[data-scope-rows],.programme-form>[data-scope-status],.programme-form>.programme-check{grid-column:1/-1}.programme-scope-row{border:1px solid var(--line);border-radius:12px;padding:16px;margin-bottom:12px;min-width:0}.programme-scope-row .scope-choice{display:flex;align-items:center;gap:12px;margin:0}.scope-choice span{flex:1;overflow-wrap:anywhere}.scope-choice small{color:var(--muted);font-size:11px}.programme-scope-row details{margin-top:12px;font-size:13px}.programme-scope-row details[open]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.programme-scope-row summary,.programme-scope-row details>.hint{grid-column:1/-1}.programme-scope-row select[multiple]{width:100%;min-height:100px}.programme-external{background:#f5f7f6;border-left:3px solid #9aada5}.programme-scope-dialog .programme-check{align-items:flex-start}.programme-scope-dialog select{width:100%}.programme-scope-dialog [data-scope-rows]{min-width:0}.programme-scope-dialog input[type=checkbox]{flex-shrink:0}
@media(max-width:600px){.programme-scope-bar{align-items:stretch;flex-direction:column}.programme-scope-row{padding:12px}.programme-scope-row details[open]{grid-template-columns:1fr}.scope-choice{flex-wrap:wrap}.scope-choice small{width:100%;padding-left:28px}.programme-scope-dialog .programme-form{min-width:0}}

.programme-scope-dialog input[type=checkbox]{accent-color:#087560}

.programme-involvement{border:1px solid var(--line);padding:14px;border-radius:12px}.programme-involvement[open]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.programme-involvement>summary,.programme-involvement>.hint,.programme-involvement>.programme-check{grid-column:1/-1}.programme-agreement{font-size:13px;line-height:1.7}.programme-agreement .panel-header h3{margin:0}.programme-agreement .panel-header p{margin:6px 0 0}.programme-allowances{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:14px}.programme-allowances article{padding:14px;border-radius:10px;background:#eef5f1;overflow-wrap:anywhere}.programme-allowances p{margin:4px 0}.programme-allowance-editor{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:14px;margin:14px 0;border:1px solid var(--line);border-radius:12px}.programme-allowance-editor label:first-child{grid-column:1/-1}.programme-agreement-warnings{margin-top:14px}.programme-agreement-warnings summary{font-weight:600}.programme-prior{background:#f2f5f3}.programme-engagement-dialog input[type=checkbox]{accent-color:#087560}
@media(max-width:600px){.programme-involvement[open],.programme-allowances,.programme-allowance-editor{grid-template-columns:1fr}.programme-agreement .panel-header{align-items:flex-start;flex-direction:column}}
.programme-stage-reading{margin:14px 0;padding:14px;border:1px solid var(--line);border-radius:12px;background:#f4f8f5}.programme-stage-reading>summary{cursor:pointer;font-size:13px;font-weight:600}.programme-source-stage{display:grid;gap:6px;padding:14px 0;border-bottom:1px solid var(--line);min-width:0;overflow-wrap:anywhere}.programme-source-stage:last-child{border-bottom:0}.programme-source-stage strong{font-size:13px}.programme-source-stage .form-grid{margin-top:8px}
.programme-review-toolbar{display:flex;gap:16px;justify-content:space-between;align-items:end;margin-bottom:18px}.programme-review-toolbar>span{font-size:13px;color:var(--muted);padding-bottom:12px}.programme-review-toolbar .field{max-width:280px;flex:1}.programme-reading-notes{padding:14px 18px;border:1px solid var(--line);border-radius:12px;margin:0 0 20px;font-size:13px;line-height:1.7}.programme-reading-notes summary,.programme-start-date summary,.programme-raw-source summary{cursor:pointer;font-weight:600}.programme-reading-notes h4{margin-top:14px}.programme-reading-files{display:grid;gap:10px;margin:20px 0}.programme-reading-files article{padding:14px;border:1px solid var(--line);border-radius:12px;display:grid;gap:6px}.programme-reading-files span{font-size:13px;color:var(--muted)}.programme-review-gate{max-width:660px}.programme-start-date{font-size:12px;margin:12px 0;color:var(--muted)}.programme-start-date[open]{padding:12px;border:1px solid var(--line);border-radius:10px}.programme-start-date .field{margin-top:12px}.programme-source iframe{width:100%;height:65vh;border:1px solid var(--line);border-radius:12px;margin-top:12px;background:#f4f6f5}.programme-source [data-source-link]{display:grid;gap:10px}.programme-raw-source{margin-top:18px;font-size:12px;color:var(--muted)}.programme-review-row[hidden]{display:none}.programme-review-row>.form-grid{margin:14px 0}.programme-review .button{background:#087560;border-color:#087560}.programme-review .button.secondary{background:transparent;color:#087560;border-color:#cde1d6}.programme-review input[type=checkbox]{accent-color:#087560}
@media(max-width:600px){.programme-review-toolbar{flex-direction:column;align-items:stretch;gap:8px}.programme-review-toolbar .field{max-width:none}.programme-review-toolbar>span{padding:0}.programme-review-row .programme-row-top strong{font-size:14px}.programme-source iframe{height:55vh}}
.programme-lifecycle-nav{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 18px}.programme-actions{position:relative;font-size:13px;align-self:center}.programme-actions>summary{cursor:pointer;padding:10px 14px;border:1px solid var(--line);border-radius:10px;white-space:nowrap}.programme-actions>div{position:absolute;z-index:6;right:0;min-width:210px;padding:10px;display:grid;gap:6px;background:white;border:1px solid var(--line);border-radius:12px;box-shadow:0 12px 30px #173d2620}.programme-actions button{text-align:left}.programme-delete-action{color:#a02c2c}.programme-archived-note{background:#eef3f0}.programme-delete-warning{padding:14px;background:#fff0ed;border-radius:10px;color:#8b2924}.programme-delete-dialog .button[type=submit]{background:#a32d28;border-color:#a32d28}.programme-delete-dialog ul{padding-left:22px;line-height:1.8}.programme-delete-pending{border-color:#e0b2a9}.programme-delete-dialog [data-delete-progress]{font-size:13px;line-height:1.7}
@media(max-width:600px){.programme-actions{align-self:flex-start}.programme-actions>div{left:0;right:auto}.programme-lifecycle-nav .button{flex:1}.programme-delete-dialog .form-actions .button{width:100%}}
/* Guided company work review. */
.scope-wizard-dialog{width:min(900px,calc(100vw - 24px));max-width:900px}.scope-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin-bottom:16px}.scope-steps button{display:flex;align-items:center;justify-content:center;gap:7px;border:1px solid #dce7e1;border-radius:12px;padding:10px 6px;background:#f5f8f6;color:#526359;font:inherit}.scope-steps button[aria-current]{background:#e6f3eb;border-color:#379264;color:#17643d;font-weight:700}.scope-steps b{display:grid;place-items:center;flex-shrink:0;width:24px;height:24px;border-radius:50%;background:#fff}.scope-steps button:disabled{opacity:.55}.scope-selection{padding:14px 16px;border-radius:14px;background:#f2f7f4;margin-bottom:20px}.scope-selection p{margin:6px 0 0;max-height:62px;overflow:auto}.scope-picker-actions,.scope-navigation{display:flex;gap:12px;flex-wrap:wrap;align-items:center;margin:12px 0}.scope-navigation{justify-content:space-between;border-top:1px solid #e1e9e4;padding-top:16px}.scope-plot-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:16px 0;max-height:400px;overflow:auto;padding:2px}.scope-plot-choice{display:flex;align-items:center;gap:12px;padding:14px;border:1px solid #dce7e1;border-radius:12px;cursor:pointer}.scope-plot-choice:has(input:checked){background:#edf8f1;border-color:#3b966a}.scope-plot-choice input{width:18px;height:18px;flex-shrink:0}.scope-plot-choice span{min-width:0;overflow-wrap:anywhere}.scope-plot-choice small{display:block;color:#607369;margin-top:3px}.scope-range{display:flex;gap:12px;align-items:end;flex-wrap:wrap;margin-top:12px}.scope-range .field{flex:1;min-width:100px}.scope-presets,.scope-plot-dates{padding:14px;background:#f5f8f6;border-radius:12px;margin:16px 0}.scope-presets summary,.scope-plot-dates summary{cursor:pointer;font-weight:600}.scope-predecessors{border:1px solid #dce7e1;border-radius:10px;padding:10px;margin:12px 0;max-height:210px;overflow:auto}.scope-predecessors legend{font-size:13px;color:#53685c}.scope-predecessors .programme-check{margin:7px 0}.scope-review-plot{border:1px solid #dce7e1;border-radius:14px;padding:16px;margin:12px 0}.scope-review-plot h4{margin:0 0 8px}.scope-review-plot details{margin:12px 0}.scope-review-stage{padding:10px 0;border-bottom:1px solid #e2ebe6}.scope-review-stage p{margin:4px 0;font-size:13px}.scope-warning{color:#895c13;background:#fff7e6;padding:10px;border-radius:8px;font-size:13px}.scope-wizard-dialog input,.scope-wizard-dialog select,.scope-wizard-dialog textarea{max-width:100%;box-sizing:border-box}.scope-wizard-dialog [data-scope-panel]{min-width:0}.scope-wizard-dialog .programme-scope-row{margin:10px 0}.scope-wizard-dialog .programme-scope-row h4{margin:0 0 7px}.scope-wizard-dialog .form-actions{position:sticky;bottom:-1px;background:white;padding:12px 0;margin-top:0}.scope-wizard-dialog [data-job-facts]{padding:14px 0}.scope-wizard-dialog [data-job-facts] h4{margin-top:0}
@media(max-width:600px){.scope-steps button{flex-direction:column;gap:4px;font-size:11px;padding:8px 2px}.scope-steps b{width:22px;height:22px}.scope-plot-list{grid-template-columns:1fr}.scope-wizard-dialog{padding:14px}.scope-review-plot{padding:12px}.scope-steps{gap:4px}.scope-wizard-dialog .scope-navigation .button{flex:1}.scope-selection{padding:12px}.scope-wizard-dialog .programme-check{align-items:flex-start}}

.scope-wizard-dialog .programme-form{display:block}.scope-wizard-dialog [data-scope-panel]>.field{margin:14px 0}.scope-wizard-dialog [type=submit][hidden]{display:none}

.scope-wizard-dialog .form-actions{display:flex;gap:12px;justify-content:space-between;z-index:2;border-top:1px solid #e1e9e4}.scope-wizard-dialog .scope-navigation{border:0;padding:0;margin:0;flex:1}.scope-wizard-dialog .scope-navigation [data-scope-next]{margin-left:auto}
.scope-plot-item{min-width:0;border:1px solid #dce7e1;border-radius:12px;overflow:hidden}.scope-plot-item>.scope-plot-choice{border:0;border-radius:0}.scope-plot-item>.field{padding:0 12px 12px;margin:0;font-size:12px}.scope-plot-item .field select{width:100%}.scope-group-editor{display:grid;gap:10px;margin:14px 0}.scope-group-editor>div{padding:10px;border:1px solid #dce7e1;border-radius:10px}.scope-group-editor input{width:100%}.scope-estimate-group{padding:16px;border:1px solid #dce7e1;border-radius:14px;margin:18px 0}.scope-estimate-group h4{margin:0;font-size:17px}.scope-estimate-group h4 small{display:inline-block;margin-left:8px;font-size:12px;font-weight:400;color:#526359}.scope-estimate-heading,.scope-estimate-line{display:grid;grid-template-columns:minmax(0,1fr) 155px;gap:16px;align-items:center;padding:14px 0;border-bottom:1px solid #e1e9e4}.scope-estimate-heading{font-size:12px;color:#53685c;padding-top:6px}.scope-estimate-line:last-child{border-bottom:0}.scope-estimate-line strong{font-size:14px}.scope-estimate-line small{display:block;color:#53685c;font-size:12px;margin-top:6px;line-height:1.6}.scope-estimate-line input{width:100%;min-width:0}.scope-plot-exceptions{margin:18px 0;border:1px solid #dce7e1;border-radius:12px;padding:14px}.scope-plot-exceptions>summary{font-weight:600;cursor:pointer}.scope-plot-exceptions[open]>summary{margin-bottom:14px}.scope-history-plots{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));max-height:200px;overflow:auto;margin:12px 0}.scope-history-plots .programme-check{margin:5px 0}.scope-review-groups{background:#f2f7f4;padding:8px 14px;border-radius:12px;font-size:14px}.scope-wizard-dialog [data-work-groups]>.scope-presets .field{margin:12px 0}
@media(max-width:600px){.scope-estimate-heading,.scope-estimate-line{grid-template-columns:minmax(0,1fr) 90px;gap:10px}.scope-estimate-group{padding:12px}.scope-estimate-heading{font-size:11px}.scope-history-plots{grid-template-columns:1fr}.scope-estimate-line strong{font-size:13px}.scope-estimate-group h4{font-size:15px}}

.scope-estimate-line input{padding:11px 12px;min-height:44px;border:1px solid #c4d6cd;border-radius:10px;background:#fff;color:inherit;font:inherit}.scope-estimate-line input:focus{outline:2px solid #43896a;outline-offset:2px}.scope-estimate-line input:disabled{background:#f1f5f3;color:#627168}.scope-milestone-heading{grid-column:1/-1;margin:14px 0 0;font-size:14px}
.scope-group-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:14px 0}.scope-group-cards article{padding:12px;background:#f2f7f4;border:1px solid #dce7e1;border-radius:12px;min-width:0;overflow-wrap:anywhere}.scope-group-cards strong{font-size:14px}.scope-group-cards p{max-height:75px;overflow:auto}.scope-draft-banner{display:flex;gap:10px;align-items:center;justify-content:space-between;flex-wrap:wrap;padding:10px 12px;margin-bottom:14px;border:1px solid #dce7e1;border-radius:12px;font-size:12px;color:#496454;background:#f6faf7}.scope-draft-banner>[data-draft-message]{flex-basis:100%}.scope-draft-banner>[data-draft-message]:empty{display:none}.scope-draft-banner p{line-height:1.6;margin:5px 0 12px}.scope-wizard-dialog [data-assignment-controls]{padding:14px;border:1px solid #c4dacc;border-radius:12px;margin:16px 0;background:#f7fbf8}.scope-wizard-dialog [data-assignment-controls] .button{white-space:normal;text-align:left}.scope-wizard-dialog [data-assignment-preview]:not(:empty){border-top:1px solid #dce7e1;padding-top:12px;font-size:13px;line-height:1.6}
@media(max-width:600px){.scope-group-cards{grid-template-columns:1fr}.scope-draft-banner{font-size:11px}}

/* Company work-template library and stage builder. */
.work-template-library{min-width:0;padding:4px 0}.work-template-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:8px 0 14px}.work-template-heading h3,.work-template-heading h4{margin:0}.work-template-heading>div{min-width:0;flex:1}.work-template-heading p{margin:6px 0}.work-template-card,.work-template-stage{border:1px solid var(--border,#dfe5ec);border-radius:16px;background:var(--surface,#fff);padding:18px;margin:12px 0;min-width:0;overflow-wrap:anywhere}.work-template-card h4{margin:0 0 6px}.work-template-stage .field{display:flex;flex-direction:column;gap:6px;margin:12px 0;min-width:0}.work-template-stage input,.work-template-stage select,.work-template-library>.field input{width:100%;max-width:100%;box-sizing:border-box}.work-template-stage .programme-check input{width:auto}.work-template-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.work-template-sequence{padding-left:24px;display:grid;gap:12px}.work-template-sequence li strong,.work-template-sequence li span{display:block;overflow-wrap:anywhere}.work-template-sequence li span{font-size:.88rem;color:var(--muted,#627184);margin-top:3px}.work-template-library [data-template-notice]:empty{display:none}.work-template-library .scope-picker-actions{gap:8px;flex-wrap:wrap}.work-template-stage .work-template-heading>div{flex:0 0 auto}.work-template-stage [data-stage-up],.work-template-stage [data-stage-down]{min-width:40px;min-height:40px}.work-template-library input[type=search]{width:100%;box-sizing:border-box}.work-template-stage .scope-predecessors{max-height:220px;overflow:auto}.work-template-library [data-template-card-confirm]:empty{display:none}
@media(max-width:600px){.work-template-fields{grid-template-columns:1fr;gap:0}.work-template-card,.work-template-stage{padding:13px;border-radius:12px}.work-template-heading{align-items:flex-start}.work-template-library .button{white-space:normal}.work-template-stage .work-template-heading>strong{flex:1;min-width:0}.work-template-library .scope-picker-actions button{min-height:42px}}

.work-context-filters{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0}.work-context-filters [aria-pressed=true]{background:#e0f2ed;color:#087560;border-color:#168b76}.work-classification-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:14px 0}.work-classification-fields .field:last-child{grid-column:1/-1}.work-context-row{padding:16px;border:1px solid #dce5ee;border-radius:12px;margin:12px 0}.work-classification-fields input,.work-classification-fields select{width:100%;box-sizing:border-box;min-width:0}.work-location-filter{max-width:340px;margin:16px 0}.work-progress-group{border:1px solid #dce5ee;border-radius:14px;padding:16px;margin:16px 0}.work-progress-group>summary{cursor:pointer;padding:4px 0 12px}.work-progress-group>summary span span,.work-progress-group>summary strong,.work-progress-group>summary small{display:block}.work-progress-group>summary small{color:#087560}.work-progress-group>summary strong{font-size:18px;margin:4px 0;overflow-wrap:anywhere}.work-progress-group>summary span span{font-size:12px;color:#627184}.work-progress-task{padding:14px;border:1px solid #dce5ee;border-radius:12px;min-width:0}.work-progress-task>div:first-child{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;flex-wrap:wrap}.work-progress-task h4{margin:0;overflow-wrap:anywhere}.work-progress-task p{font-size:13px;line-height:1.5}.work-progress-task .quiet{margin-top:10px}.work-progress-panel .field input{width:100%;box-sizing:border-box}.quantity-line strong{overflow-wrap:anywhere}.site-dialog select[name=taskId]{width:100%;min-width:0}.site-dialog input[aria-label="Search linked tasks"]{margin-bottom:8px;width:100%;box-sizing:border-box}
@media(max-width:600px){.work-classification-fields{grid-template-columns:1fr}.work-classification-fields .field:last-child{grid-column:auto}.work-context-row,.work-progress-group{padding:12px}.work-progress-panel .site-record-grid{grid-template-columns:1fr}.work-context-filters .button{padding:8px 10px;min-height:40px}.quantity-line{flex-direction:column;align-items:flex-start}}

/* Import review: specific checks stay readable on phones and large charts. */
.programme-suitability{font-size:.9rem;color:var(--muted,#64748b);max-width:70ch}
.programme-review-overview{padding:1rem;border:1px solid var(--line,#dbe5df);border-radius:14px;background:var(--surface,#fff);margin:1rem 0}
.programme-review-overview p{font-size:.9rem;max-width:85ch}
.programme-review-overview [data-check-status]:empty{display:none}
.programme-row-checks{border-left:3px solid #d6a34b;padding:.65rem .85rem;margin:.75rem 0;background:#fffaf0;border-radius:0 8px 8px 0;overflow-wrap:anywhere}
.programme-row-checks ul{padding-left:1.1rem;margin:.4rem 0 0;font-size:.9rem}
.programme-review-row:not(.programme-row-flagged) .programme-row-checks{border-color:#a7c5b5;background:transparent}
.programme-reading-evidence{margin:.75rem 0;overflow-wrap:anywhere}

/* Daily work: compact primary actions, expandable planning context. */
.programme-day-filters{display:flex;gap:.45rem;flex-wrap:wrap;margin:1rem 0}
.programme-day-filters [aria-pressed=true]{background:#e5f2ec;border-color:#4c8f72;color:#15543c}
.programme-day-group{margin-top:1.35rem}
.programme-day-card{padding:1rem;border:1px solid var(--line,#dbe5df);border-radius:14px;min-width:0;background:var(--surface,#fff)}
.programme-day-card h4{font-size:1rem;margin:0;overflow-wrap:anywhere}
.programme-day-card p{margin:.55rem 0;font-size:.9rem}
.programme-day-assignment{font-weight:600;color:#275b46}
.programme-day-details{margin-top:.8rem;font-size:.9rem}
.programme-day-details ul{padding-left:1.1rem;overflow-wrap:anywhere}
.programme-day-feedback{margin:.8rem 0}
@media(max-width:600px){.programme-day .panel-header{align-items:stretch}.programme-day .panel-header>.field{width:100%}.programme-day-card .programme-row-top{align-items:flex-start;flex-wrap:wrap}.programme-day-card .form-actions{gap:.35rem}.programme-day-filters .button{font-size:.8rem;padding:.45rem .65rem}}

.programme-day-feedback{display:flex;align-items:center;gap:.65rem;padding:.7rem .85rem}.programme-day-feedback p{margin:0;flex:1;font-size:.85rem}.programme-day-feedback .quiet{flex-shrink:0}.programme-day .panel-header{padding-bottom:.65rem}.programme-day>.form-actions{gap:.35rem}.programme-day>.form-actions .hint{font-size:.8rem}

/* Weekly reporting stays in one optional preview, with a separate PDF export. */
.programme-weekly-report{width:min(1100px,calc(100vw - 24px))}
.programme-report-controls{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;margin:1rem 0}
.programme-report-heading{border-bottom:1px solid #dbe5df;padding-bottom:.6rem;margin:1rem 0}
.programme-report-position{background:#eaf4ef;border-radius:12px;padding:1rem;margin:1rem 0}
.programme-report-position p{margin:.4rem 0 0}
.programme-report-section{margin:1.5rem 0}
.programme-report-table{overflow-x:auto;border:1px solid #dbe5df;border-radius:12px}
.programme-report-table table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:.9rem}
.programme-report-table th,.programme-report-table td{text-align:left;padding:.7rem;vertical-align:top;overflow-wrap:anywhere;border-bottom:1px solid #e5ece8}
.programme-report-table th{background:#edf5f1}.programme-report-notes{font-size:.85rem}.programme-report-notes li{margin:.4rem 0}
@media(max-width:650px){.programme-report-controls{grid-template-columns:1fr;gap:.6rem}.programme-report-table table{font-size:.78rem}.programme-report-table th,.programme-report-table td{padding:.45rem}.programme-weekly-report{padding:1rem}}

.programme-weekly-report .button:not(.secondary){background:#165b43;border-color:#165b43;color:#fff}

.programme-report-table table,.programme-report-table th,.programme-report-table td{white-space:normal}
.programme-revision-panel{margin:22px 0;border:1px solid #bddbd0;background:#f6fbf8;border-radius:14px;padding:18px;min-width:0}
.programme-revision-panel h3{font-size:17px;margin:0 0 10px}.programme-revision-panel p{font-size:13px;line-height:1.7}
.programme-revision-counts{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0}.programme-revision-counts>span{font-size:12px;padding:8px 10px;border:1px solid var(--line);border-radius:9px;background:#fff}
.programme-revision-impact{border-bottom:1px solid var(--line);padding-bottom:12px;margin-bottom:14px}.programme-revision-impact h4{font-size:14px;margin-bottom:10px}
.programme-revision-entry{border:1px solid var(--line);border-radius:10px;padding:12px;background:#fff;margin:10px 0;min-width:0;overflow-wrap:anywhere}
.programme-revision-entry>summary{display:flex;justify-content:space-between;gap:12px;cursor:pointer;font-size:13px}.programme-revision-entry>summary span{color:#087560;font-size:11px;text-align:right}
.programme-revision-entry dl{font-size:12px;margin-bottom:0}.programme-revision-entry dl>div{padding:10px 0;border-bottom:1px solid var(--line)}.programme-revision-entry dt{color:var(--muted);margin-bottom:5px}.programme-revision-entry dd{margin:0;line-height:1.7}.programme-revision-entry dd span{color:var(--muted)}
.programme-revision-entry li,.programme-revision-missing li{font-size:12px;line-height:1.7;margin:10px 0}.programme-revision-entry details{margin-top:12px}.programme-revision-missing{border:1px solid #e7d6b8;background:#fffaf1;border-radius:10px;padding:12px;margin:14px 0}.programme-revision-missing summary{font-size:13px;cursor:pointer;font-weight:700}
@media(max-width:650px){.programme-revision-panel{padding:12px}.programme-revision-entry>summary{display:block}.programme-revision-entry>summary span{display:block;text-align:left;margin-top:6px}}

.programme-daily-update{max-width:680px}
.programme-daily-update .programme-form{display:block}
.daily-update-intro{margin:6px 0 20px;font-size:13px;line-height:1.6;color:var(--muted)}
.daily-update-fields{border:0;padding:0;margin:0;min-width:0;display:grid;gap:18px}
.daily-update-fields>.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}
.daily-update-fields>.field,.daily-update-fields .field{margin:0;min-width:0}
.daily-update-fields textarea,.daily-update-fields input,.daily-update-fields select{box-sizing:border-box;width:100%;max-width:100%}
.daily-update-fields textarea{min-height:84px!important;resize:vertical}
.daily-update-choices{border:0;padding:0;margin:0;min-width:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.daily-update-choices legend{font-weight:700;font-size:14px;margin-bottom:12px}
.daily-update-choices label{position:relative;display:flex;align-items:center;gap:10px;cursor:pointer;border:1px solid var(--line,#dce5ee);border-radius:12px;padding:14px;background:#f8faf9;min-width:0}
.daily-update-choices label:has(:checked){border-color:#087560;background:#edf8f2;box-shadow:inset 0 0 0 1px #087560}
.daily-update-choices input{width:18px;height:18px;margin:0;flex:none;accent-color:#087560}
.daily-update-choices strong,.daily-update-choices small{display:block;line-height:1.5;overflow-wrap:anywhere}
.daily-update-choices strong{font-size:14px}.daily-update-choices small{font-size:11px;color:var(--muted)}
.daily-update-choices label:focus-within{outline:2px solid #087560;outline-offset:3px}
.daily-update-fields .hint{font-size:12px;line-height:1.65;margin:6px 0 0}
.daily-update-fields [data-block-fields],.daily-update-fields [data-review-fields]{display:grid;gap:14px;padding:16px;border-radius:12px;border:1px solid var(--line);background:#f8faf9;min-width:0}
.daily-update-fields [hidden]{display:none!important}
.daily-update-photo{border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:16px 0;font-size:12px;line-height:1.6}
.daily-update-photo input{font-size:12px;padding:9px}
.daily-update-photo [data-photo-status]{margin:8px 0 0;overflow-wrap:anywhere}
.daily-update-fields .programme-check{margin:0}
.programme-daily-update form>.form-actions{position:sticky;bottom:-28px;background:#fff;border-top:1px solid var(--line);margin:18px -4px -4px;padding:14px 4px 0;z-index:2}
.programme-daily-update [type=submit]{min-height:46px;background:#087560;border-color:#087560;color:white}
@media(max-width:650px){.programme-daily-update{padding:18px;width:calc(100% - 20px)}.daily-update-choices label{padding:12px 10px;gap:8px}.daily-update-choices small{font-size:10px}.programme-daily-update .panel-header h2{font-size:17px;line-height:1.5;overflow-wrap:anywhere}.programme-daily-update form>.form-actions{bottom:-18px}.programme-daily-update [type=submit]{width:100%}}
