/* V7 adds delivery-specific presentation on top of the stable V4/V5 base styles. */
.cards.five{grid-template-columns:repeat(5,minmax(0,1fr))}
.overview-links{display:flex;gap:.55rem;flex-wrap:wrap;margin-top:1rem}
.help{color:var(--muted);font-size:.72rem;font-weight:500}
.warning{color:var(--amber)}
.danger-text{color:var(--red)}
.wide{width:100%}
.badge.purple{background:#f1ecfa;color:#65458d}

.engagement-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}
.engagement-card{display:flex;justify-content:space-between;gap:1rem;align-items:center;padding:1.1rem;border:1px solid var(--line);border-radius:15px;background:#fff;box-shadow:0 4px 16px rgba(30,55,45,.04);cursor:pointer;transition:.15s}
.engagement-card:hover{border-color:#9dbdaf;transform:translateY(-1px);box-shadow:var(--shadow)}
.engagement-card h3{margin:.65rem 0 .25rem}.engagement-card p{margin:0;color:var(--muted);font-size:.8rem}
.engagement-stats{display:grid;grid-template-columns:auto auto;gap:.15rem .5rem;align-items:baseline;text-align:right;white-space:nowrap}
.engagement-stats b{font-size:1.25rem}.engagement-stats span{font-size:.7rem;color:var(--muted)}
.engagement-summary-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;margin-top:1rem}.engagement-summary-grid .cards{grid-template-columns:repeat(2,minmax(0,1fr));margin-bottom:.65rem}.principle-list{display:grid;gap:.65rem}.principle-list article{border:1px solid var(--line);border-radius:11px;background:#f9fbfa;padding:.75rem}.principle-list b{font-size:.82rem}.principle-list p{margin:.3rem 0 0;color:var(--muted);font-size:.76rem;line-height:1.55}.obligation-table td{vertical-align:top}.obligation-table .primary-cell{min-width:240px}

.stage-strip{display:flex;gap:.65rem;align-items:stretch;overflow:auto;margin-bottom:1rem;padding:.15rem .1rem .35rem}
.stage-strip,.tabs{scrollbar-width:none}.stage-strip::-webkit-scrollbar,.tabs::-webkit-scrollbar{display:none}
.project-tabs{gap:.45rem;margin:0 0 1.25rem;padding:.5rem;border:1px solid var(--line);border-radius:14px;background:#f5f8f6;align-items:stretch;overflow:visible}.project-tabs .project-tab{display:grid;gap:.2rem;align-content:center;min-width:142px;padding:.72rem .86rem;border:1px solid transparent;border-radius:10px;border-bottom-width:1px;background:transparent;color:#40534b;text-align:left;text-decoration:none;white-space:nowrap}.project-tabs .project-tab b{font-size:.9rem;line-height:1.25}.project-tabs .project-tab small{font-size:.69rem;color:#6e7d77;font-weight:500}.project-tabs .project-tab.primary{background:#fff;border-color:#d4e1dc}.project-tabs .project-tab.support{min-width:118px}.project-tabs .project-tab:hover{border-color:#83af9e;background:#fff}.project-tabs .project-tab.active{background:#08785a;border-color:#08785a;color:#fff}.project-tabs .project-tab.active small{color:#d9f0e7}.project-tab-divider{width:1px;min-width:1px;margin:.25rem .12rem;background:#cbd8d2}
.project-more-tabs{position:relative;margin-left:auto;align-self:center}.project-more-tabs>summary{list-style:none;cursor:pointer;border:1px solid #c4d4ce;border-radius:10px;background:transparent;color:#53665f;padding:.7rem .82rem;font-size:.8rem;font-weight:800;white-space:nowrap}.project-more-tabs>summary::-webkit-details-marker{display:none}.project-more-tabs>summary:after{content:" ▾"}.project-more-tabs[open]>summary{background:#fff;border-color:#7ea998;color:#087458}.project-more-tabs>div{position:absolute;z-index:18;right:0;top:calc(100% + .4rem);display:grid;gap:.25rem;min-width:190px;padding:.4rem;border:1px solid var(--line);border-radius:12px;background:#fff;box-shadow:0 12px 30px rgba(24,52,42,.14)}.project-more-tabs .project-tab.support{width:100%;min-width:0}.project-more-tabs .project-tab.active{background:#08785a;color:#fff}
.project-admin-menu{position:relative}.project-admin-menu>summary{list-style:none;cursor:pointer;border:1px solid #b8ccc4;border-radius:9px;background:#fff;color:#31594c;padding:.58rem .78rem;font-size:.76rem;font-weight:800;white-space:nowrap}.project-admin-menu>summary::-webkit-details-marker{display:none}.project-admin-menu>summary:after{content:" ▾"}.project-admin-menu[open]>summary{border-color:#6da38e;background:#f2f8f5}.project-admin-options{position:absolute;z-index:20;right:0;top:calc(100% + .4rem);display:grid;min-width:180px;padding:.35rem;border:1px solid var(--line);border-radius:11px;background:#fff;box-shadow:0 12px 30px rgba(24,52,42,.14)}.project-admin-options button,.project-admin-options a{display:block;width:100%;border:0;border-radius:8px;background:transparent;color:#324740;padding:.62rem .7rem;text-align:left;text-decoration:none;font:inherit;font-size:.75rem;cursor:pointer}.project-admin-options button:hover,.project-admin-options a:hover{background:#edf6f2;color:#087458}.project-admin-options button+button,.project-admin-options button+a{border-top:1px solid #edf1ef}
.plan-primary-actions{align-items:center}.plan-primary-actions .view-toggle{margin-left:auto}.plan-settings-menu{position:relative}.plan-settings-menu>summary{list-style:none;cursor:pointer;border:1px solid #c5d2cd;border-radius:9px;background:#f7f9f8;color:#52645d;padding:.58rem .78rem;font-size:.76rem;font-weight:800;white-space:nowrap}.plan-settings-menu>summary::-webkit-details-marker{display:none}.plan-settings-menu>summary:after{content:" ▾"}.plan-settings-menu[open]>summary{border-color:#7ca895;background:#fff;color:#087458}.plan-settings-options{position:absolute;z-index:20;right:0;top:calc(100% + .4rem);display:grid;min-width:290px;padding:.45rem;border:1px solid var(--line);border-radius:11px;background:#fff;box-shadow:0 12px 30px rgba(24,52,42,.14)}.plan-settings-options>p{margin:.2rem .4rem .45rem;color:var(--muted);font-size:.72rem;line-height:1.5}.plan-settings-options button{display:grid;gap:.12rem;width:100%;border:0;border-radius:8px;background:transparent;color:#324740;padding:.62rem .72rem;text-align:left;font:inherit;cursor:pointer}.plan-settings-options button b{font-size:.78rem}.plan-settings-options button small{color:var(--muted);font-size:.68rem;font-weight:500}.plan-settings-options button:hover{background:#edf6f2;color:#087458}.plan-settings-options button+button{border-top:1px solid #edf1ef}.project-my-work{margin-top:1rem}
.baseline-explainer{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin:0 0 1rem;border-left:4px solid #be861f}.baseline-explainer p{margin:.3rem 0 0;color:#56665f;line-height:1.55}.project-extra-alerts{margin-bottom:1rem}.project-extra-alerts ul{margin:.45rem 0 0;padding-left:1.1rem}.project-extra-alerts li{margin:.25rem 0}
.stage-node{position:relative;display:grid;grid-template-columns:30px minmax(150px,1fr);grid-template-rows:auto auto;gap:.1rem .55rem;align-items:center;min-width:230px;border:1px solid var(--line);border-radius:13px;background:#fff;padding:.75rem .85rem;text-align:left}
.stage-node:after{content:"";position:absolute;right:-.72rem;top:50%;width:.72rem;border-top:1px solid #afbeb8}
.stage-node:last-child:after{display:none}.stage-node>span{grid-row:1/3;display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#edf2ef;color:#63716b;font-weight:900}
.stage-node b{font-size:.86rem}.stage-node small{color:var(--muted);font-size:.68rem}.stage-node.ACTIVE{border-color:#63a98d;background:var(--green-soft)}
.stage-node.ACTIVE>span{background:var(--green);color:#fff}.stage-node.COMPLETED>span{background:#46625a;color:#fff}.stage-node.ON_HOLD{border-color:#e6bd68;background:#fffbef}.stage-node.CANCELLED{opacity:.6}

.plan-stack{display:grid;gap:1rem}.wbs-v7{border:1px solid var(--line);border-radius:15px;background:#fff;overflow:hidden}.wbs-v7>header{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.85rem 1rem;background:#f6f8f7;border-bottom:1px solid var(--line)}
.wbs-v7.SUMMARY>header{background:#eaf3ef}.wbs-v7 h3{display:inline;margin:0 .45rem}.wbs-v7 header small{display:block;margin-top:.3rem;color:var(--muted);font-size:.72rem}.wbs-code{display:inline-flex;border-radius:7px;background:#dfeae5;color:#36564b;padding:.2rem .4rem;font-size:.72rem;font-weight:900}
.activity-row{display:grid;grid-template-columns:minmax(260px,1.6fr) minmax(90px,.45fr) minmax(150px,.65fr) minmax(130px,.6fr) auto;gap:.8rem;align-items:center;padding:.78rem 1rem;border-bottom:1px solid #edf1ef}
.activity-row:last-child{border-bottom:0}.activity-row:hover{background:#fafcfb}
.activity-row>.primary-cell small{font-size:.72rem}

.milestone-card{display:grid;grid-template-columns:26px minmax(200px,1fr) auto auto;gap:.7rem;align-items:center;padding:.78rem .9rem;border:1px solid #ecd8ae;border-radius:12px;background:#fffcf4;margin-bottom:.55rem}
.milestone-card:last-child{margin-bottom:0}.milestone-diamond{color:#c17d16;font-size:1.1rem}.milestone-card strong,.milestone-card small{display:block}.milestone-card small{margin-top:.25rem;color:var(--muted);font-size:.72rem}.milestone-actions{display:flex;gap:.35rem;flex-wrap:wrap;justify-content:flex-end}
.btn.milestone-button{border-color:#d89a30;background:#fff9e9;color:#83550d}.btn.milestone-button:hover{background:#fff1c9}

.gantt{border:1px solid var(--line);border-radius:14px;background:#fff;overflow:auto;padding:1rem;min-width:720px}.gantt>header{display:flex;justify-content:space-between;gap:1rem;padding-bottom:.8rem;color:var(--muted);font-size:.75rem}.gantt-row{display:grid;grid-template-columns:230px minmax(430px,1fr);gap:.8rem;align-items:center;min-height:48px;border-top:1px solid #edf1ef}.gantt-row>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.78rem}.gantt-row>span small{display:block;color:var(--muted);font-size:.66rem;margin-top:.12rem;overflow:hidden;text-overflow:ellipsis}.gantt-track{position:relative;height:24px;border-left:1px solid #cbd7d1;border-right:1px solid #cbd7d1;background:repeating-linear-gradient(90deg,#fff 0,#fff calc(10% - 1px),#edf1ef calc(10% - 1px),#edf1ef 10%)}
.gantt-track.dual{height:34px}.gantt-bar{position:absolute;top:4px;height:16px;min-width:8px;border-radius:5px;background:#7aa998;color:#fff;font-size:.62rem;font-style:normal;padding:1px 5px;overflow:hidden;white-space:nowrap}.gantt-bar.baseline{top:5px;height:8px;padding:0;background:#9ba8a2;border:1px solid #6f7d77;opacity:.8}.gantt-bar.current{top:19px;height:10px;padding:0;background:#3f8a6f}.gantt-bar.current.stage{background:#3d6f99}.gantt-bar.current.DONE{background:var(--green)}.gantt-bar.current.BLOCKED{background:var(--red)}.gantt-bar.current.PENDING_REVIEW{background:#be861f}.gantt-point{position:absolute;top:5px;transform:translateX(-50%);color:#c17d16;font-size:1.15rem;font-style:normal}.gantt-point.baseline-point{top:-6px;color:#73817b}.gantt-legend{display:flex;gap:1rem;justify-content:flex-end;color:var(--muted);font-size:.68rem;padding:0 0 .55rem}.gantt-legend span{display:flex;align-items:center;gap:.3rem}.gantt-legend i{display:inline-block;width:24px;height:7px;border-radius:4px}.legend-base{background:#9ba8a2}.legend-current{background:#3f8a6f}.gantt-row.stage-row{background:#f8faf9}.gantt-row.stage-row>span b{display:block}
.gantt-chart-body{position:relative}.gantt-chart-body .gantt-row{position:relative;z-index:1}.gantt-track{z-index:1}.gantt-bar,.gantt-point{z-index:3}.gantt-links{position:absolute;z-index:2;left:calc(230px + .8rem);top:0;width:calc(100% - 230px - .8rem);height:100%;pointer-events:none;overflow:visible}.gantt-link{fill:none;stroke:#7c8c85;stroke-width:2;vector-effect:non-scaling-stroke}.gantt-link.conflict{stroke:#c34235;stroke-width:2.6}.gantt-bar.current.activity.movable{cursor:grab;box-shadow:0 0 0 2px rgba(63,138,111,.15)}.gantt-bar.current.activity.movable:hover{box-shadow:0 0 0 3px rgba(63,138,111,.28)}.gantt-bar.current.activity.dragging{cursor:grabbing;opacity:.65}.legend-link{height:2px!important;background:#7c8c85}.legend-conflict{height:2px!important;background:#c34235}.desktop-drag-hint{margin-left:auto;font-weight:800}.shift-form{margin-top:.8rem}
.gantt-left-0{left:0%}.gantt-left-1{left:1%}.gantt-left-2{left:2%}.gantt-left-3{left:3%}.gantt-left-4{left:4%}.gantt-left-5{left:5%}.gantt-left-6{left:6%}.gantt-left-7{left:7%}.gantt-left-8{left:8%}.gantt-left-9{left:9%}.gantt-left-10{left:10%}.gantt-left-11{left:11%}.gantt-left-12{left:12%}.gantt-left-13{left:13%}.gantt-left-14{left:14%}.gantt-left-15{left:15%}.gantt-left-16{left:16%}.gantt-left-17{left:17%}.gantt-left-18{left:18%}.gantt-left-19{left:19%}.gantt-left-20{left:20%}.gantt-left-21{left:21%}.gantt-left-22{left:22%}.gantt-left-23{left:23%}.gantt-left-24{left:24%}.gantt-left-25{left:25%}.gantt-left-26{left:26%}.gantt-left-27{left:27%}.gantt-left-28{left:28%}.gantt-left-29{left:29%}.gantt-left-30{left:30%}.gantt-left-31{left:31%}.gantt-left-32{left:32%}.gantt-left-33{left:33%}.gantt-left-34{left:34%}.gantt-left-35{left:35%}.gantt-left-36{left:36%}.gantt-left-37{left:37%}.gantt-left-38{left:38%}.gantt-left-39{left:39%}.gantt-left-40{left:40%}.gantt-left-41{left:41%}.gantt-left-42{left:42%}.gantt-left-43{left:43%}.gantt-left-44{left:44%}.gantt-left-45{left:45%}.gantt-left-46{left:46%}.gantt-left-47{left:47%}.gantt-left-48{left:48%}.gantt-left-49{left:49%}.gantt-left-50{left:50%}.gantt-left-51{left:51%}.gantt-left-52{left:52%}.gantt-left-53{left:53%}.gantt-left-54{left:54%}.gantt-left-55{left:55%}.gantt-left-56{left:56%}.gantt-left-57{left:57%}.gantt-left-58{left:58%}.gantt-left-59{left:59%}.gantt-left-60{left:60%}.gantt-left-61{left:61%}.gantt-left-62{left:62%}.gantt-left-63{left:63%}.gantt-left-64{left:64%}.gantt-left-65{left:65%}.gantt-left-66{left:66%}.gantt-left-67{left:67%}.gantt-left-68{left:68%}.gantt-left-69{left:69%}.gantt-left-70{left:70%}.gantt-left-71{left:71%}.gantt-left-72{left:72%}.gantt-left-73{left:73%}.gantt-left-74{left:74%}.gantt-left-75{left:75%}.gantt-left-76{left:76%}.gantt-left-77{left:77%}.gantt-left-78{left:78%}.gantt-left-79{left:79%}.gantt-left-80{left:80%}.gantt-left-81{left:81%}.gantt-left-82{left:82%}.gantt-left-83{left:83%}.gantt-left-84{left:84%}.gantt-left-85{left:85%}.gantt-left-86{left:86%}.gantt-left-87{left:87%}.gantt-left-88{left:88%}.gantt-left-89{left:89%}.gantt-left-90{left:90%}.gantt-left-91{left:91%}.gantt-left-92{left:92%}.gantt-left-93{left:93%}.gantt-left-94{left:94%}.gantt-left-95{left:95%}.gantt-left-96{left:96%}.gantt-left-97{left:97%}.gantt-left-98{left:98%}.gantt-left-99{left:99%}.gantt-left-100{left:100%}
.gantt-width-1{width:1%}.gantt-width-2{width:2%}.gantt-width-3{width:3%}.gantt-width-4{width:4%}.gantt-width-5{width:5%}.gantt-width-6{width:6%}.gantt-width-7{width:7%}.gantt-width-8{width:8%}.gantt-width-9{width:9%}.gantt-width-10{width:10%}.gantt-width-11{width:11%}.gantt-width-12{width:12%}.gantt-width-13{width:13%}.gantt-width-14{width:14%}.gantt-width-15{width:15%}.gantt-width-16{width:16%}.gantt-width-17{width:17%}.gantt-width-18{width:18%}.gantt-width-19{width:19%}.gantt-width-20{width:20%}.gantt-width-21{width:21%}.gantt-width-22{width:22%}.gantt-width-23{width:23%}.gantt-width-24{width:24%}.gantt-width-25{width:25%}.gantt-width-26{width:26%}.gantt-width-27{width:27%}.gantt-width-28{width:28%}.gantt-width-29{width:29%}.gantt-width-30{width:30%}.gantt-width-31{width:31%}.gantt-width-32{width:32%}.gantt-width-33{width:33%}.gantt-width-34{width:34%}.gantt-width-35{width:35%}.gantt-width-36{width:36%}.gantt-width-37{width:37%}.gantt-width-38{width:38%}.gantt-width-39{width:39%}.gantt-width-40{width:40%}.gantt-width-41{width:41%}.gantt-width-42{width:42%}.gantt-width-43{width:43%}.gantt-width-44{width:44%}.gantt-width-45{width:45%}.gantt-width-46{width:46%}.gantt-width-47{width:47%}.gantt-width-48{width:48%}.gantt-width-49{width:49%}.gantt-width-50{width:50%}.gantt-width-51{width:51%}.gantt-width-52{width:52%}.gantt-width-53{width:53%}.gantt-width-54{width:54%}.gantt-width-55{width:55%}.gantt-width-56{width:56%}.gantt-width-57{width:57%}.gantt-width-58{width:58%}.gantt-width-59{width:59%}.gantt-width-60{width:60%}.gantt-width-61{width:61%}.gantt-width-62{width:62%}.gantt-width-63{width:63%}.gantt-width-64{width:64%}.gantt-width-65{width:65%}.gantt-width-66{width:66%}.gantt-width-67{width:67%}.gantt-width-68{width:68%}.gantt-width-69{width:69%}.gantt-width-70{width:70%}.gantt-width-71{width:71%}.gantt-width-72{width:72%}.gantt-width-73{width:73%}.gantt-width-74{width:74%}.gantt-width-75{width:75%}.gantt-width-76{width:76%}.gantt-width-77{width:77%}.gantt-width-78{width:78%}.gantt-width-79{width:79%}.gantt-width-80{width:80%}.gantt-width-81{width:81%}.gantt-width-82{width:82%}.gantt-width-83{width:83%}.gantt-width-84{width:84%}.gantt-width-85{width:85%}.gantt-width-86{width:86%}.gantt-width-87{width:87%}.gantt-width-88{width:88%}.gantt-width-89{width:89%}.gantt-width-90{width:90%}.gantt-width-91{width:91%}.gantt-width-92{width:92%}.gantt-width-93{width:93%}.gantt-width-94{width:94%}.gantt-width-95{width:95%}.gantt-width-96{width:96%}.gantt-width-97{width:97%}.gantt-width-98{width:98%}.gantt-width-99{width:99%}.gantt-width-100{width:100%}

.work-card{display:grid;gap:.45rem;width:100%;border:1px solid var(--line);border-radius:11px;background:#fff;padding:.75rem;margin-bottom:.55rem;text-align:left}.work-card:hover{border-color:#9dbdaf;background:#f9fcfa}.work-card strong{font-size:.85rem}.work-card small{color:var(--muted)}
.weekly-panel{margin-bottom:1rem}.weekly-people{display:flex;gap:.4rem;flex-wrap:wrap;margin:0 0 .8rem}.weekly-list{display:grid;gap:.55rem}.weekly-card{display:flex;align-items:center;gap:.65rem;border:1px solid var(--line);border-radius:12px;background:#fff;padding:.72rem}.weekly-card.latest{border-left:4px solid var(--green)}.weekly-card.historical{background:#fafbfa}.weekly-card-main{display:grid;gap:.35rem;min-width:0;flex:1;border:0;background:transparent;text-align:left;color:var(--ink)}.weekly-card-main:hover strong{color:var(--green)}.weekly-card-main strong{font-size:.82rem;overflow-wrap:anywhere}.weekly-card-main small{color:var(--muted);font-size:.68rem}.weekly-detail{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.65rem}.weekly-detail section{border:1px solid var(--line);border-radius:11px;background:#f9fbfa;padding:.75rem}.weekly-detail h3{margin:0 0 .4rem;font-size:.76rem;color:var(--muted)}.weekly-detail p{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;font-size:.82rem}.weekly-source-list{display:grid;gap:.45rem}.weekly-source{display:grid;gap:.28rem;width:100%;padding:.65rem .72rem;border:1px solid var(--line);border-radius:10px;background:#fff;text-align:left;color:var(--ink)}.weekly-source:hover{border-color:#91b9a9;background:#f9fcfa}.weekly-source strong{font-size:.8rem}.weekly-source small{color:var(--muted);font-size:.68rem}
.overview-sections{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;margin-top:1rem}.overview-item{display:grid;grid-template-columns:auto minmax(0,1fr);gap:.25rem .5rem;width:100%;padding:.62rem 0;border:0;border-bottom:1px solid #edf1ef;background:transparent;text-align:left;color:var(--ink)}.overview-item:last-child{border-bottom:0}.overview-item:hover strong{color:var(--green)}.overview-item>span{grid-row:1/3}.overview-item strong{font-size:.8rem;line-height:1.35}.overview-item small{color:var(--muted);font-size:.68rem}.compact-note{margin:.2rem 0 .8rem}.recent-changes{border-top:1px solid var(--line);margin-top:.55rem;padding-top:.45rem}.recent-changes>div{display:grid;grid-template-columns:auto minmax(0,1fr);gap:.18rem .45rem;padding:.42rem 0}.recent-changes>div>span{grid-row:1/3}.recent-changes strong{font-size:.76rem}.recent-changes small{font-size:.65rem;color:var(--muted)}
.tracking-legend{display:flex;gap:.35rem;flex-wrap:wrap;align-items:center;margin-left:auto}
.tracking-actions{display:flex;gap:.35rem;flex-wrap:wrap;min-width:150px}
.filter-result{margin:-.25rem 0 .7rem;color:var(--muted);font-size:.72rem;font-weight:800}
.tracking-conditional{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem;padding:.8rem;border:1px solid var(--line);border-radius:12px;background:#f8faf9}
.tracking-conditional[hidden]{display:none}.tracking-conditional>label.full{grid-column:1/-1}
.context-links{display:flex;gap:.3rem .45rem;flex-wrap:wrap;align-items:center;margin:.45rem 0 .65rem;padding:.45rem .55rem;border-radius:9px;background:#f5f8f6;color:var(--muted);font-size:.68rem}.context-links span:not(.badge){margin-right:.25rem;color:#52615b;font-weight:700}

.event-list{display:grid}.event-list article{display:grid;grid-template-columns:90px 1fr;gap:.8rem;padding:.85rem 0;border-bottom:1px solid #edf1ef}.event-list article:last-child{border-bottom:0}.event-list time{color:var(--muted);font-size:.75rem}.event-list b,.event-list small{display:block}.event-list small{color:var(--muted);margin-top:.2rem}.event-list p{font-size:.8rem;margin:.45rem 0}
.followup-toolbar{display:flex;gap:.55rem;flex-wrap:wrap;margin:1rem 0}.followup-builder{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.followup-builder>div>h3{margin:.2rem 0 .65rem;font-size:.84rem}.followup-row{border:1px solid var(--line);border-radius:13px;background:#f9fbfa;padding:.75rem;margin-bottom:.65rem}.followup-row>header{display:flex;align-items:center;justify-content:space-between;gap:.6rem;margin-bottom:.65rem}.followup-row>header>div{display:flex;align-items:center;gap:.4rem}.followup-row .form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:.55rem}.followup-row .form-grid label{font-size:.68rem}.followup-row .checkline{align-self:end;min-height:39px}
.lookahead-panel{margin-bottom:1rem}.lookahead-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.55rem}.lookahead-list>button{display:grid;grid-template-columns:82px minmax(0,1fr);gap:.65rem;border:1px solid var(--line);border-radius:11px;background:#fff;padding:.65rem;text-align:left}.lookahead-list>button:hover{border-color:#90b6a7;background:#f9fcfa}.lookahead-list time{font-size:.72rem;color:var(--muted);font-weight:800}.lookahead-list>button>span{display:grid;grid-template-columns:auto minmax(0,1fr);gap:.2rem .45rem}.lookahead-list strong{font-size:.78rem}.lookahead-list small{grid-column:2;color:var(--muted);font-size:.67rem}
.report-card{border:1px solid var(--line);border-radius:12px;padding:.85rem;margin-bottom:.7rem;background:#fff}.report-card>header{display:flex;justify-content:space-between;gap:.6rem}.report-card>header>span{display:flex;align-items:center;gap:.35rem}.report-card>header small{color:var(--muted)}.report-card p{margin:.65rem 0;font-size:.84rem}.report-card>div{display:grid;grid-template-columns:58px 1fr;gap:.5rem;border-top:1px solid #edf1ef;padding-top:.5rem;margin-top:.5rem;font-size:.78rem}.report-card>div span{color:var(--muted);font-weight:800}
.resource-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.8rem}.resource-card{display:grid;align-content:start;gap:.55rem;min-height:150px;border:1px solid var(--line);border-radius:13px;background:#fff;padding:.9rem;color:var(--ink);transition:.15s}.resource-card.clickable-card{cursor:pointer}.resource-card:hover{border-color:#91b9a9;box-shadow:var(--shadow);transform:translateY(-1px)}.resource-card strong{font-size:.9rem}.resource-card small{color:var(--muted)}.resource-card p{margin:0;color:#52615b;font-size:.78rem}.resource-card>.btn{justify-self:start;margin-top:.15rem;position:relative;z-index:1}
.decision-layout{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(320px,.8fr);gap:1rem;margin-bottom:1rem}.decision-card.link-btn{text-align:left;color:var(--ink);font-weight:400}.decision-card h3{font-weight:700;line-height:1.45;color:#1f2f29}.decision-card p,.decision-card small{font-weight:400}.decision-body,.decision-version-text{font-weight:400;color:#44534d;line-height:1.75;white-space:pre-wrap}.decision-body{font-size:.98rem}.decision-version-text{margin:0 0 .35rem}.detail-grid strong{font-weight:500}
.audit-panel{margin-top:1rem}.audit-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 1rem}.audit-row{display:grid;grid-template-columns:118px minmax(0,1fr);gap:.7rem;padding:.72rem 0;border-bottom:1px solid #edf1ef}.audit-row time{color:var(--muted);font-size:.68rem;font-weight:800}.audit-row>div{display:grid;gap:.22rem}.audit-row strong{font-size:.78rem}.audit-row small{color:var(--muted);font-size:.66rem}
.detail-actions{display:flex;justify-content:flex-end;align-items:center;gap:.55rem;margin-bottom:.8rem}.detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.55rem}.detail-grid>div{display:grid;gap:.25rem;padding:.65rem .72rem;border:1px solid var(--line);border-radius:10px;background:#f9fbfa}.detail-grid>div.full{grid-column:1/-1}.detail-grid span{color:var(--muted);font-size:.68rem;font-weight:800}.detail-grid strong{font-size:.8rem;white-space:pre-wrap;overflow-wrap:anywhere}.record-section{margin-top:1rem}.record-section h3{margin-bottom:.2rem}.activity-record-list{display:grid;margin-top:.55rem}.activity-record{padding:.72rem 0;border-bottom:1px solid #e6ece9}.activity-record:last-child{border-bottom:0}.activity-record header,.activity-record footer{display:flex;justify-content:space-between;align-items:center;gap:.65rem;color:var(--muted);font-size:.68rem}.activity-record p{margin:.55rem 0;white-space:pre-wrap;font-size:.8rem;overflow-wrap:anywhere}.activity-record footer a{margin-left:auto}.kanban-card{width:100%;font:inherit;color:inherit;text-align:left}.gantt-row:is(button){width:100%;font:inherit;color:inherit;text-align:left;border-left:0;border-right:0;border-top:0;background:transparent;cursor:pointer}

@media(max-width:1200px){.cards.five{grid-template-columns:repeat(3,minmax(0,1fr))}.overview-sections{grid-template-columns:repeat(2,minmax(0,1fr))}.resource-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.activity-row{grid-template-columns:minmax(220px,1.5fr) 100px 145px 120px auto}}
@media(max-width:900px){.engagement-grid,.engagement-summary-grid,.decision-layout,.overview-sections,.audit-list,.followup-builder{grid-template-columns:1fr}.activity-row{grid-template-columns:minmax(200px,1fr) auto}.activity-row>:nth-child(3),.activity-row>:nth-child(4){display:none}.milestone-card{grid-template-columns:24px minmax(160px,1fr) auto}.milestone-actions{grid-column:2/-1;justify-content:flex-start}.resource-grid,.lookahead-list{grid-template-columns:1fr}.baseline-explainer{align-items:stretch;flex-direction:column}.baseline-explainer .btn{width:100%}}
@media(max-width:760px){.content{overflow-x:hidden}.topbar{height:auto;min-height:78px;align-items:flex-start}.topbar h1{font-size:1.22rem;line-height:1.3;overflow-wrap:anywhere}.topbar .eyebrow{font-size:.64rem}.project-title{display:grid;grid-template-columns:auto minmax(0,1fr);width:100%;gap:.65rem}.project-title h2{font-size:1.08rem;line-height:1.35}.back-btn{white-space:nowrap;align-self:start}.project-meta{font-size:.7rem}.cards.five{grid-template-columns:1fr 1fr}.engagement-summary-grid .cards{grid-template-columns:1fr 1fr}.stage-node{min-width:205px}.plan-toolbar{align-items:stretch}.plan-toolbar>.btn{flex:1 1 calc(50% - .55rem)}.plan-toolbar>.view-toggle{width:100%}.plan-toolbar>.view-toggle button{flex:1}.tracking-legend{width:100%;margin-left:0}.tracking-conditional,.followup-row .form-grid{grid-template-columns:1fr}.tracking-conditional>label.full{grid-column:auto}.activity-row{padding:.72rem}.milestone-card{grid-template-columns:22px 1fr}.milestone-card>div:nth-child(3){grid-column:2}.milestone-actions{grid-column:2}.event-list article{grid-template-columns:1fr}.report-card>header{display:grid}.detail-actions{align-items:stretch;flex-direction:column}.detail-actions .btn{width:100%}.detail-grid,.weekly-detail{grid-template-columns:1fr}.detail-grid>div.full{grid-column:auto}.weekly-card{align-items:stretch;flex-direction:column}.weekly-card>.btn{width:100%}.activity-record header,.activity-record footer{align-items:flex-start;flex-direction:column}.activity-record footer a{margin-left:0}.gantt{min-width:660px}.desktop-drag-hint{display:none}.work-table-wrap{overflow:visible;background:transparent}.work-table,.work-table tbody,.work-table tr,.work-table td,.obligation-table,.obligation-table tbody,.obligation-table tr,.obligation-table td{display:block;width:100%}.work-table thead,.obligation-table thead{display:none}.work-table tbody,.obligation-table tbody{display:grid;gap:.75rem}.work-table tr,.obligation-table tr{border:1px solid var(--line);border-radius:14px;background:#fff;padding:.72rem .82rem;box-shadow:0 5px 18px rgba(25,59,45,.05)}.work-table td,.obligation-table td{border:0;padding:.36rem 0;display:grid;grid-template-columns:82px minmax(0,1fr);gap:.6rem;align-items:start;overflow-wrap:anywhere}.work-table td::before,.obligation-table td::before{content:attr(data-label);color:var(--muted);font-size:.72rem;font-weight:800;letter-spacing:.03em}.work-table td.primary-cell strong,.work-table td.primary-cell small,.obligation-table td.primary-cell strong,.obligation-table td.primary-cell small{grid-column:2}.work-table td:last-child .btn,.obligation-table td:last-child .btn{width:100%}}
@media(max-width:760px){.project-admin-options{position:fixed;top:74px;right:1rem;left:1rem;min-width:0}.project-admin-options button,.project-admin-options a{padding:.78rem}}
@media(max-width:760px){.plan-primary-actions>.btn{flex:1 1 calc(50% - .55rem)}.plan-primary-actions .view-toggle{order:3;width:100%;margin-left:0}.plan-primary-actions .view-toggle button{flex:1}.plan-settings-menu{order:4;width:100%}.plan-settings-menu>summary{width:100%;text-align:center}.plan-settings-options{position:static;margin-top:.35rem;box-shadow:none}}

/* Project portfolio becomes readable cards on phones instead of a clipped wide table. */
@media(max-width:760px){
  .project-table-wrap{overflow:visible;border:0;background:transparent}
  .project-list-table,.project-list-table tbody{display:block;width:100%;min-width:0}
  .project-list-table thead{display:none}
  .project-list-table tbody{display:grid;gap:.85rem}
  .project-list-table .project-list-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.72rem .9rem;padding:1rem;border:1px solid var(--line);border-radius:16px;background:#fff;box-shadow:0 5px 18px rgba(25,59,45,.05)}
  .project-list-table td{display:block;min-width:0;padding:0;border:0;font-size:.8rem;line-height:1.55;overflow-wrap:anywhere}
  .project-list-table td::before{content:attr(data-label);display:block;margin-bottom:.24rem;color:var(--muted);font-size:.66rem;font-weight:700;letter-spacing:.035em}
  .project-list-table .project-signal-cell{grid-column:1;grid-row:1;align-self:center}
  .project-list-table .project-signal-cell::before,.project-list-table .project-status-cell::before{display:none}
  .project-list-table .project-status-cell{grid-column:2;grid-row:1;justify-self:end;align-self:center}
  .project-list-table .project-contract-cell{grid-column:1/-1;grid-row:2;padding-top:.15rem}
  .project-list-table .project-name-cell{grid-column:1/-1;grid-row:3;padding:.1rem 0 .7rem;border-bottom:1px solid #edf1ef}
  .project-list-table .project-name-cell small{margin-top:.32rem}
  .project-list-table .project-engagement-cell{grid-column:1/-1;grid-row:4}
  .project-list-table .project-owner-cell{grid-column:1;grid-row:5}
  .project-list-table .project-stage-cell{grid-column:2;grid-row:5}
  .project-list-table .project-milestone-cell{grid-column:1/-1;grid-row:6;padding-top:.2rem}
  .project-list-table .project-progress-cell{grid-column:1/-1;grid-row:7;padding-top:.2rem}
  .project-list-table .project-progress-cell .progress{width:100%;min-width:0}
}
@media(max-width:480px){
  .cards.five{grid-template-columns:1fr}.engagement-card{align-items:flex-start;flex-direction:column}.engagement-stats{text-align:left}.milestone-card{padding:.7rem}.project-tabs{margin-left:-1rem;margin-right:-1rem;padding:0 1rem}
  .project-list-table .project-owner-cell{grid-column:1/-1;grid-row:5}
  .project-list-table .project-stage-cell{grid-column:1/-1;grid-row:6}
  .project-list-table .project-milestone-cell{grid-row:7}
  .project-list-table .project-progress-cell{grid-row:8}
}
:root { --scope-accent: #006b50; }
.department-switcher { display:grid; gap:5px; margin-left:auto; flex-shrink:0; }
.department-switcher .scope-label { font-size:12px; font-weight:700; color:#475b55; }
.scope-buttons { display:flex; border:1px solid #b5cdc4; border-radius:9px; padding:3px; background:#f4f8f6; gap:3px; }
.scope-buttons button { border:0; padding:8px 15px; border-radius:6px; background:transparent; color:#35534a; font:inherit; font-size:14px; font-weight:700; cursor:pointer; white-space:nowrap; }
.scope-buttons button[aria-pressed="true"] { background:var(--scope-accent); color:#fff; }
.scope-buttons button:disabled { opacity:.42; cursor:not-allowed; }
.scope-buttons button:focus-visible { outline:3px solid #ca961a; outline-offset:2px; }
.department-switcher small { font-size:11px; color:#61786f; }
.department-empty { margin-bottom:18px; }
@media (max-width: 900px) {
  .topbar { flex-wrap:wrap; gap:12px; }
  .department-switcher { order:3; width:100%; margin-left:0; }
  .scope-buttons { width:fit-content; max-width:100%; }
  .scope-buttons button { flex:1; }
}

/* The mobile header is navigation on every route, not page content. Keep the same
   compact structure on home, work, projects, inquiries, decisions and accounts so
   no section pushes its primary content below a tall route-specific header. */
@media (max-width:760px) {
  .main-column>.topbar {
    display:grid;
    grid-template-columns:40px minmax(0,1fr) auto;
    grid-template-areas:"menu title actions" ". scope scope";
    align-items:center;
    gap:.38rem .55rem;
    min-height:0;
    height:auto;
    padding:.55rem .75rem .6rem;
  }
  .main-column>.topbar>#mobileMenuBtn { grid-area:menu; align-self:start; }
  .main-column>.topbar>div:first-of-type { grid-area:title; min-width:0; }
  .main-column #pageEyebrow {
    margin:0 0 .15rem;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
  }
  .main-column #pageTitle {
    display:-webkit-box;
    overflow:hidden;
    font-size:1rem;
    line-height:1.28;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:2;
  }
  .main-column>.topbar>#topActions {
    grid-area:actions;
    align-self:start;
    min-width:0;
    flex-wrap:wrap;
    justify-content:flex-end;
  }
  .main-column>.topbar>#topActions .btn,
  .main-column>.topbar>#topActions button { min-height:34px; padding:.43rem .58rem; font-size:.7rem; }
  .main-column .project-admin-menu>summary { padding:.43rem .58rem; font-size:.7rem; }
  .main-column>.topbar>#departmentSwitcher {
    grid-area:scope;
    display:flex;
    align-items:center;
    width:100%;
    min-width:0;
    margin:0;
  }
  .main-column #departmentSwitcher .scope-label,
  .main-column #departmentSwitcher>small { display:none; }
  .main-column #departmentSwitcher .scope-buttons {
    width:100%;
    max-width:none;
    padding:2px;
  }
  .main-column #departmentSwitcher .scope-buttons button {
    min-width:0;
    padding:.38rem .45rem;
    font-size:.72rem;
  }
  .main-column .project-admin-options {
    position:absolute;
    top:calc(100% + .35rem);
    right:0;
    left:auto;
    min-width:180px;
  }
}

/* Keep dialog actions visible when the viewport is short or a keyboard is open. */
.sidebar { overflow-y:auto; overscroll-behavior:contain; }
.sidebar .brand, .sidebar nav, .sidebar-foot { flex-shrink:0; }
.modal { max-height:calc(100vh - 2rem); max-height:calc(100dvh - 2rem); overflow:hidden; }
.modal-frame { display:flex; flex-direction:column; max-height:inherit; min-height:0; min-width:0; width:100%; }
.modal-frame>header, .modal-frame>footer { flex:0 0 auto; }
.modal-frame>.modal-body { flex:1 1 auto; min-height:0; max-height:none; overflow:auto; overscroll-behavior:contain; }
.modal-frame>footer { flex-wrap:wrap; }
/* Intrinsic select/date widths must not widen a mobile form (notably Safari). */
.modal-frame>*, .form-grid>*, .form-grid label, .form-grid input,
.form-grid select, .form-grid textarea { min-width:0; max-width:100%; }
.modal-body { overflow-wrap:anywhere; }
@media(max-width:760px) {
  .modal { width:calc(100% - 16px); max-width:calc(100% - 16px); margin:auto; }
  .modal-frame .form-grid, .modal-frame .followup-builder { grid-template-columns:minmax(0,1fr); }
  .modal-frame .form-grid>.full { grid-column:1/-1; }
  .modal-frame input, .modal-frame select, .modal-frame textarea,
  .content input, .content select, .content textarea { min-width:0; max-width:100%; font-size:16px; }
  .modal-frame input[type=date], .modal-frame input[type=datetime-local] { display:block; width:100%; min-height:44px; }
  .modal-frame>header h2 { font-size:1.15rem; overflow-wrap:anywhere; }
  .modal-frame>footer { padding-bottom:max(12px,env(safe-area-inset-bottom)); }
  .modal-frame>footer .btn { flex:1 1 0; min-width:0; min-height:44px; white-space:normal; }
  .modal-frame .checkline { align-items:flex-start; }
  .modal-frame .checkline input { flex:0 0 auto; }
}
@media(max-width:760px) {
  .work-table, .obligation-table { min-width:0; }
  .work-table td>small, .obligation-table td>small { grid-column:2; }
  .work-table td>br, .obligation-table td>br { display:none; }
}
@media(max-width:900px) and (max-height:650px) {
  .topbar { position:static; }
}
@media(max-width:480px) {
  .modal-frame>header, .modal-frame>.modal-body, .modal-frame>footer { padding:1rem; }
  .modal-frame>header { gap:.5rem; }
  .modal-frame>header .icon-btn { flex-shrink:0; }
  .login-shell { padding:1rem; }
  .login-card { padding:1.5rem; }
  .login-card h1 { font-size:1.4rem; }
}

/* V7.4.4 simplified employee flow: announcement -> work -> weekly summary. */
.simple-home{align-items:center;gap:24px}.simple-home .btn{flex:0 0 auto}.home-grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(320px,.8fr);gap:18px;margin-top:18px}.announcements .decision-card{padding:16px 0;border:0;border-bottom:1px solid var(--line);border-radius:0;text-align:left}.announcements .decision-card:last-child{border-bottom:0}.announcements .decision-card h3{font-size:.98rem;font-weight:700;margin:.55rem 0 .25rem}.announcements .decision-card p{font-size:.88rem;font-weight:400;color:#53615c;line-height:1.7}.today-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:16px}.today-summary .metric{min-width:0;padding:14px;border-top-width:1px;box-shadow:none}.today-summary .metric strong{font-size:1.65rem}.today-summary .metric.red{background:#fff3f2;border-color:#e9b7b3}.today-summary .metric.amber{background:#fff8e8;border-color:#e6c986}.today-summary .metric.green{background:#eff8f4;border-color:#afd8c7}.manager-lights{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px}.manager-light-card{appearance:none;border:1px solid var(--line);border-radius:12px;background:#fff;padding:10px 14px;display:grid;grid-template-columns:14px 1fr auto;gap:10px;align-items:center;text-align:left;box-shadow:none;cursor:pointer;flex:1 1 260px}.manager-light-card.red{background:#fff3f2;border-color:#e9b7b3}.manager-light-card.yellow{background:#fff8e8;border-color:#e6c986}.manager-light-card.green{background:#eff8f4;border-color:#afd8c7}.manager-light{width:14px;height:14px;border-radius:50%;background:#2c9b72;box-shadow:none}.manager-light-card.red .manager-light{background:#cf3c37}.manager-light-card.yellow .manager-light{background:#e4a01b}.manager-light-card b{display:block;font-size:1rem}.manager-light-card span small{display:block;margin-top:3px;color:var(--muted);font-size:.78rem;line-height:1.35}.manager-light-card>strong{font-size:1rem;white-space:nowrap}.manager-light-card>strong small,.manager-light-card>strong em small{font-size:.72rem;font-style:normal}.manager-light-card>strong em{display:block;font-size:1rem;font-style:normal;color:#9a6a00;margin-top:3px}.work-create-intro{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:20px;border-radius:18px;background:#fff;border:1px solid var(--line);margin-bottom:16px}.work-create-intro h2{margin:0 0 4px}.work-create-intro p{margin:0;color:var(--muted)}.compact-work-filter{align-items:end}.compact-work-filter .advanced-filters{flex-basis:100%;border-top:1px solid var(--line);padding-top:10px}.compact-work-filter .advanced-filters summary{cursor:pointer;color:var(--brand);font-weight:800}.advanced-filter-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:12px}.work-table.simplified td small{display:block;margin-top:5px}.weekly-panel{margin-top:18px}.weekly-period-settings{grid-column:1/-1;border:1px solid var(--line);border-radius:14px;padding:12px 14px;margin-bottom:14px}.weekly-period-settings summary{cursor:pointer;font-weight:800;color:var(--brand)}

/* My Work hierarchy: task first, project context second, ownership third. */
:root{--data-title-size:.92rem;--data-context-size:.8rem;--data-meta-size:.7rem;--data-label-size:.72rem}
.work-table.simplified{table-layout:fixed;min-width:980px}
.work-table.simplified th,.project-list-table th{font-size:var(--data-label-size);font-weight:700}
.work-table.simplified th,.work-table.simplified td{padding-left:1rem;padding-right:1rem}
.work-table.simplified td{padding-top:1rem;padding-bottom:1rem}
.work-table.simplified th:nth-child(1){width:25%}.work-table.simplified th:nth-child(2){width:39%}.work-table.simplified th:nth-child(3){width:10%}.work-table.simplified th:nth-child(4){width:7%}.work-table.simplified th:nth-child(5){width:10%}.work-table.simplified th:nth-child(6){width:9%}
.work-title{font-size:var(--data-title-size);font-weight:700;line-height:1.5;color:#1f2f29;overflow-wrap:anywhere}
.work-source-tag{display:inline-flex;align-items:center;width:max-content;max-width:100%;margin-top:.55rem;padding:.22rem .5rem;border-radius:999px;background:#edf3f0;color:#607069;font-size:var(--data-meta-size);font-weight:600;line-height:1.35;overflow-wrap:anywhere}
.work-project-name{display:block;color:#40514a;font-size:var(--data-context-size);font-weight:500;line-height:1.65;overflow-wrap:anywhere}
.work-owner-name{display:block;color:#24352f;font-size:var(--data-context-size);font-weight:600;line-height:1.5}
.work-owner-cell small,.work-status-cell small,.work-date-cell small{color:var(--muted);font-size:var(--data-meta-size);line-height:1.45}
.work-date-cell,.work-status-cell{font-size:var(--data-context-size);line-height:1.5}.work-action-cell{white-space:nowrap}

/* Shared information hierarchy for project and work tables. */
.project-list-table td{color:#40514a;font-size:var(--data-context-size);font-weight:400;line-height:1.55}
.project-list-table .project-contract-cell strong{color:#34463f;font-size:var(--data-context-size);font-weight:650;letter-spacing:.01em}
.project-list-table .project-name-cell strong{color:#1f2f29;font-size:var(--data-title-size);font-weight:700;line-height:1.5}
.project-list-table .project-name-cell small{color:var(--muted);font-size:var(--data-meta-size);font-weight:400;line-height:1.45}
.project-list-table .project-engagement-cell strong{color:#34463f;font-size:var(--data-context-size);font-weight:500}
.project-list-table .project-engagement-cell small,.project-list-table .project-milestone-cell small{color:var(--muted);font-size:var(--data-meta-size);font-weight:400;line-height:1.45}
.project-list-table .project-owner-cell{color:#24352f;font-size:var(--data-context-size);font-weight:600}
.project-list-table .project-stage-cell,.project-list-table .project-milestone-cell{font-size:var(--data-context-size);font-weight:400}
.project-list-table .project-progress-cell,.project-list-table .project-status-cell{font-size:var(--data-meta-size)}
@media (max-width:1000px){.home-grid{grid-template-columns:1fr}.advanced-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.today-summary{grid-template-columns:1fr}}
@media (max-width:760px){.manager-lights{flex-direction:column}.manager-light-card{width:100%;flex-basis:auto}}
@media (max-width:700px){.simple-home,.work-create-intro{align-items:stretch;flex-direction:column}.simple-home .btn{width:100%}.advanced-filter-grid{grid-template-columns:1fr}.work-table.simplified{min-width:0}.work-table.simplified tr{padding:14px}.work-table.simplified td{grid-template-columns:6.2rem minmax(0,1fr);padding:.42rem 0}.work-table.simplified .work-title,.work-table.simplified .work-source-tag,.work-table.simplified .work-project-name,.work-table.simplified .work-owner-name{grid-column:2}.work-table.simplified .work-source-tag{justify-self:start}}
.form-advanced {
  margin-top: 12px;
  padding: 0 14px 14px;
  border: 1px solid var(--line, #dbe5df);
  border-radius: 14px;
  background: #f8fbf9;
}

.form-advanced > summary {
  cursor: pointer;
  padding: 13px 0;
  color: #35544a;
  font-weight: 750;
  list-style-position: inside;
}

.form-advanced[open] > summary {
  margin-bottom: 4px;
  border-bottom: 1px solid var(--line, #dbe5df);
}

.form-advanced .form-grid {
  margin-top: 12px;
}

.activity-setup-guide {
  margin: 0 0 14px;
  border-left: 4px solid #168263;
  background: #eef8f4;
  color: #35564a;
}

.activity-setup-form > label:nth-of-type(-n+3) {
  font-weight: 800;
}

.inline-setup-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
  padding: .8rem;
  border: 1px dashed #8eb9a8;
  border-radius: 12px;
  background: #f3faf7;
}

.inline-setup-fields[hidden] {
  display: none !important;
}

.compact-multiselect select[multiple] {
  display: block;
  width: 100%;
  min-height: 7.6rem;
  max-height: 9rem;
}

.compact-multiselect .help {
  line-height: 1.45;
}

.collaborator-picker {
  padding: .72rem .82rem;
  border: 1px solid var(--line, #dbe5df);
  border-radius: 12px;
  background: #fafcfb;
}

.collaborator-picker > summary {
  cursor: pointer;
  color: #35544a;
  font-weight: 750;
}

.collaborator-picker[open] > summary {
  margin-bottom: .65rem;
}

.checklist-picker {
  margin: 0;
  padding: .8rem;
  border: 1px solid var(--line, #dbe5df);
  border-radius: 12px;
  background: #fafcfb;
}
.checklist-picker legend { padding: 0 .35rem; font-weight: 800; color: #294a3f; }
.checklist-count { margin-left: .4rem; color: #087458; font-size: .72rem; }
.checklist-search { width: 100%; margin: .25rem 0 .65rem; }
.checklist-groups { display: grid; gap: .65rem; max-height: 20rem; overflow: auto; }
.checklist-groups section { display: grid; gap: .32rem; padding: .6rem; border: 1px solid #e3ebe7; border-radius: 10px; background: #fff; }
.checklist-groups section > b { color: #60716a; font-size: .72rem; }
.checklist-groups label { display: grid; grid-template-columns: 1.1rem minmax(0,1fr); gap: .55rem; align-items: start; padding: .32rem; border-radius: 7px; font-weight: 550; }
.checklist-groups label:hover { background: #edf7f3; }
.checklist-groups input { margin-top: .18rem; }

@media (max-width: 720px) {
  .form-advanced {
    padding-inline: 10px;
  }

  .inline-setup-fields {
    grid-template-columns: 1fr;
  }
}

/* System update prompt: shown only when unsaved form work prevents a safe auto-refresh. */
.app-update-notice {
  position: fixed;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 140;
  width: min(620px, calc(100vw - 28px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem 1rem;
  background: #fff;
  border: 2px solid var(--green);
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(15,48,36,.24);
}
.app-update-notice div { display:grid; gap:.15rem; }
.app-update-notice strong { font-size:.95rem; }
.app-update-notice span { color:var(--muted); font-size:.78rem; line-height:1.45; }
.app-update-notice .btn { flex:0 0 auto; }
@media (max-width:760px) {
  .app-update-notice { align-items:stretch; flex-direction:column; }
  .app-update-notice .btn { width:100%; }
  .project-more-tabs{margin-left:0;align-self:stretch;flex:1 0 100%}
  .project-more-tabs>summary{width:100%;text-align:center}
  .project-more-tabs>div{position:static;margin-top:.35rem;box-shadow:none}
}

/* Entry cards follow one rule: linked cards look interactive; summaries stay flat. */
.manager-destination{color:#087458!important;font-weight:800;margin-top:.35rem!important}
.clickable-card-row:focus-visible{position:relative;z-index:1}
.stage-work-section{display:grid;gap:12px;margin:8px 0 22px}.stage-work-heading{display:flex;align-items:flex-end;justify-content:space-between;padding:18px 20px;border:1px solid var(--line);border-left:4px solid var(--brand);border-radius:16px;background:linear-gradient(135deg,var(--surface),color-mix(in srgb,var(--brand) 5%,var(--surface)))}.stage-work-heading span{display:inline-block;margin-bottom:4px;color:var(--brand);font-weight:800}.stage-work-heading h2{margin:0}.stage-work-heading p{margin:5px 0 0;color:var(--muted)}.legacy-stage .stage-work-heading{border-left-color:var(--amber)}
.review-cycle-card{display:grid;grid-template-columns:minmax(220px,1.2fr) minmax(300px,1.6fr) auto auto;align-items:center;gap:16px;padding:14px 16px;border:1px solid var(--line);border-radius:14px;background:var(--surface)}.review-cycle-card strong,.review-cycle-card small{display:block}.review-cycle-card small{margin-top:4px;color:var(--muted)}.review-cycle-dates{display:flex;gap:14px;flex-wrap:wrap;color:var(--muted);font-size:.9rem}.external-review-panel{border-style:dashed}.external-review-panel>.empty-state{margin-top:8px}
@media(max-width:760px){.review-cycle-card{grid-template-columns:1fr}.review-cycle-dates{display:grid;gap:4px}.stage-work-heading{padding:14px 16px}.stage-work-heading p{font-size:.88rem}}
