:root{--ink:#193e35;--muted:#526b62;--leaf:#20604e;--mint:#d5ead8;--paper:#fafbf7;--line:#dbe4dc;--violet:#675488;--amber:#865c1b;--shadow:0 4px 20px #23473409;font-family:Inter,"Segoe UI",system-ui,sans-serif;color:var(--ink);background:var(--paper);font-size:15px}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit;color:inherit}button,a{touch-action:manipulation}button{cursor:pointer}button{border:0;background:transparent}button:focus-visible,a:focus-visible{outline:3px solid #9660bd;outline-offset:3px}button:disabled{opacity:.45;cursor:not-allowed}button:hover:not(:disabled){filter:brightness(.96)}.skip{position:absolute;top:-100px;background:white;padding:10px;z-index:5}.skip:focus{top:0}.shell{display:grid;grid-template-columns:224px minmax(0,1fr);min-height:100vh}.sidebar{border-right:1px solid var(--line);background:#f3f6ef;display:flex;flex-direction:column;padding:34px 16px;position:sticky;top:0;height:100dvh}.brand{display:flex;align-items:center;gap:9px;padding:0 10px;margin-bottom:36px;text-align:left}.brand strong{font-size:33px;letter-spacing:-2.2px;line-height:1;font-weight:720}.brand small{display:block;font-size:9px;letter-spacing:2.4px;margin-top:5px;text-transform:uppercase}.word{display:block}.mark{width:37px;height:39px}.label{font-size:10px;letter-spacing:1.6px;text-transform:uppercase;font-weight:730;color:var(--muted)}.sidebar .label{padding:0 12px;margin:20px 0 9px}.nav{display:flex;align-items:center;text-align:left;gap:12px;padding:11px 13px;border-radius:9px;width:100%;font-weight:550;font-size:14px}.nav.active{background:#dae8d9}.nav.project{font-size:13px;font-weight:480}.dot{width:10px;height:10px;display:inline-block;border-radius:3px;flex:none}.mint{background:#d8ebd7}.lilac{background:#e5def0}.sand{background:#fae9ce}.dot.mint{background:#82ac88}.dot.lilac{background:#b09ec4}.dot.sand{background:#cca968}.railprojects{overflow:auto}.sidefoot{margin-top:auto;border-top:1px solid var(--line);padding:18px 10px 0}.sidefoot b,.sidefoot small{display:block}.sidefoot small{color:var(--muted);margin-top:4px}.content{min-width:0}.topbar{height:70px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 clamp(20px,4vw,66px);gap:14px}.crumb{display:flex;align-items:center;gap:11px;color:var(--muted);font-size:13px}.actions,.meta,.row,.inline{display:flex;align-items:center;gap:10px}.row{justify-content:space-between}.icon{height:18px;width:18px;flex:none;vertical-align:middle}.iconbtn{width:38px;height:38px;border:1px solid var(--line);background:white;border-radius:50%;position:relative;display:inline-grid;place-items:center}.alertdot{position:absolute;right:3px;top:2px;width:9px;height:9px;border:2px solid white;border-radius:50%;background:var(--violet)}.profile{border-radius:30px;border:1px solid var(--line);padding:3px 10px 3px 3px;display:flex;align-items:center;gap:8px;background:white;font-size:13px}.ava{display:inline-grid;place-items:center;border-radius:50%;width:29px;height:29px;font-size:10px;font-weight:750;flex:none}.stack .ava+.ava{margin-left:-7px}.stack .ava{border:2px solid white}.stack{display:inline-flex;align-items:center}.main{max-width:1370px;margin:auto;padding:30px clamp(20px,4vw,66px) 50px}.hero{position:relative;background:#deeddd;overflow:hidden;border-radius:20px;padding:26px 32px;min-height:175px;display:flex;align-items:center}.heroText{position:relative;z-index:1;max-width:65%}.hero h1,h1{font-size:clamp(32px,3vw,48px);line-height:1.12;letter-spacing:-2px;margin:10px 0}.hero p,.subtitle{margin:9px 0 0;color:var(--muted);line-height:1.5}.heroArt{position:absolute;right:2%;height:95%;width:31%;top:4%}.btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:9px 15px;border-radius:9px;font-size:13px;font-weight:630;border:1px solid var(--line);background:white}.primary{background:var(--leaf);color:white;border-color:var(--leaf)}.mini{font-size:12px;padding:6px 10px}.section{margin-top:29px}.sectionhead{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px;gap:12px}h2{font-size:23px;letter-spacing:-.85px;margin:0}h3{margin:0;font-size:17px;letter-spacing:-.4px}.num{font-size:12px;color:var(--muted);margin-left:5px}.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,258px),1fr));gap:14px}.pcard{background:white;border:1px solid var(--line);padding:17px 20px;text-align:left;border-radius:14px;box-shadow:var(--shadow)}.pcard h3{margin:12px 0 5px}.pcard small,.muted,.meta{color:var(--muted)}.tile{width:35px;height:35px;display:grid;place-items:center;border-radius:10px}.progress{height:4px;background:#eaf0e9;border-radius:8px;overflow:hidden;margin-top:13px}.progress span{display:block;background:#7da785;height:100%}.pcard.lil .progress span{background:#ab99bf}.tabs{display:flex;gap:5px;flex-wrap:wrap}.tab{padding:8px 12px;border-radius:8px;font-size:13px;color:var(--muted)}.tab.active{color:var(--ink);background:#e6ede3;font-weight:650}.list{background:#fff;border:1px solid var(--line);border-radius:14px;overflow:hidden;margin-top:12px}.taskrow{width:100%;text-align:left;display:flex;align-items:center;gap:13px;padding:16px;border-bottom:1px solid var(--line)}.taskrow:last-child{border:0}.taskrow .tile{width:32px;height:32px}.grow{flex:1;min-width:0}.grow strong,.grow small{display:block}.grow small{font-size:12px;color:var(--muted);margin-top:4px}.badge{border-radius:20px;font-size:11px;font-weight:640;padding:5px 9px;background:#edf1eb;color:#4a6053;white-space:nowrap}.badge.review{background:#ede7f5;color:var(--violet)}.badge.correction{background:#f7eddc;color:var(--amber)}.badge.done{background:#e3efdf;color:#426346}.meta{font-size:12px}.empty{padding:25px;text-align:center;color:var(--muted);line-height:1.6}.head{margin:14px 0 26px}.board{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:20px}.column{padding:12px;background:#eff2eb;border-radius:12px}.column h3{font-size:14px;padding:3px 0 12px}.boardcard{width:100%;text-align:left;border-radius:9px;padding:13px;border:1px solid var(--line);background:white;margin-bottom:8px}.boardcard strong{display:block;font-size:14px;margin:7px 0}.boardcard .meta{flex-wrap:wrap}.boardcard footer{border-top:1px solid var(--line);margin-top:10px;padding-top:9px;font-size:11px;color:var(--muted)}.people{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px}.person{background:white;border:1px solid var(--line);border-radius:12px;padding:17px}.note{padding:12px;background:#edf3ea;border-radius:10px;font-size:13px;line-height:1.5}.mobilemenu{display:none}dialog{border:1px solid var(--line);border-radius:17px;color:var(--ink);padding:0;width:min(520px,94vw);max-height:89dvh;box-shadow:0 22px 90px #1f3e3536}dialog::backdrop{background:#173a3257}dialog .inner{padding:25px}dialog h2{margin:12px 0}dialog p{line-height:1.5}.field{display:grid;gap:6px;margin:15px 0;font-size:13px;font-weight:650}input:not([type=checkbox]),textarea,select{width:100%;border:1px solid #bdccc1;background:#fff;border-radius:8px;padding:10px}textarea{min-height:72px;resize:vertical}.check{display:flex;align-items:center;gap:7px;font-size:14px;padding:6px}.check input{accent-color:var(--leaf)}.dialogfoot{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end;margin-top:20px}.history{padding:0;list-style:none}.history li{padding:9px 12px;border-left:2px solid #ccdbcd;margin:0 0 3px 4px;background:#f7f9f5;font-size:13px}.history small{display:block;color:var(--muted);margin-bottom:3px}.history .body{white-space:pre-wrap;overflow-wrap:anywhere}.history a{color:var(--leaf)}.details{border-top:1px solid var(--line);margin:18px 0;padding-top:14px}.roles{font-size:13px;line-height:1.7}.notice{width:100%;text-align:left;padding:12px;border-bottom:1px solid var(--line)}.notice.unread{background:#eff5ed}.notice small{display:block;color:var(--muted);margin-top:5px}.profileitem{display:flex;align-items:center;gap:10px;width:100%;padding:12px;text-align:left;border-bottom:1px solid var(--line)}#toast{position:fixed;bottom:18px;left:50%;transform:translateX(-50%);color:white;background:#214d40;border-radius:12px;padding:12px 20px;z-index:9;font-size:14px;pointer-events:none}#toast:empty{display:none}h1,h2,h3,strong,.nav,.hero p{overflow-wrap:anywhere}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #8969a8;outline-offset:2px}
@media(max-width:1080px){.shell{grid-template-columns:188px minmax(0,1fr)}.main{padding:24px}.board{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:740px){.shell{display:block}.sidebar{display:none}.shell.showmenu .sidebar{display:flex;position:fixed;width:245px;z-index:4;box-shadow:10px 0 70px #173a3236}.mobilemenu{display:inline-grid}.crumb span:first-of-type{display:none}.topbar{padding:0 14px;height:58px}.main{padding:16px 14px 40px}.hero{padding:20px;min-height:145px}.heroText{max-width:72%}.heroArt{right:-4%;width:32%}.hero h1{font-size:30px}.hero p{font-size:13px}.hero .label{font-size:9px}.cards{grid-template-columns:1fr}.pcard{padding:13px 16px}.pcard h3{margin:6px 0}.section{margin-top:22px}.taskrow{gap:8px;padding:12px}.taskrow>.ava,.taskrow>.icon{display:none}.taskrow .badge{white-space:normal;text-align:center}.board{grid-template-columns:1fr}.sectionhead,.head.row{align-items:flex-start}.crumb{gap:5px}.sectionhead .btn{flex-shrink:0}.head.row{flex-wrap:wrap}.label{letter-spacing:1px}.nav{padding:9px}.sidebar{padding:18px 12px}.brand{margin-bottom:15px}.sectionhead h2{font-size:20px}.taskrow>.tile{display:none}}

.pending-count{margin-left:auto;min-width:22px;height:22px;border-radius:50%;display:grid;place-items:center;background:#d9e8d8;font-size:11px;font-weight:750}
.meter{margin:16px 0 8px;color:var(--muted);font-size:13px}.meter .progress{margin:5px 0 0}.taskrow .meter,.boardcard .meter{max-width:220px;margin:6px 0}
.taskfields,.rating{min-width:0;border:0;margin:16px 0;padding:0}.taskfields+ .taskfields{border-top:1px solid var(--line);padding-top:10px}.taskfields legend,.rating legend{font-weight:650;color:var(--leaf)}.taskdates:not([hidden]){display:flex;gap:12px}.taskdates>.field{flex:1;min-width:0}.addpart{border-style:dashed}
.rating>div{display:flex;flex-wrap:wrap;gap:6px;margin-top:9px}.rating label{position:relative;cursor:pointer}.rating input,.upload input[type=file]{position:absolute;width:1px;height:1px;opacity:0;padding:0}.rating span{display:grid;place-items:center;border:1px solid #aec4b6;width:32px;height:32px;border-radius:50%;font-size:13px;font-weight:650}.rating input:checked+span{background:var(--leaf);color:white}.rating input:focus-visible+span,.upload:focus-within{outline:3px solid #ac96c5}.ratingError{color:#854e21}
.upload{display:flex;align-items:center;gap:8px;padding:12px 14px;color:var(--leaf);background:#f1f7ee;border:1px dashed #96b39b;border-radius:10px;cursor:pointer}.filename{overflow-wrap:anywhere}.proposal{display:block;margin-top:16px;padding:14px 16px;background:#f5f2fa;border:1px solid #ddd4e8;border-radius:10px}.proposal p{margin:8px 0}.proposal small{display:block;margin-top:5px}.proposal .actions{margin-top:12px;flex-wrap:wrap}.proposal summary{cursor:pointer;font-weight:650}.history .btn{display:flex;margin-top:8px}.body,#evidence pre{white-space:pre-wrap;overflow-wrap:anywhere}#evidence iframe,#evidence img{width:100%;border:0;border-radius:8px}#evidence iframe{height:min(55vh,450px)}#evidence img{object-fit:contain;max-height:55vh}
.notice-stack{position:fixed;top:78px;right:18px;width:min(300px,88vw);z-index:3;filter:drop-shadow(0 5px 9px #193e3521)}.folder{position:relative;border:1px solid #b9cdbb;border-radius:0 12px 12px 12px;background:#f6fbf3;padding:10px 13px}.folder:before{content:"";position:absolute;width:70px;height:7px;background:#b9cdbb;top:-7px;left:-1px;border-radius:6px 8px 0 0}.stacked:before,.stacked:after{content:"";position:absolute;inset:4px 6px -5px;background:#d7e6d6;border:1px solid #afc5b4;border-radius:10px;z-index:-1}.stacked:after{inset:8px 12px -10px;z-index:-2}.folder button{display:block;text-align:left}.folder>.row button{font-size:21px;line-height:1;min-width:28px;text-align:center}.folder>button{width:100%;padding:5px 0}.folder small{display:block;margin-top:3px;color:var(--muted)}.folder b{font-size:13px}
@media(max-width:740px){.notice-stack{position:relative;top:auto;right:auto;width:100%;margin:14px 0 20px}.content:has(.notice-stack) .topbar{position:relative}.topbar+.notice-stack{margin-left:auto;width:min(300px,94vw);margin-right:12px}}

.regular-stack{position:relative;isolation:isolate}.notice-stack{display:grid;gap:16px;max-height:55vh;overflow:auto;padding:8px 4px 12px}.due-folder,.due-list{background:#ffe2a2;border-color:#bf7b29;color:#593809}.due-folder{border-left:5px solid #b7671f}.due-folder:before{background:#c47c25}.due-folder .label,.due-folder small{color:#684514}.due-folder button+button{border-top:1px solid #d6ac6f}.pending-count.due-count{background:#ffcd72;color:#56350c;box-shadow:0 0 0 2px #d28c39}.comment-row{display:flex;align-items:center;gap:8px}.comment-row input{min-width:0;flex:1}.comment-row button{width:40px;height:40px;padding:9px}.comment-row .icon{transform:rotate(-18deg)}form[data-form="comment"] label{margin-bottom:6px}

.pilot-preview img,.pilot-preview iframe{display:block;width:100%;border:0;border-radius:8px;margin-top:.75rem}.pilot-preview iframe{height:min(55vh,450px)}.pilot-preview img{object-fit:contain;max-height:55vh}
.inbox-group{margin:22px 0}.inbox-group h3{display:flex;align-items:center;gap:8px;font-size:1rem;margin:0}.inbox-group .list{margin-top:8px}.inbox-row .grow{min-width:0;overflow-wrap:anywhere}.inbox-row small,.inbox-row strong{display:block}.inbox-action{display:inline-flex;align-items:center;gap:5px;font-weight:650;font-size:.85rem;color:#245c4d}.inbox-action svg{width:15px}.inbox-row .inbox-urgent{color:#763f16;background:#ffdfaa;padding:2px 8px;border-radius:8px;width:fit-content}.inbox-reason{overflow:hidden;display:-webkit-box!important;-webkit-box-orient:vertical;-webkit-line-clamp:2}
.lib-filters{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:8px}.lib-scroll{max-height:40vh;overflow:auto;margin:12px 0}.lib-scroll table{width:100%;text-align:left;border-collapse:collapse}.lib-scroll td,.lib-scroll th{padding:.5rem;border-bottom:1px solid var(--line)}.lib-scroll th{position:sticky;top:0;background:#edf3ea}
.mobile-shortcuts{display:none}.inbox-filters{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:16px}.inbox-filters [aria-pressed=true]{background:var(--leaf);color:white}
@media(max-width:740px){.mobile-shortcuts{display:flex;position:fixed;inset:auto 0 0;z-index:3;background:var(--paper);border-top:1px solid var(--line);padding-bottom:env(safe-area-inset-bottom)}.mobile-shortcuts button{flex:1;display:grid;justify-items:center;align-content:center;gap:3px;min-height:54px;font-size:12px}.mobile-shortcuts [aria-current]{background:var(--mint);font-weight:700}.content:has(.mobile-shortcuts) .main{padding-bottom:calc(76px + env(safe-area-inset-bottom))}.due-folder{max-height:25dvh;overflow:auto}.inbox-filters button,.notice,.dialogfoot button{min-height:44px}.notice strong,.notice small{overflow-wrap:anywhere}.sidebar{overflow-y:auto}}
.report-controls,.report-signals{display:flex;flex-wrap:wrap;align-items:center;gap:10px}.report-controls .field{min-width:min(100%,190px)}.report-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,190px),1fr));gap:12px;margin:16px 0}.report-card,.report-group{background:white;border:1px solid var(--line);border-radius:14px;padding:16px;text-align:left}.report-card{display:grid;gap:9px}.report-card strong{font-size:26px}.report-card small,.report-group small{color:var(--muted)}.report-group{margin:9px 0}.report-group>small{display:block;margin:4px 0 10px}.report-signals .btn{white-space:normal}
.daily-filters{display:grid;grid-template-columns:2fr repeat(4,minmax(100px,1fr));gap:10px;align-items:end}.daily-filters .field{margin:12px 0}.daily-views{display:flex;flex-wrap:wrap;gap:8px}.daily-views>span{display:flex;border:1px solid var(--line);border-radius:10px}.daily-views button{min-height:38px}.daily-updates{margin-top:24px;border:1px solid var(--line);background:#f1f5ed;padding:18px;border-radius:16px}.daily-updates h2{margin:0 0 6px}.daily-reason{color:var(--leaf);font-weight:650}.daily-draft{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#f3f6ef;padding:10px;border-radius:10px;margin:12px 0}.daily-review-grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:24px;align-items:start}.daily-review-grid:has(.daily-decision:empty){grid-template-columns:1fr}.daily-review .details:first-child{margin-top:0}.daily-decision{min-width:0;background:#f8faf5;border-radius:12px;padding:16px}.daily-evidence{min-width:0}.daily-observation{background:white;border:1px solid var(--line);border-radius:10px;padding:12px;margin:10px 0}.daily-observation small{display:block;color:var(--muted);margin:6px 0}.daily-observation .actions{flex-wrap:wrap}.daily-observation.is-verified{border-color:#a4c4ac}.daily-observation p{white-space:pre-wrap}.daily-unlocks{padding:12px;background:#eee9f5;border-radius:10px;margin:16px 0}.daily-unlocks summary{cursor:pointer}.daily-unlocks .btn{display:block;margin-top:8px}dialog:has(.daily-review){width:min(1120px,96vw);max-width:1120px}dialog:has(.daily-review) .rating div{flex-wrap:wrap}.daily-review [data-review-stale][hidden]{display:none}
@media(max-width:1000px){.daily-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.daily-search{grid-column:1/-1}.daily-review-grid{grid-template-columns:1fr}.daily-decision{padding:12px}}@media(max-width:600px){.daily-updates .sectionhead{flex-wrap:wrap;gap:12px}.daily-draft{align-items:flex-start;flex-direction:column}.daily-observation .btn{min-height:44px}}

/* Block B: project direction and local automations */
.hub-tabs{margin:22px 0;overflow-x:auto;white-space:nowrap}.hub-objective{background:#e9f1e5;border:1px solid #d6e4d1;border-radius:18px;padding:24px}.hub-objective h2{margin:6px 0}.hub-objective .body{max-width:850px}.hub-next{display:flex;justify-content:space-between;gap:16px;border-top:1px solid #cbdcc7;margin-top:20px;padding-top:16px}.hub-next span{color:var(--muted)}.hub-milestones{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:16px}.hub-milestone,.hub-minute{background:#fff;border:1px solid var(--line);border-radius:16px;padding:20px;min-width:0}.hub-milestone.complete{border-color:#8bb691;background:#f5faf2}.hub-milestone h3{margin:14px 0 8px}.hub-milestone progress{width:100%;height:8px;accent-color:#427a5a;margin:12px 0 6px}.hub-milestone>small{display:block;color:var(--muted)}.hub-milestone>button{margin-top:14px}.hub-milestone details{margin-top:18px}.hub-milestone summary{cursor:pointer;font-weight:650}.hub-blocker{display:block;text-align:left;border:1px solid var(--line);border-radius:10px;background:#f9faf7;padding:12px;width:100%;margin-top:8px;cursor:pointer;color:inherit}.hub-blocker small{display:block;margin-top:6px;line-height:1.5;color:var(--muted)}.hub-timeline{border-left:2px solid #d3e0cf;margin:20px 0 0 6px;padding-left:22px}.hub-timeline article{padding:4px 0 22px;border-bottom:1px solid var(--line);margin:0 0 18px}.hub-timeline h3{margin:8px 0}.hub-timeline small{color:var(--muted)}.hub-minute{margin:20px 0}.hub-minute ol{padding:0;list-style:none}.hub-minute li{display:flex;align-items:center;gap:18px;padding:18px 0;border-top:1px solid var(--line)}.hub-minute li p{margin-bottom:0}.hub-checklist{max-height:310px;overflow:auto;border:1px solid var(--line);border-radius:12px;margin:14px 0;padding:8px}.hub-checklist label{display:flex;gap:12px;align-items:flex-start;padding:10px;cursor:pointer}.hub-checklist input{width:18px;min-height:18px;margin-top:4px;accent-color:#24634e}.hub-checklist small{display:block;margin-top:4px;color:var(--muted)}.hub-preview:not(:empty),.hub-explainer{background:#eff0f8;padding:16px;border-radius:12px;line-height:1.6}.hub-preview{margin:14px 0}.hub-agreement{margin:18px 0}[data-rule-followup][hidden],[data-rule-ready][hidden],[data-rule-review][hidden]{display:none}.hub-milestone p,.hub-minute p,.hub-timeline p{overflow-wrap:anywhere}
@media(max-width:700px){.hub-objective{padding:18px}.hub-next{flex-direction:column;gap:8px}.hub-minute li{flex-direction:column;align-items:flex-start}.hub-tabs .tab{min-height:44px}.hub-milestones{grid-template-columns:1fr}.hub-checklist{max-height:260px}.hub-timeline{padding-left:14px}}

.hub-milestone progress{appearance:none;border:0;border-radius:8px;overflow:hidden;background:#e4ede0}.hub-milestone progress::-webkit-progress-bar{background:#e4ede0;border-radius:8px}.hub-milestone progress::-webkit-progress-value{background:#4d805c;border-radius:8px}.hub-milestone progress::-moz-progress-bar{background:#4d805c;border-radius:8px}

/* Block C: calendars and process time */
.calendar-strip{display:flex;justify-content:space-between;align-items:center;gap:18px;background:#edf2e8;border:1px solid #d6e2d0;border-radius:14px;padding:16px 20px;margin-bottom:24px}.calendar-strip small{display:block;margin-top:6px;color:var(--muted)}.calendar-muted{font-size:13px;color:var(--muted);line-height:1.6}.calendar-weekday{border-bottom:1px solid var(--line);padding:14px 0}.calendar-weekday>strong{display:block;margin-bottom:8px}.calendar-slot,.calendar-holiday{display:flex;align-items:center;gap:10px;margin:8px 0}.calendar-slot input{min-width:0;width:140px}.calendar-holiday input{min-width:0}.calendar-holiday input[type=date]{width:160px}.calendar-holiday input:not([type=date]){flex:1}.compliance-summary{background:#fff;border:1px solid var(--line);border-radius:18px;padding:24px;margin-bottom:30px}.compliance-summary p{line-height:1.7}.compliance-times{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:12px;margin:20px 0}.compliance-times>div{padding:16px;background:#f2f5ee;border-radius:12px}.compliance-times small{display:block;line-height:1.4;color:var(--muted)}.compliance-times strong{display:block;margin-top:10px;font-size:19px}.compliance-task{border-top:1px solid var(--line);margin-top:24px;padding-top:12px}.compliance-task .muted{font-size:13px;line-height:1.6}.compliance-late{background:#fff0d6!important;border:1px solid #e9c080}.compliance-summary .taskrow small{display:block;margin-top:6px}.compliance-summary details{max-height:460px;overflow:auto}
@media(max-width:700px){.calendar-strip{align-items:flex-start;flex-direction:column;padding:16px}.compliance-summary{padding:16px}.compliance-times{grid-template-columns:repeat(2,minmax(0,1fr))}.compliance-times>div{padding:12px}.compliance-times strong{font-size:16px}.calendar-slot input{width:110px}.calendar-holiday{flex-wrap:wrap}.calendar-holiday input[type=date]{width:140px}.calendar-holiday input:not([type=date]){flex-basis:150px}.compliance-summary .sectionhead{flex-wrap:wrap;gap:12px}}
/* Keep all navigation reachable when a laptop viewport or browser zoom reduces height.
   One scroll container avoids collapsing the project list between fixed-size links. */
.sidebar{overflow-y:auto;overflow-x:hidden;scrollbar-gutter:stable;scroll-padding-block:16px}
.sidebar>*{flex-shrink:0}
.sidebar .railprojects{overflow:visible;flex-shrink:0}
@media(min-width:741px) and (max-height:800px){.sidebar{padding-block:18px}.sidebar .brand{margin-bottom:14px}.sidebar>.label{margin-top:14px}.sidebar>.nav{padding-block:9px}.sidebar .sidefoot{padding-top:14px}}

/* Portrax workspace overview and discovery. */
.ready-toolbar{display:flex;align-items:end;gap:16px;flex-wrap:wrap;margin:24px 0 12px}
.ready-toolbar label,.ready-search{display:grid;gap:6px;font-size:14px;color:var(--muted)}
.ready-search{max-width:480px;margin-bottom:20px}.ready-toolbar .ready-search{flex:1 1 240px;margin:0}
.ready-toolbar select,.ready-search input{font:inherit;color:var(--ink);background:white;border:1px solid var(--line);border-radius:10px;min-height:44px;padding:10px 12px;max-width:100%;min-width:0}
.ready-empty{text-align:center;padding:44px 24px;border:1px dashed var(--line);border-radius:20px;background:#f3f7ef;margin:24px 0}
.ready-empty .tile{display:inline-flex}.ready-empty h2{font-size:23px;margin:18px 0 8px}.ready-empty p{max-width:480px;margin:0 auto 22px;color:var(--muted)}
.ready-project{text-align:left;display:flex;flex-direction:column;gap:12px;min-width:0}.ready-project h2{font-size:21px;margin:0;overflow-wrap:anywhere}.ready-project .meter{width:100%;margin-top:auto}
.ready-description{color:var(--muted);font-size:14px;line-height:1.5;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin:0}
.ready-signals{display:flex;gap:6px;flex-wrap:wrap;font-size:12px}.ready-signals span{padding:5px 8px;border-radius:8px;background:#edf3e6}.ready-signals .ready-warning{background:#f8e7b9;color:#6d4a13}
.ready-email{overflow-wrap:anywhere;font-size:14px;color:var(--muted)}.ready-people .person{min-width:0}.ready-result{color:var(--muted);font-size:14px}
@media(max-width:600px){.ready-toolbar{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}.ready-toolbar label,.ready-search{width:100%;max-width:none}.ready-empty{padding:28px 18px}.ready-project{padding:20px}.ready-people{grid-template-columns:minmax(0,1fr)}}

.task-save-status{padding:12px 16px;border-radius:12px;background:#edf3e9;color:#214d43;font-size:14px;line-height:1.5;overflow-wrap:anywhere}.task-save-status:empty{display:none}
/* Block 5: readable notices, reachable forms and restrained persistent feedback. */
.notice-group{border:1px solid var(--line);border-radius:14px;margin:16px 0;padding:14px;background:#fff}.notice-group h3{margin:0 0 4px;font-size:16px}.notice-group>small{color:var(--muted);display:block;margin-bottom:10px}.notice-entry{display:flex;align-items:center;gap:8px;border-radius:10px}.notice-entry .notice{min-width:0;flex:1;border-bottom:0;border-radius:10px}.notice-entry>.btn{flex-shrink:0;margin-right:8px}.notice-help{font-size:13px}.notice-search input{min-height:44px}.notice-stack button{overflow-wrap:anywhere}.folder>.row button{min-width:44px;min-height:44px}.notice-stack{max-height:calc(100dvh - 115px)}.due-folder{max-height:28dvh;overflow:auto}.notice-stack .folder>button b{display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}
#toast,.dialog-feedback{display:flex;align-items:center;gap:14px;pointer-events:auto;max-width:min(560px,94vw);overflow-wrap:anywhere}#toast{bottom:24px}#toast:empty,.dialog-feedback:empty{display:none}#toast button,.dialog-feedback button{flex-shrink:0;min-width:44px;min-height:44px;font-size:24px;color:inherit}.dialog-feedback{position:sticky;bottom:0;margin:0;padding:12px 20px;background:#214d40;color:#fff;max-width:none;border-top:1px solid #b9cdbb}.dialog-feedback span{flex:1}dialog .inner{min-width:0}dialog textarea,dialog select,dialog input{min-width:0}dialog .inline{flex-wrap:wrap}dialog .note+.note{margin-top:12px}
@media(max-width:740px){.notice-stack{max-height:none}.notice-entry{align-items:stretch;flex-direction:column;padding-bottom:8px}.notice-entry>.btn{align-self:flex-end}.notice-group{padding:10px}.inbox-filters{gap:6px}.inbox-filters button{flex:1 1 40%;min-height:44px}dialog{width:calc(100vw - 16px);max-height:calc(100dvh - 24px)}dialog .inner{padding:18px}dialog input,dialog select,dialog textarea{font-size:16px}.daily-draft{flex-wrap:wrap}.comment-row button{min-width:44px;min-height:44px}#toast{bottom:calc(72px + env(safe-area-inset-bottom));width:calc(100vw - 24px)}.topbar .profile{max-width:150px}.dialogfoot .btn{min-height:44px}}
@media(min-width:741px) and (max-width:1200px){.notice-stack{position:relative;top:auto;right:auto;margin:12px 20px 12px auto;width:min(360px,90%);max-height:40dvh}.daily-review-grid{grid-template-columns:minmax(0,1fr)}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}
@media(max-width:740px){.topbar .crumb{min-width:0;flex:1}.topbar .crumb b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.topbar>.actions{flex-shrink:0;gap:6px}.topbar .profile{font-size:0;padding:6px;gap:4px}.topbar .profile .ava{font-size:12px}.topbar .profile>.icon{display:none}}
body:has(dialog[open]){overflow:hidden}.brand strong{white-space:nowrap}.brand .word{min-width:0}@media(min-width:741px) and (max-width:1080px){.brand strong{font-size:29px}.brand{gap:7px;padding-inline:6px}}
.runtime-status[hidden]{display:none}.runtime-status{position:fixed;bottom:20px;left:20px;z-index:5;max-width:min(580px,calc(100vw - 40px));display:flex;gap:10px;align-items:center;flex-wrap:wrap;padding:12px 16px;border:1px solid #d6ac6f;border-radius:12px;background:#fff0d6;color:#593809;box-shadow:0 4px 20px #193e351f;font-size:14px}.runtime-status span{flex:1 1 220px}.runtime-status button{min-height:44px;text-decoration:underline;font-weight:650}@media(max-width:740px){.runtime-status{bottom:calc(70px + env(safe-area-inset-bottom));left:12px;max-width:calc(100vw - 24px)}}
.push-consent{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);width:min(520px,calc(100vw - 32px));box-sizing:border-box;padding:20px;border:1px solid var(--line);border-radius:18px;background:var(--paper,#fafbf7);box-shadow:0 8px 32px #173e3029;z-index:8}.push-consent strong{font-size:17px}.push-consent p{margin:8px 0 14px}.push-consent .btn{margin:3px}@media(max-width:740px){.push-consent{bottom:76px}}
/* Consistent form rhythm and accessible notification positioning. */
:root{--form-gap:16px}
.field{min-width:0;margin-bottom:var(--form-gap)}
.field>input,.field>select,.field>textarea{margin-top:8px;max-width:100%;box-sizing:border-box}
.taskdates,.actions,.dialogfoot,.access-actions,.comment-row{gap:12px}
.taskdates{align-items:start}.taskdates>.field{margin-bottom:0}
.proposal{margin-block:16px;padding:16px}
.proposal>summary{cursor:pointer}.proposal[open]>summary{margin-bottom:16px}
.proposal+.row,.proposal+.actions,.proposal+.dialogfoot{margin-top:16px}
form+form,form+.participant-picker,.shared-progress{margin-top:24px}
.dialogfoot{margin-top:24px;flex-wrap:wrap}.inner form>small{display:block;margin:8px 0 16px}
.participant-picker{margin:20px 0}.participant-picker h3{margin-bottom:8px}
.participant-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;margin:16px 0;max-height:260px;overflow:auto;padding:2px}
.participant-options .check{display:flex;align-items:center;gap:10px;border:1px solid var(--line);border-radius:12px;padding:12px;margin:0;min-width:0;overflow-wrap:anywhere}
.participant-options input{width:18px;height:18px;flex-shrink:0;margin:0}.participant-options .avatar{flex-shrink:0}
.notice-stack{position:relative;inset:auto;margin:16px 24px 0 auto;width:min(380px,calc(100% - 48px));max-height:45dvh;filter:none;overflow:auto}
.notice-stack.notice-floating{position:fixed!important;right:auto!important;bottom:auto!important;margin:0!important;z-index:8;max-height:calc(100dvh - 16px);filter:drop-shadow(0 5px 9px #193e3521)}
.notice-tools{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px}
.notice-grip{cursor:grab;touch-action:none;padding:8px;border:1px solid var(--line);border-radius:8px;background:var(--paper,#f9faf5)}.notice-grip:active{cursor:grabbing}.notice-reset{padding:8px;text-decoration:underline}
@media(max-width:740px){.notice-stack{width:calc(100% - 32px);margin:16px!important;max-height:none}.notice-tools{display:none}.participant-options{grid-template-columns:1fr}.taskdates{gap:16px}.dialogfoot>.btn{flex:1 1 auto}}
.content,.main,.section,.lib-scroll{min-width:0}.lib-scroll{max-width:100%}
.sectionhead{gap:16px;flex-wrap:wrap}.sectionhead>.actions{flex-wrap:wrap}.actions{row-gap:12px}
@media(max-width:740px){.sectionhead>.actions{width:100%;justify-content:flex-start}.sectionhead>.actions>.btn{flex:1;white-space:normal}.lib-scroll{width:100%}}
/* Safe content bounds: Safari's installed Mac toolbar must not cover app controls. */
:root{--desktop-toolbar-gutter:0px;--app-safe-top:max(env(safe-area-inset-top,0px),var(--desktop-toolbar-gutter))}
:root.mac-installed{--desktop-toolbar-gutter:48px}
html{scroll-padding-top:calc(var(--app-safe-top) + 16px)}
body{padding-top:var(--app-safe-top)}
.shell{min-height:calc(100dvh - var(--app-safe-top))}
.sidebar{top:var(--app-safe-top);height:calc(100dvh - var(--app-safe-top))}
.topbar{position:sticky;top:var(--app-safe-top);z-index:4;background:var(--paper)}
.skip:focus{top:var(--app-safe-top);z-index:10}
dialog{max-height:calc(100dvh - var(--app-safe-top) - 32px);top:var(--app-safe-top)}
.notice-stack.notice-floating{max-height:calc(100dvh - var(--app-safe-top) - 94px)}
@media(max-width:740px){.shell.showmenu .sidebar{top:var(--app-safe-top)}.content:has(.notice-stack) .topbar{position:sticky}dialog{max-height:calc(100dvh - var(--app-safe-top) - 24px)}}

/* Notices overlay the workspace without reserving a blank row. */
.notice-stack{position:fixed;top:calc(var(--app-safe-top,0px) + 78px);right:16px;margin:0!important;z-index:8;max-height:calc(100dvh - var(--app-safe-top,0px) - 100px);filter:drop-shadow(0 5px 9px #193e3521)}
.notice-stack:empty{display:none}
@media(max-width:740px){.notice-stack{width:min(360px,calc(100vw - 24px));right:12px;max-height:calc(100dvh - var(--app-safe-top,0px) - 150px)}.notice-stack.notice-floating{max-height:calc(100dvh - var(--app-safe-top,0px) - 150px)}.notice-tools{display:flex}.notice-grip,.notice-reset{min-height:44px}}

/* Desktop: carry the navigation background to the top without covering window controls. */
html.follox-desktop-windows .follox-window-drag{background:linear-gradient(to right,#f3f6ef 224px,var(--paper) 224px)}
html.follox-desktop-windows .sidebar{margin-top:calc(-1 * var(--app-safe-top));top:0;height:100dvh;padding-top:calc(var(--app-safe-top) + 12px)}
@media(max-width:740px){html.follox-desktop-windows .follox-window-drag{background:var(--paper)}html.follox-desktop-windows .shell.showmenu .sidebar{margin-top:0;top:var(--app-safe-top);height:calc(100dvh - var(--app-safe-top));padding-top:12px}}
#desktopRequiredUpdate{z-index:10020}#desktopRequiredUpdate::backdrop{background:#173a3280}

/* Approved Follox wordmark: its lettering is part of the vector artwork. */
.follox-logo{display:block;width:200px;max-width:100%;height:auto;flex-shrink:0}.brand{gap:0;padding:0}.wordmark .follox-logo{width:240px;max-width:100%}

/* Compact controls and actionable feedback. */
.notice-stack .folder{position:relative;padding-top:14px}.notice-stack .folder>.label{display:block;padding-right:42px}.notice-stack .folder>button.notice-grip{position:absolute;right:6px;top:5px;width:36px;min-height:36px;padding:8px;border:0;background:transparent;display:grid;place-items:center}
#toast{position:fixed;left:auto;right:20px;bottom:20px;transform:none;border:1px solid #e4a347;border-left:4px solid #b85d09;border-radius:10px;background:#fff8e9;color:#803c09;box-shadow:0 8px 30px #193e3526;z-index:10001;max-width:min(420px,calc(100vw - 32px));margin:0}#toast[data-kind="error"]{color:#a32121;background:#fff2f1;border-color:#dc7670}#toast[data-kind="success"]{color:#205c43;background:#eff8f1;border-color:#80af91}[role="alert"]:not(:empty){color:#a32121;font-weight:600}
@media(max-width:740px){#toast{right:12px;bottom:calc(76px + env(safe-area-inset-bottom))}}

#toast{top:auto}#toast::backdrop{display:none}

/* Task dialogs: content first, progressive actions, no empty evidence column. */
dialog.compact-create,dialog.compact-task{width:min(680px,calc(100vw - 24px));max-width:680px;max-height:calc(100dvh - var(--app-safe-top,0px) - 32px)}
dialog.compact-create .inner,dialog.compact-task .inner{padding:22px}dialog.compact-create .inner>.row:first-child,dialog.compact-task .inner>.row:first-child{align-items:flex-start;gap:16px;margin-bottom:12px}dialog.compact-create h2,dialog.compact-task h2{margin:0;font-size:24px;line-height:1.25;letter-spacing:-.6px}dialog.compact-task .inner>.row:first-child .iconbtn,dialog.compact-create .inner>.row:first-child .iconbtn{flex-shrink:0;width:32px;height:32px}
.compact-create .taskfields{margin:0}.compact-create .field{margin:12px 0}.compact-create textarea{min-height:90px}.compact-create .dialogfoot{margin-top:14px}.compact-create .shared-picker{margin:10px 0}.compact-task .inner>h3{font-size:13px;margin:16px 0 6px;color:var(--muted)}.compact-task .inner>.body{margin:6px 0 18px;line-height:1.55;white-space:pre-wrap}.compact-task .daily-review{margin:0}.compact-task .daily-evidence>.details:first-child{margin:8px 0 0;padding-top:14px}.compact-task .daily-evidence .details>small{display:block;margin:5px 0 10px}.compact-task .daily-evidence .body{white-space:pre-wrap}
.task-action-row{display:flex;gap:10px;flex-wrap:wrap;margin:18px 0}.task-action-panel{min-width:0}.task-action-panel[open],.task-review-panel{flex-basis:100%}.task-action-panel>summary{list-style:none;cursor:pointer}.task-action-panel>summary::-webkit-details-marker{display:none}.task-action-panel>summary::after{content:'⌄';margin-left:8px}.task-action-panel[open]>summary::after{content:'⌃'}.task-action-panel form,.task-review-panel form{margin-top:12px;padding:16px;background:#f5f8f4;border:1px solid var(--line);border-radius:12px}.task-review-buttons{display:flex;gap:10px}.task-review-panel .field{margin:10px 0}.task-review-panel .rating{margin:12px 0}.task-review-panel .rating div{display:flex;gap:5px;flex-wrap:wrap}.task-review-panel [hidden],.task-action-panel [hidden]{display:none!important}
.task-comments,.task-more{border-top:1px solid var(--line);padding:12px 0;margin-top:8px;font-size:13px}.task-comments>summary,.task-more>summary{cursor:pointer;color:var(--muted)}.task-more[open]>.btn{margin:10px 6px 4px 0}.task-more>small{display:block;margin-top:10px}.daily-draft{background:none;padding:0;margin:8px 0 0;font-size:12px;justify-content:flex-end}.daily-draft[hidden]{display:none}.daily-draft [data-draft-status]:empty{display:none}.daily-draft .btn{background:transparent;border:0;color:var(--muted);padding:4px;font-weight:400}.time-segments{display:flex;align-items:center;justify-content:flex-start;gap:0;border:1px solid #bdccc1;background:white;border-radius:8px;padding:0 10px}.time-segments input:not([hidden]){width:2ch;min-width:2ch;max-width:2ch;flex:0 0 2ch;margin:0;font-family:monospace;letter-spacing:0;border:0;border-radius:0;padding:10px 0;text-align:center;font-variant-numeric:tabular-nums}.time-segments input[hidden]{display:none}.time-segments b{flex:0 0 1ch;width:1ch;font-family:monospace;font-weight:400;text-align:center}.time-segments:focus-within{outline:2px solid #8969a8;outline-offset:2px}.time-segments input:focus-visible{outline:none}
@media(max-width:600px){dialog.compact-create .inner,dialog.compact-task .inner{padding:16px}.compact-task h2,.compact-create h2{font-size:21px}.task-action-row{margin:14px 0}.task-review-buttons .btn{flex:1}.task-action-panel form,.task-review-panel form{padding:12px}}

/* Equal label rows and controls for the delivery date and segmented time. */
.compact-create .taskdates>.field{display:grid;grid-template-rows:20px 44px;align-content:start;gap:6px;margin:12px 0 0;line-height:20px}
.compact-create .taskdates>.field>input,.compact-create .taskdates .time-segments{box-sizing:border-box;height:44px;min-height:44px;margin:0}
.compact-create .time-segments input:not([hidden]){height:42px;min-height:0;line-height:20px;padding:0}

.completed-result>h3{margin:16px 0 6px;font-size:16px}.completed-result>.body{margin:0 0 18px;white-space:pre-wrap;line-height:1.6}.completed-files>h3{font-size:14px;margin-bottom:8px}.completed-file{border:1px solid var(--line);border-radius:10px;margin:8px 0;overflow:hidden}.completed-file-row{display:flex;align-items:center;gap:8px;padding:10px}.completed-file .file-name{flex:1;min-width:0;overflow-wrap:anywhere;font-size:13px}.file-kind{font-size:10px;font-weight:700;color:var(--leaf);background:#edf3ea;padding:7px;border-radius:6px}.completed-file a{text-decoration:none}.completed-file .pilot-preview[hidden]{display:none}.completed-file .pilot-preview{padding:10px;border-top:1px solid var(--line)}.task-original .body,.task-assessment .body{white-space:pre-wrap;line-height:1.6}.task-original>small{display:block;margin-top:10px}.completed-result .btn{flex-shrink:0}
@media(max-width:480px){.completed-file-row{display:grid;grid-template-columns:36px minmax(0,1fr) auto}.completed-file-row .file-name{grid-column:2/-1}.completed-file-row button{grid-column:2;justify-self:end}.completed-file-row a{grid-column:3}}

.completed-file a{color:var(--ink)}
.directory-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:18px 0 24px}.directory-toolbar .ready-search{flex:1;max-width:480px;margin:0}.directory-toolbar .actions{display:flex;flex-wrap:wrap;gap:10px;justify-content:flex-end}.directory-toolbar .btn{min-height:44px;padding:10px 14px}.directory-toolbar+.ready-people{margin-top:0}
@media(max-width:740px){.directory-toolbar{align-items:stretch;flex-direction:column;gap:12px;margin:16px 0 24px}.directory-toolbar .ready-search{max-width:none;flex:auto}.directory-toolbar .actions{justify-content:stretch}.directory-toolbar .actions .btn{flex:1}}

/* Delegation: compact actions and one private review per subtask. */
.delegation-context{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin:8px 0}
.delegation-progress{margin:16px 0;border-top:1px solid var(--line);padding-top:12px}.delegation-progress h3{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;margin:0 0 10px}.delegation-progress h3 span{font-size:12px;font-weight:400;color:var(--muted)}
.delegation-row{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;text-align:left;border:1px solid var(--line);border-radius:10px;background:white;color:inherit;padding:12px;margin:6px 0;cursor:pointer;font:inherit}.delegation-row:hover{background:#f5f8f4}.delegation-row>span:first-child{min-width:0}.delegation-row strong{display:block;overflow-wrap:anywhere}.delegation-row small,.delegation-files small{display:block;font-size:12px;color:var(--muted);margin-top:4px}.delegation-state{font-size:12px;flex-shrink:0}.delegation-state.review,.delegation-state.correction{color:#945513}.delegation-state.approved,.delegation-ready{color:#016556}.delegation-ready{display:block;margin:8px 0}
.delegation-part{position:relative;border:0;border-bottom:1px solid var(--line);padding:0 0 14px;margin:0 0 16px;min-width:0}.delegation-part legend{font-weight:700;padding:0;margin-bottom:8px}.delegation-part .field{margin:10px 0}.delegation-part textarea{min-height:68px}.delegation-remove{position:absolute;right:0;top:-29px}.delegation-dates{display:grid;grid-template-columns:1fr 1fr;align-items:start;gap:12px}.delegation-dates input,.delegation-dates .time-segments{height:40px}.delegation-dates .field{min-width:0}.delegation-warning{color:#975009;background:#fff5e4;border-radius:8px;padding:10px;font-size:13px}.delegation-files{border:1px solid var(--line);border-radius:10px;padding:12px;margin:14px 0;min-width:0}.delegation-files legend{font-weight:600;font-size:14px}.delegation-files .check{display:flex;gap:9px;align-items:flex-start;margin:12px 0;overflow-wrap:anywhere}.delegation-files input{flex-shrink:0;margin-top:4px}.delegation-files .check span{min-width:0}
@media(max-width:600px){.delegation-row{padding:10px;gap:8px}.delegation-state{max-width:85px}.delegation-dates{gap:8px}.delegation-dates input{min-width:0;width:100%}}

.task-title-status{display:flex;gap:10px;align-items:center;flex-wrap:wrap;min-width:0}.task-title-status h2{margin:0;overflow-wrap:anywhere}.task-title-status .badge{flex-shrink:0}.compact-task .task-deadline{justify-content:flex-start;margin:14px 0 0}.compact-task .task-deadline small{color:var(--muted)}

.delegation-dates>.field{display:grid;grid-template-rows:20px 40px;align-content:start;gap:6px;line-height:20px}.delegation-dates>.field>input,.delegation-dates .time-segments{box-sizing:border-box;height:40px;min-height:40px;margin:0}.delegation-dates .time-segments input:not([hidden]){height:38px;min-height:0;width:2ch;margin:0;line-height:20px;padding:0}.task-title-status{flex:1;flex-wrap:nowrap}.task-title-status h2{flex:1;min-width:0}

/* Personal planning keeps deadlines separate from the chosen workday. */
.personal-week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:10px;margin:20px 0}.personal-day{min-width:0;padding:10px;background:#f3f6ef;border:1px solid var(--line);border-radius:12px;min-height:220px}.personal-day.is-today{border-color:var(--leaf)}.personal-day h3{font-size:13px;margin:0 0 5px}.personal-day h3 small{display:block;font-weight:400;margin-top:5px}.personal-count,.personal-empty{font-size:12px;color:var(--muted)}.personal-card{background:#fff;border:1px solid var(--line);border-radius:10px;padding:10px;margin:10px 0;min-width:0}.personal-card>small{display:block;font-size:11px;line-height:1.5;margin-top:8px;overflow-wrap:anywhere}.personal-title{text-align:left;font:inherit;font-size:13px;font-weight:650;padding:0;overflow-wrap:anywhere;width:100%}.personal-tools{display:flex;gap:4px;flex-wrap:wrap;margin-top:10px}.personal-tools .btn{padding:5px 8px;font-size:11px}.personal-backlog{margin:16px 0;border:1px solid var(--line);border-radius:12px;padding:14px}.personal-backlog>summary{cursor:pointer;font-weight:600}.personal-tray{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:10px}.personal-tray .personal-card{margin-bottom:0}.personal-tray>small{margin-top:12px}.personal-agenda form{padding:12px 0}.personal-agenda .field{max-width:280px}.personal-agenda .actions{margin-top:12px;flex-wrap:wrap}.personal-agenda .dialogfoot{justify-content:flex-start}.personal-late{color:#a34d0b!important;font-size:12px}.personal-late[hidden]{display:none}
@media(max-width:1000px){.personal-week{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:600px){.personal-week{grid-template-columns:1fr}.personal-day{min-height:100px}.personal-tray{grid-template-columns:1fr}.personal-day h3 small{display:inline;margin-left:8px}}

/* Action buttons stay in fixed rows; only their form expands below. */
.task-action-row{display:grid;grid-template-columns:auto auto 1fr;align-items:start}.task-action-row>.task-action-panel{display:contents}.task-action-panel>summary{grid-row:1;justify-self:start}.task-action-panel:nth-child(1)>summary{grid-column:1}.task-action-panel:nth-child(2)>summary{grid-column:2}.task-action-panel:nth-child(3)>summary{grid-column:3}.task-action-panel>form,.task-action-panel>p{grid-column:1/-1;grid-row:2;min-width:0;margin-top:2px}.task-action-panel:not([open])>:not(summary){display:none!important}.task-review-panel{grid-column:1/-1}.pending-count.agenda-count{background:#dcecf9;color:#235d89}
@media(max-width:600px){.task-action-row{grid-template-columns:auto 1fr}.task-action-panel:nth-child(3)>summary{grid-row:2;grid-column:1/-1}.task-action-panel>form,.task-action-panel>p{grid-row:3}}

.task-action-panel::details-content{display:contents}

/* All dialogs start centered and grow within the usable viewport. */
dialog,dialog.compact-task,dialog.compact-create{position:fixed;inset:var(--app-safe-top,0px) 0 env(safe-area-inset-bottom,0px);margin:auto;height:fit-content;max-height:calc(100dvh - var(--app-safe-top,0px) - env(safe-area-inset-bottom,0px) - 32px);overflow:auto;overscroll-behavior:contain}
@media(max-width:600px){dialog,dialog.compact-task,dialog.compact-create{max-height:calc(100dvh - var(--app-safe-top,0px) - env(safe-area-inset-bottom,0px) - 24px)}}

.request-filters{display:grid;grid-template-columns:1fr 1fr 1.5fr;gap:14px;margin:18px 0}.request-list{display:grid;gap:12px}.request-card{border:1px solid var(--line);background:white;border-radius:12px;padding:16px;text-align:left;display:grid;gap:9px;width:100%;color:inherit}.request-card>strong{font-size:17px}.request-card small,.request-owner{color:var(--muted);font-size:13px}.request-card .row{flex-wrap:wrap}.request-team-head{margin:22px 0 16px}.team-members{border:1px solid var(--line);border-radius:10px;margin:16px 0;padding:14px;display:grid;gap:10px}.team-members .check{display:flex;align-items:center;gap:8px}.request-actions form{padding:12px 0}.request-actions .proposal{margin:12px 0}.request-actions .dialogfoot{margin:12px 0}.request-actions .proposal>summary{cursor:pointer}.request-actions textarea{min-height:80px}@media(max-width:600px){.request-filters{grid-template-columns:1fr 1fr}.request-filters .field:last-child{grid-column:1/-1}.request-card{padding:12px}.request-team-head{gap:10px}}
/* Personal calendar: day, week and month. */
.agenda-toolbar{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;margin:18px 0}.agenda-toolbar h2{font-size:20px;margin:0 0 0 8px;text-transform:capitalize}.agenda-switch{display:flex;gap:4px;padding:4px;border:1px solid #dbe6df;border-radius:12px;background:#fff}.personal-day h3 button{background:none;border:0;text-align:left;color:inherit;font:inherit;cursor:pointer;padding:0}.agenda-month{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));border:1px solid #dbe6df;border-radius:14px;overflow:hidden;background:#fff}.agenda-weekday{text-align:center;padding:12px;font-weight:700;background:#edf4ef}.agenda-month-day{min-height:125px;padding:7px;border-top:1px solid #e3ebe6;border-right:1px solid #e3ebe6;min-width:0}.agenda-month-day.is-today{background:#edf7f2}.outside-month{background:#f5f7f5;color:#77877f}.agenda-date{display:block;border:0;border-radius:50%;background:transparent;color:inherit;font-weight:700;cursor:pointer;padding:7px;margin-bottom:4px}.is-today .agenda-date{background:#206552;color:#fff}.agenda-chip{display:block;width:100%;text-align:left;font:inherit;font-size:12px;line-height:1.45;border:0;border-left:3px solid #206552;background:#edf4ef;color:#193e35;border-radius:5px;padding:6px;margin:5px 0;overflow-wrap:anywhere;cursor:pointer}.agenda-chip.is-reminder{border-left-color:#477ab0;background:#eef4fc}.agenda-reminder{border-left:3px solid #477ab0!important;background:#f6f9ff!important}.agenda-timeline{border:1px solid #dbe6df;border-radius:14px;background:#fff;max-height:70vh;overflow:auto}.agenda-hour{display:grid;grid-template-columns:80px minmax(0,1fr);border-bottom:1px solid #e8eee9;min-height:70px}.agenda-hour h3{font-size:12px;font-weight:600;color:#64796e;padding:12px;margin:0}.agenda-hour>div{border-left:1px solid #e8eee9;padding:8px;display:flex;gap:8px;flex-wrap:wrap;align-items:flex-start}.agenda-hour .personal-card{margin:0;min-width:180px}.agenda-slot{border:1px dashed #d3e2d9;background:transparent;color:#427460;border-radius:8px;width:32px;height:32px;cursor:pointer}.agenda-timed{flex:1;min-width:180px}.agenda-timed>small{display:block;margin-bottom:4px}.agenda-month-scroll{max-width:100%;overflow:auto}.personal-week+.personal-backlog,.agenda-timeline+.personal-backlog,.agenda-month-scroll+.personal-backlog{margin-top:20px}@media(max-width:700px){.agenda-toolbar h2{width:100%;margin:8px 0}.agenda-switch{width:100%}.agenda-switch .btn{flex:1}.agenda-month{min-width:630px}.agenda-hour{grid-template-columns:58px minmax(0,1fr)}.agenda-hour h3{padding:10px 6px}.agenda-toolbar{gap:10px}}
.badge.delivery-failed,.notice-entry.delivery-failed{background:#b91c1c!important;color:#fff!important;border-color:#991b1b!important}.notice-entry.delivery-failed button,.notice-entry.delivery-failed small{color:#fff!important}.overdue-folder{background:#b91c1c!important;border-color:#7f1d1d!important;color:#fff!important}.overdue-folder button,.overdue-folder small,.overdue-folder .label{color:#fff!important}.overdue-folder [data-notice-archive]{font-size:24px;min-width:32px}.personal-reminder-folder{background:#ffe2a2!important;border-color:#bf7b29!important;color:#593809}.personal-card:has(.delivery-failed){border-color:#b91c1c}.personal-late{color:#b91c1c!important}
.compact-task:has(.delivery-failed) .task-comments .history,.compact-task:has(.delivery-failed) .task-deadline{border-left:4px solid #b91c1c;padding-left:12px}.compact-task:has(.delivery-failed) .task-deadline{color:#b91c1c;font-weight:700}
.notice-stack:has(.personal-reminder-folder):not(:has(.overdue-folder)){top:auto;bottom:86px}.personal-title{overflow-wrap:anywhere}.agenda-timeline{position:relative}.personal-card:has(.personal-late),.agenda-chip.is-late{border-color:#b91c1c;background:#fff1f1;color:#991b1b}
.personal-card.is-late{border:2px solid #b91c1c;background:#fff1f1}.personal-card.is-late .personal-title,.personal-card.is-late>small{color:#b91c1c}.compact-task:has(.delivery-failed) .task-comments>summary{color:#b91c1c;font-weight:700}
.pending-count.overdue-count{background:#b91c1c!important;color:#fff!important;border-color:#7f1d1d!important}
.personal-reminder-folder .row>button[data-act="agReminderLocate"]{flex:1;min-width:0;min-height:0;width:100%;padding:6px 8px;text-align:left}.personal-reminder-folder button b{display:block;font-size:13px;line-height:1.35}.personal-reminder-folder button small{display:block;font-size:12px;line-height:1.4;margin-top:2px}.personal-reminder-folder>.label{font-size:10px}.personal-reminder-folder .row{gap:0}

.company-logo{display:block;max-width:220px;max-height:110px;object-fit:contain;margin:16px 0}.company-person{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 0;border-bottom:1px solid #dce5df}.company-person small{display:block;overflow-wrap:anywhere}.company-person>div+div{display:flex;flex-wrap:wrap;gap:8px}.history p{overflow-wrap:anywhere}@media(max-width:650px){.company-person{align-items:flex-start;flex-direction:column}}

.company-identity{display:flex;align-items:center;gap:8px;padding:0 16px 12px;color:#355b52;font-size:12px;overflow-wrap:anywhere}.company-identity img{width:32px;height:32px;object-fit:contain}.company-identity span{min-width:0}

/* Company notification rules */
#notificationPolicy [hidden]{display:none!important}#notificationPolicy fieldset{min-width:0;border:1px solid var(--line,#d4dfda);border-radius:12px;padding:16px;margin:16px 0}#notificationPolicy legend{font-weight:700;padding:0 6px}#notificationPolicy h3{margin-top:24px}#notificationPolicy [data-remove-band]{margin:12px 0 0;display:block}
