/* Shared working patterns: a clear action, compact records, detail on demand. */
.ops-toolbar,.ops-context{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin:12px 0}
.ops-context{margin:4px 0 10px;font-size:13px;color:var(--muted)}
.ops-context p{margin:0;flex:1;min-width:0;overflow-wrap:anywhere}
.ops-context-label{font-size:13px;line-height:1.45;color:var(--muted);margin:8px 0 12px!important;overflow-wrap:anywhere}
.ops-toolbar>.btn:not(.primary){background:transparent;border-color:transparent;color:var(--muted)}
.ops-toolbar .company-actions{margin:0;gap:8px}
.ops-more{min-width:0}
.ops-more>summary,.ops-help>summary,.ops-line-details>summary{display:flex;align-items:center;gap:12px;min-height:44px;padding:9px 0;list-style:none;cursor:pointer;font-size:14px;font-weight:600;line-height:1.4}
.ops-more>summary::-webkit-details-marker,.ops-help>summary::-webkit-details-marker,.ops-line-details>summary::-webkit-details-marker,.ops-stage>summary::-webkit-details-marker,.ops-notices>summary::-webkit-details-marker{display:none}
.ops-more>summary:after,.ops-help>summary:after,.ops-line-details>summary:after,.ops-stage>summary:after,.ops-notices>summary:after{content:"";width:7px;height:7px;flex:0 0 7px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);transition:transform 160ms ease;margin-left:auto;margin-right:4px;color:var(--muted)}
.ops-more[open]>summary:after,.ops-help[open]>summary:after,.ops-line-details[open]>summary:after,.ops-stage[open]>summary:after,.ops-notices[open]>summary:after{transform:rotate(225deg)}
.ops-more>summary{padding:9px 12px;border-radius:10px;background:var(--bg)}
.ops-more[open]{flex-basis:100%}
.ops-more[open]>summary{background:var(--tint)}
.ops-tools{display:flex;align-items:center;gap:6px;flex-wrap:wrap;padding:8px 0}
.ops-help{border-top:1px solid var(--line);margin-top:14px}
.ops-help>summary>span{margin-left:auto;color:var(--muted);font-size:12px;font-weight:500}
.ops-help>summary>span+*:last-child{margin-left:0}
.ops-help>p{margin:6px 0 12px;line-height:1.5}
.ops-segments{display:flex;gap:3px!important;padding:4px;border-radius:13px;background:#ebeee4;min-width:0}
.ops-segments>.btn{border:0;background:transparent;box-shadow:none;border-radius:9px;color:var(--muted);min-height:40px;height:auto;padding:9px 16px;flex:1;white-space:normal;line-height:1.25;transition:background-color 150ms ease,color 150ms ease}
.ops-segments>.btn[aria-pressed=true]{background:var(--surface,#fff);color:var(--ink);box-shadow:0 1px 4px #252f1710}
.ops-complete-label{display:inline-flex;align-items:center;min-height:40px;color:var(--accent);font-size:13px;font-weight:600}
.ops-more>summary:focus-visible,.ops-help>summary:focus-visible,.ops-line-details>summary:focus-visible,.ops-stage>summary:focus-visible,.ops-notices>summary:focus-visible{outline:3px solid #526534;outline-offset:3px;border-radius:8px}

/* Tasks: the list starts after one action bar, with the same view controls everywhere. */
.ops-tasks .task-controls{align-items:center;gap:12px;margin:14px 0}
.ops-tasks .task-controls>.ops-segments{flex:1;max-width:320px}
.ops-tasks .ops-task-filter{display:flex;align-items:center;gap:8px;margin:0;font-size:12px;color:var(--muted)}
.ops-tasks .ops-task-filter select{max-width:260px;min-height:44px;padding:8px 30px 8px 10px;color:var(--ink);font-size:14px}
.ops-tasks .task-row{gap:12px;padding:13px 4px;min-height:72px}
.ops-tasks .task-row strong{font-size:15px;font-weight:700;line-height:1.35}
.ops-tasks .task-row small{font-size:12px;line-height:1.4;margin-top:4px}
.ops-tasks .task-row-meta{max-width:42%;flex-shrink:0}
.ops-tasks .task-status{display:inline-flex;align-items:center;gap:5px;font-size:12px;line-height:1.4;color:var(--muted);background:#f0f2eb;border-radius:6px;padding:3px 7px;overflow-wrap:anywhere}
.ops-tasks .task-status.task-late{color:#9b3728;background:#fff0e8}
.ops-tasks .task-empty{padding:28px 12px;text-align:center;line-height:1.5;font-size:14px}
.ops-tasks .ops-notices{border:1px solid #e3dcc0;border-radius:12px;background:#faf8ee;padding:0 12px;margin:14px 0}
.ops-notices>summary{display:flex;align-items:center;gap:8px;list-style:none;min-height:46px;font-size:14px;font-weight:700;cursor:pointer}
.ops-notices>summary>span{font-size:12px;background:#eae3cb;border-radius:6px;padding:2px 6px}
.ops-tasks .ops-notice-list{max-height:220px;overflow:auto;overscroll-behavior:contain;display:block;padding:0}
.ops-notice-list>div{display:flex;align-items:center;gap:10px;padding:6px 0;border-top:1px solid #e9e3d0}
.ops-notice-list .task-notice-link{flex:1;min-width:0;font-size:13px;line-height:1.45}
.ops-notice-list .btn{min-height:44px;flex-shrink:0;border:0;background:transparent;padding:8px;font-size:12px;color:var(--muted)}
.ops-task-summary{display:grid;grid-template-columns:1fr 1fr;gap:12px;background:var(--bg);padding:14px;border-radius:12px;margin:14px 0}
.ops-task-summary>div{min-width:0}
.ops-task-summary span,.ops-task-summary strong{display:block;overflow-wrap:anywhere}
.ops-task-summary span{font-size:12px;color:var(--muted);margin-bottom:5px}
.ops-task-summary strong{font-size:15px;line-height:1.4}
.ops-tasks .task-description{line-height:1.55;padding:12px 0;margin:0}
.ops-tasks .ops-status-actions{gap:6px;margin:14px 0}
.ops-status-actions>.btn:not(.primary){background:transparent;border-color:transparent;font-size:13px}
.ops-tasks .company-form{gap:14px}
.ops-tasks .company-form details{border-top:1px solid var(--line);padding-top:4px}
.ops-tasks .company-form summary{min-height:44px;display:flex;align-items:center;font-size:14px;font-weight:600}
.ops-tasks .company-form>.btn.primary{justify-self:stretch}
.ops-tasks .task-calendar{max-width:none}
.ops-tasks .task-calendar-grid button{border-radius:10px;min-height:54px}
.ops-tasks .task-calendar-grid h2{font-size:17px}

/* Execution: summary rows keep all stages within reach; opening is local and instant. */
.ops-work-overview .work-summary{margin:2px 0 12px}
.ops-stage-list{display:grid;gap:10px;margin:14px 0}
.ops-work-overview .ops-stage,.ops-staff-work .ops-stage{padding:0;border:1px solid var(--line);border-radius:14px;background:var(--surface,#fff);overflow:clip}
.ops-stage>summary{display:flex;align-items:center;gap:12px;list-style:none;padding:15px;cursor:pointer;min-height:76px}
.ops-stage-heading{flex:1;min-width:0}
.ops-stage-heading strong{display:block;font-size:15px;line-height:1.35;overflow-wrap:anywhere}
.ops-stage-heading small{display:block;font-size:12px;line-height:1.4;margin-top:5px;color:var(--muted);overflow-wrap:anywhere}
.ops-stage-progress{flex-shrink:0;text-align:right;font-size:18px;font-weight:800;line-height:1.2;font-variant-numeric:tabular-nums}
.ops-stage-progress small{display:block;color:var(--muted);font-size:11px;font-weight:400;margin-top:5px}
.ops-stage>summary:after{margin-left:2px}
.ops-stage[open]>summary{background:#f7f9f1}
.ops-stage-body{padding:0 15px 12px}
.ops-stage-status{margin:8px 0 12px;display:grid;gap:5px}
.ops-stage-status progress{height:4px!important;margin:0!important;border:0;width:100%;accent-color:#7b9334}
.ops-stage-status>span{font-size:11px;color:var(--muted)}
.ops-stage .work-line{padding:14px 0}
.ops-work-heading strong{font-size:15px;line-height:1.4;display:block;overflow-wrap:anywhere}
.ops-work-heading small{font-size:12px;color:var(--muted);line-height:1.4;margin-top:4px;overflow-wrap:anywhere}
.ops-work-quantities{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:10px}
.ops-work-quantities span{font-size:12px;color:var(--muted);min-width:0;line-height:1.5}
.ops-work-quantities strong{display:block;color:var(--ink);font-size:15px;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.ops-line-details{margin-top:3px}
.ops-line-details>summary{font-size:12px;font-weight:400;color:var(--muted);min-height:40px}
.ops-line-details .small{font-size:12px;line-height:1.5}
.ops-work-actions,.ops-stage-tools{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin-top:3px}
.ops-work-actions .btn{min-height:44px;height:auto;padding:9px 12px;white-space:normal;text-align:center;line-height:1.35}
.ops-work-actions .btn.quiet{font-size:12px;color:var(--muted);padding:8px}
.ops-stage-tools{justify-content:space-between;padding-top:8px;border-top:1px solid var(--line)}
.ops-stage-tools>.btn{padding:8px;font-size:13px}
.ops-work-overview .work-history{max-height:240px;overscroll-behavior:contain}

/* Assigned work uses the same stage/quantity hierarchy without exposing finances. */
.ops-staff-work .staff-stage{margin:0}
.ops-staff-work .staff-work-line{border:0;border-bottom:1px solid var(--line);border-radius:0;padding:14px 0;margin:0;background:transparent}
.ops-staff-work .staff-work-line:last-child{border-bottom:0}
.ops-staff-work .staff-work-line .ops-work-heading small{display:block}
.ops-staff-work .staff-work-line .ops-work-quantities strong{font-size:15px}
.ops-staff-work .staff-work-context{font-size:13px;line-height:1.45;color:var(--muted);margin:6px 0;overflow-wrap:anywhere}
.ops-staff-work .company-form{gap:14px}
.ops-staff-work .company-form>.btn.primary{justify-self:stretch}
.ops-staff-work .company-form>.small{font-size:12px;line-height:1.5;margin:0}
.ops-staff-work .staff-work-notice{font-size:13px;line-height:1.5;margin:12px 0}

/* Finance: actual receipts stay distinct from budget and forecast. */
.ops-finance .finance-head{min-width:0}
.ops-finance .finance-head>p{font-size:13px;overflow-wrap:anywhere}
.ops-finance .finance-metrics{gap:10px;margin:12px 0}
.ops-finance>.finance-metrics>.finance-metric{border:0;border-radius:12px;background:var(--bg);padding:13px 12px}
.ops-finance>.finance-metrics>.finance-metric:first-child{background:var(--tint)}
.ops-finance .finance-metric strong{font-size:22px;line-height:1.2;margin:7px 0;overflow-wrap:normal}
.ops-finance .finance-metric>span{font-size:12px}
.ops-finance .finance-metric small{font-size:11px;line-height:1.45}
.ops-finance .finance-actions{margin:14px 0 10px;gap:8px}
.ops-finance-due{font-size:12px;color:var(--muted);line-height:1.6;margin-bottom:12px}
.ops-finance-due strong{color:var(--ink)}
.ops-finance-tabs{margin:14px 0 0}
.ops-finance [data-finance-section][hidden]{display:none!important}
.ops-finance .finance-section{margin-top:14px}
.ops-finance .finance-section>h3{margin-bottom:8px;font-size:15px}
.ops-finance .finance-metrics.two{border-bottom:1px solid var(--line);gap:14px;padding-bottom:12px}
.ops-finance .finance-metrics.two .finance-metric{border:0;padding:0}
.ops-finance .finance-metrics.two .finance-metric strong{font-size:17px;margin:5px 0}
.ops-finance .finance-row{padding:12px 2px;gap:12px;min-height:70px}
.ops-finance .finance-row strong{font-size:14px;line-height:1.4}
.ops-finance .finance-row small{font-size:12px;line-height:1.4}
.ops-finance .finance-value{flex-shrink:0;max-width:50%}
.ops-finance .finance-notice{font-size:13px;padding:11px 12px;border-radius:10px;line-height:1.5;margin:12px 0}
.ops-finance .finance-footnote{margin:0 0 12px;font-size:12px}

/* Checklists: the point and its action lead, versions and setup follow. */
.ops-checklists .check-list{gap:0;margin:14px 0;border:1px solid var(--line);border-radius:13px;overflow:hidden}
.ops-checklists .check-row{border:0;border-bottom:1px solid var(--line);border-radius:0;padding:13px 12px;gap:12px}
.ops-checklists .check-list>.check-row:last-child{border-bottom:0}
.ops-checklists .check-row strong{font-size:15px;line-height:1.4;font-weight:700}
.ops-checklists .check-row small{font-size:12px;line-height:1.4;margin-top:4px}
.ops-checklists .check-row>span:last-child{font-size:12px}
.ops-checklists .check-help{padding:11px 12px;font-size:13px;line-height:1.5;margin:10px 0}
.ops-check-progress{display:flex;align-items:center;flex-wrap:wrap;gap:6px 9px;padding:12px;background:var(--tint);border-radius:12px;margin:12px 0}
.ops-check-progress>strong{font-size:20px;font-variant-numeric:tabular-nums}
.ops-check-progress>span{font-size:13px;color:var(--muted)}
.ops-check-progress>progress{flex-basis:100%;width:100%;height:4px;margin-top:5px;accent-color:#7b9334;border:0}
.ops-checklists .ops-check-points{padding:0;margin:14px 0;list-style:none;counter-reset:check-point;border:1px solid var(--line);border-radius:13px;overflow:hidden}
.ops-check-points>li{position:relative;padding:14px 12px 12px 44px;border-bottom:1px solid var(--line);background:#fff}
.ops-check-points>li:last-child{border-bottom:0}
.ops-check-points>li:before{counter-increment:check-point;content:counter(check-point);position:absolute;left:12px;top:14px;width:22px;height:22px;border-radius:7px;background:#eff1e9;display:grid;place-items:center;color:var(--muted);font-size:12px;font-weight:700}
.ops-check-points>li.is-done:before{background:#e5efcb;color:#435b23}
.ops-check-points>li>strong{font-size:15px;line-height:1.45;font-weight:700;display:block}
.ops-check-points .check-status{font-size:12px;font-weight:500;margin:5px 0;color:var(--muted)}
.ops-check-points .is-done .check-status{color:#435b23}
.ops-check-points .check-text{font-size:13px;line-height:1.5;margin:8px 0}
.ops-check-points .small{font-size:11px;margin:5px 0}
.ops-check-points [data-point]{min-height:44px;margin-top:5px;padding:8px 12px;font-size:13px;background:#f7f8f1}
.ops-checklists .check-photos{margin:8px 0;gap:6px}
.ops-checklists .check-photos figure,.ops-checklists .check-photos img{width:88px}
.ops-checklists .check-photos img{height:68px}
.ops-checklists .check-photos figcaption{font-size:10px}
.ops-checklists .check-publication{border-bottom:1px solid var(--line);padding-right:8px}
.ops-checklists .check-publication:last-child{border-bottom:0}
.ops-checklists .check-publication>.check-row{border:0}
.ops-checklists .check-publication>.btn{font-size:12px}
.ops-checklists .company-form{gap:14px}
.ops-checklists :is(#check-record,#check-photo-form){border:1px solid var(--line);border-radius:13px;padding:14px;margin:12px 0}
.ops-checklists #check-photo-form{display:grid;gap:12px}
.ops-checklists #check-photo-form p{font-size:12px;line-height:1.5;margin:0}
.ops-checklists #check-photo-form [role=status]:empty{display:none}
.ops-checklists #check-photo-form input{font-size:16px;max-width:100%}
.ops-checklists :is(#check-record,#check-photo-form)>.btn.primary{justify-self:stretch}
.ops-checklists:has(#check-record)>hr{display:none}

/* Accountability: a single meaningful balance, then the actual ledger. */
.ops-funds .fund-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:12px 0}
.ops-funds .fund-metric{padding:12px;border-radius:12px;gap:6px;min-width:0}
.ops-funds .fund-metric strong{font-size:20px;line-height:1.3;overflow-wrap:normal}
.ops-funds .fund-metric span{font-size:12px;line-height:1.4}
.ops-fund-balance{display:grid;gap:5px;padding:16px;background:var(--tint);border-radius:14px;margin:12px 0}
.ops-fund-balance>span{font-size:13px;color:var(--muted)}
.ops-fund-balance>strong{font-size:30px;font-variant-numeric:tabular-nums;line-height:1.2;overflow-wrap:anywhere}
.ops-fund-balance.is-overspent{background:#fff2e5}
.ops-funds>h2{font-size:17px;margin:18px 0 4px}
.ops-funds .fund-person,.ops-funds .fund-entry{min-height:72px;padding:13px 2px;gap:12px}
.ops-funds .fund-person strong,.ops-funds .fund-entry strong{font-size:15px;line-height:1.4}
.ops-funds .fund-person small,.ops-funds .fund-entry small{font-size:12px}
.ops-funds .fund-person>span:last-child{max-width:45%}
.ops-funds .fund-notice{font-size:13px;line-height:1.5;padding:10px 12px;border-radius:10px;margin:12px 0}
.ops-funds .fund-form{margin-top:14px;gap:14px}
.ops-funds .fund-form>.btn.primary{justify-self:stretch}
.ops-funds .fund-form>.ops-help{margin:0}
.ops-funds .fund-form>.ops-help .field{margin:8px 0}
.ops-funds .fund-form input,.ops-funds .fund-form select,.ops-funds .fund-form textarea{min-width:0;max-width:100%;font-size:16px}

@media(hover:hover) and (pointer:fine){
 .ops-more>summary:hover,.ops-help>summary:hover,.ops-line-details>summary:hover{color:var(--accent)}
 .ops-stage>summary:hover{background:#f7f9f1}
}
@media(hover:none){.ops-checklists .check-row:hover{background:#fff}}
.ops-stage>summary:active,.ops-help>summary:active,.ops-more>summary:active{background:var(--tint)}
@media(max-width:600px){
 .ops-toolbar{margin:10px 0;gap:8px}
 .ops-toolbar>.btn.primary{flex:1}
 .ops-tasks .task-controls{display:grid;grid-template-columns:1fr;gap:8px}
 .ops-tasks .task-controls>.ops-segments{max-width:none;width:100%}
 .ops-tasks .ops-task-filter{justify-content:space-between}
 .ops-tasks .ops-task-filter select{flex:1;max-width:none;font-size:16px}
 .ops-tasks .task-row{align-items:stretch;gap:7px}
 .ops-tasks .task-row-meta{max-width:none;display:flex;align-items:center;justify-content:space-between;gap:8px}
 .ops-task-summary{gap:10px;padding:12px}
 .ops-task-summary strong{font-size:14px}
 .ops-status-actions>.btn.primary{flex-basis:100%;order:-1}
 .ops-stage>summary{padding:13px 12px;gap:9px;min-height:74px}
 .ops-stage-body{padding:0 12px 10px}
 .ops-stage-progress{font-size:16px}
 .ops-work-actions>.btn:first-child{flex:1}
 .ops-work-actions .btn.quiet{padding:8px 3px}
 .ops-finance>.finance-metrics{grid-template-columns:1fr 1fr;gap:8px}
 .ops-finance>.finance-metrics>.finance-metric:first-child{grid-column:auto}
 .ops-finance>.finance-metrics>.finance-metric:last-child{grid-column:1/-1;display:grid;grid-template-columns:1fr auto;align-items:center;column-gap:8px;background:transparent;padding:4px 2px}
 .ops-finance>.finance-metrics>.finance-metric:last-child strong{font-size:16px;margin:0;grid-column:2;grid-row:1/3}
 .ops-finance>.finance-metrics>.finance-metric:last-child small{grid-column:1}
 .ops-finance .finance-metric strong{font-size:19px}
 .ops-finance .finance-metrics.two>.finance-metric:first-child{grid-column:auto}
 .ops-finance .finance-actions .btn{padding:9px 11px;white-space:normal;height:auto;min-height:44px}
 .ops-finance .finance-value strong{white-space:normal;overflow-wrap:normal}
 .ops-finance .finance-head{flex-wrap:nowrap;gap:8px}
 .ops-finance .finance-head .btn{white-space:normal;line-height:1.3;min-height:44px;height:auto;padding:8px}
 .ops-checklists .company-actions{gap:6px}
 .ops-checklists .check-publication{padding:0 0 8px}
 .ops-checklists .check-publication>.btn{margin:0 0 0 6px}
 .ops-checklists .check-row>span:last-child{max-width:35%}
 .ops-checklists .check-help{margin:10px 0}
 .ops-funds .fund-metric strong{font-size:18px}
 .ops-funds .fund-entry>strong{white-space:normal;max-width:43%;text-align:right;overflow-wrap:normal}
 .ops-funds .fund-person>span:last-child{flex-shrink:1}
}
@media(prefers-reduced-motion:reduce){
 .ops-more>summary:after,.ops-help>summary:after,.ops-line-details>summary:after,.ops-stage>summary:after,.ops-notices>summary:after,.ops-segments>.btn{transition:none}
}

.execution-progress{padding:12px 14px;border:1px solid var(--line);border-radius:14px;margin:8px 0 14px;background:var(--surface,#fff)}
.execution-progress-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:16px}
.execution-progress-heading span{font-weight:700;white-space:nowrap}
.execution-progress p{margin:6px 0!important}
.execution-progress progress{width:100%;height:6px;margin-top:10px;accent-color:var(--accent)}
.execution-filters{display:flex;gap:6px;overflow-x:auto;padding:4px 0 10px}
.execution-filters .btn{flex:none;min-height:40px;font-size:13px}
.execution-filters [aria-pressed=true]{background:var(--tint);border-color:var(--accent);color:var(--text)}
