:root{--navy:#1a2d49;--navy2:#243d60;--blue:#2463eb;--ink:#172438;--muted:#788599;--line:#e8edf3;--bg:#f5f7fa;--green:#16845b;--amber:#b7791f;--red:#c44545;--purple:#7553bd}*{box-sizing:border-box}body{margin:0;background:var(--bg);font:14px 'DM Sans',sans-serif;color:var(--ink)}button,input,select,textarea{font:inherit}button{cursor:pointer}.shell{display:flex;min-height:100vh}.sidebar{width:242px;background:var(--navy);color:#e5edf8;padding:24px 14px;display:flex;flex-direction:column;flex-shrink:0}.brand{display:flex;align-items:center;justify-content:center;padding:0 4px 25px}.brand-logo{display:block;width:100%;height:auto;max-width:190px;border-radius:7px;background:#fff}.login-card .brand{padding:0 0 24px}.login-card .brand-logo{width:220px;max-width:100%}.nav-label{color:#a7b7ce;font-size:10px;text-transform:uppercase;letter-spacing:.12em;padding:12px 12px 7px}.nav-btn{border:0;background:none;color:#b8c4d4;border-radius:8px;text-align:left;padding:10px 12px;margin:2px 0;width:100%;font-weight:500;display:flex;gap:12px;align-items:center}.nav-btn:hover,.nav-btn.active{background:#304d73;color:white}.nav-icon{width:18px;text-align:center;color:#bfd0e7}.side-bottom{margin-top:auto;border-top:1px solid #3a5272;padding:15px 10px 0;color:#b0bfd3;font-size:11px;line-height:1.65}.main{min-width:0;flex:1}.topbar{height:70px;background:white;border-bottom:1px solid var(--line);display:flex;align-items:center;padding:0 34px;gap:18px;position:sticky;top:0;z-index:3}.search{position:relative;flex:1;max-width:380px}.search input{width:100%;border:1px solid var(--line);background:#f8fafc;border-radius:8px;padding:10px 12px 10px 36px;outline:none}.search:before{content:'⌕';position:absolute;left:13px;top:5px;font-size:21px;color:#8995a6}.top-spacer{flex:1}.icon-button{border:0;background:white;color:#526177;position:relative;font-size:19px;padding:7px}.count{position:absolute;right:0;top:0;background:#e05252;color:white;font-size:9px;border-radius:8px;min-width:16px;height:16px;display:grid;place-items:center}.profile{display:flex;align-items:center;gap:9px;padding-left:8px}.avatar{width:34px;height:34px;border-radius:50%;background:#e5edff;color:#235bd5;display:grid;place-items:center;font-weight:700}.profile-name{font-weight:600;font-size:12px}.profile-role{font-size:10px;color:var(--muted);margin-top:2px}.content{padding:30px 36px 50px;max-width:1500px;margin:auto}.heading{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:22px}.eyebrow{color:#8693a6;font-size:11px;text-transform:uppercase;letter-spacing:.1em;font-weight:700;margin-bottom:6px}.heading h1{font:700 25px Manrope,sans-serif;margin:0;letter-spacing:-.03em}.subheading{color:var(--muted);margin-top:6px;font-size:13px}.button{border:1px solid var(--line);background:white;border-radius:7px;padding:9px 13px;color:#33445b;font-weight:600}.button.primary{background:var(--blue);border-color:var(--blue);color:white}.button:hover{filter:brightness(.97)}.button.small{font-size:12px;padding:7px 10px}.grid{display:grid;gap:15px}.kpis{grid-template-columns:repeat(6,minmax(0,1fr));margin-bottom:18px}.card{background:white;border:1px solid var(--line);border-radius:10px;padding:17px}.kpi-label{font-size:11px;color:#748196;font-weight:600}.kpi-value{font:700 26px Manrope,sans-serif;margin:12px 0 4px}.kpi-foot{font-size:10px;color:#99a4b3}.kpi-top{display:flex;justify-content:space-between}.kpi-icon{width:31px;height:31px;border-radius:8px;background:#eef3ff;color:#316ae5;display:grid;place-items:center}.dash-grid{grid-template-columns:1.35fr 1fr;margin-bottom:16px}.section-title{font:700 14px Manrope,sans-serif;margin:0}.section-sub{font-size:11px;color:var(--muted);margin-top:4px}.card-head{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:17px}.chart-bars{display:flex;align-items:flex-end;height:155px;gap:18px;padding:0 10px 22px;border-bottom:1px solid var(--line);margin-top:10px}.bar-set{height:100%;flex:1;display:flex;align-items:flex-end;gap:3px;position:relative}.bar{border-radius:4px 4px 0 0;min-width:5px;flex:1;background:#3977ed}.bar.secondary{background:#91aef2}.bar.alt{background:#56b48b}.bar-label{position:absolute;bottom:-20px;width:100%;text-align:center;font-size:10px;color:#8793a4}.legend{display:flex;gap:14px;font-size:10px;color:#778498}.legend span:before{content:'';display:inline-block;width:7px;height:7px;background:#3977ed;border-radius:2px;margin-right:5px}.legend span:nth-child(2):before{background:#91aef2}.legend span:nth-child(3):before{background:#56b48b}.stage-list{display:grid;gap:16px}.stage-row{display:grid;grid-template-columns:112px 1fr 25px;gap:10px;align-items:center;font-size:11px}.stage-name{color:#6f7d90}.track{height:8px;background:#eff2f6;border-radius:6px;overflow:hidden}.fill{height:100%;border-radius:6px;background:#3c77ee}.stage-count{text-align:right;color:#516076;font-weight:600}.two-col{grid-template-columns:1fr 1fr}.table-card{padding:0;overflow:hidden}.table-head{padding:17px 18px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;white-space:nowrap}th{text-align:left;padding:11px 14px;color:#8793a4;background:#fafbfd;text-transform:uppercase;letter-spacing:.06em;font-size:9px;font-weight:700}td{padding:12px 14px;border-top:1px solid #f0f2f6;font-size:11px;color:#46546a}tr:hover td{background:#fbfcfe}.strong{font-weight:600;color:#1e2c41}.muted{color:#8793a4}.badge{padding:4px 8px;border-radius:20px;font-size:10px;font-weight:600;display:inline-block;background:#edf1f6;color:#607086}.badge.green{background:#e8f6ef;color:#18754f}.badge.amber{background:#fff4df;color:#9d6813}.badge.red{background:#ffeded;color:#bd4444}.badge.blue{background:#eaf0ff;color:#3d64c7}.badge.purple{background:#f1ebff;color:#7553bd}.task-list{display:grid;gap:0}.task-item{padding:13px 0;border-top:1px solid #f0f2f5;display:flex;gap:11px;align-items:flex-start}.task-item:first-child{border-top:0;padding-top:0}.check{width:16px;height:16px;border:1.5px solid #c9d2df;border-radius:5px;flex-shrink:0;margin-top:2px}.task-title{font-size:12px;font-weight:600}.task-meta{font-size:10px;color:#8591a2;margin-top:5px}.attention-row{display:flex;gap:11px;padding:11px 0;border-top:1px solid #f0f2f5;align-items:center}.attention-row:first-child{border-top:0}.dot{width:8px;height:8px;border-radius:50%;background:#e0a339}.dot.red{background:#df5b5b}.dot.blue{background:#4782eb}.attention-copy{font-size:11px;flex:1}.attention-copy small{display:block;color:#8995a5;margin-top:4px}.page-filters{display:flex;gap:8px;align-items:center}.page-filters select,.page-filters input,.field input,.field select,.field textarea{border:1px solid #dfe5ed;border-radius:7px;padding:9px 10px;background:white;color:#33445b;outline:none}.page-filters input{min-width:200px}.tabs{display:flex;gap:15px;border-bottom:1px solid var(--line);margin-bottom:16px}.tab{border:0;background:none;padding:9px 3px;color:#778497;border-bottom:2px solid transparent}.tab.active{color:#235ed8;border-color:#2d6be9;font-weight:600}.task-filters{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 13px}.task-filters select{padding:8px 10px;border-radius:7px;background:white;border:1px solid var(--line);color:#536176}.modal-back{position:fixed;inset:0;background:#101b2b78;z-index:10;display:grid;place-items:center;padding:20px}.modal{width:min(650px,100%);max-height:90vh;overflow:auto;background:white;border-radius:12px;box-shadow:0 20px 70px #12223c38}.modal-head{padding:19px 22px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between}.modal-head h2{font:700 17px Manrope,sans-serif;margin:0}.modal-body{padding:20px 22px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.field{display:grid;gap:6px}.field.full{grid-column:1/-1}.field label{font-size:11px;color:#5a687a;font-weight:600}.field textarea{min-height:75px;resize:vertical}.modal-actions{display:flex;justify-content:flex-end;gap:8px;padding:15px 22px;border-top:1px solid var(--line)}.close{border:0;background:transparent;color:#758196;font-size:20px}.org-switch{display:flex;gap:7px;margin-bottom:17px}.org-pill{padding:7px 11px;border:1px solid var(--line);border-radius:20px;background:white;color:#6c788b;font-size:11px}.org-pill.active{color:#235ed8;background:#edf3ff;border-color:#bfd0ff}.toast{position:fixed;right:25px;bottom:25px;background:#152741;color:white;padding:12px 17px;border-radius:8px;box-shadow:0 8px 28px #17243838;z-index:20}.login-wrap{min-height:100vh;background:linear-gradient(135deg,#10213a,#1c3c65);display:grid;place-items:center;padding:20px}.login-card{width:min(450px,100%);background:white;border-radius:14px;padding:32px;box-shadow:0 24px 75px #09182d55}.login-card .brand{color:#1a2a40;padding:0 0 24px}.login-card h1{font:700 24px Manrope,sans-serif;margin:0}.login-card p{color:#7c899b;line-height:1.55;font-size:13px}.login-card .field{margin:15px 0}.login-card .button{width:100%;padding:11px}.demo-note{padding:10px;background:#f3f6fb;border-radius:7px;font-size:10px;color:#718096;margin-top:15px}.profile-menu{position:absolute;right:25px;top:62px;width:220px;background:white;border:1px solid var(--line);box-shadow:0 8px 24px #14223b20;border-radius:9px;padding:7px;z-index:5}.profile-menu button{display:block;width:100%;padding:10px;border:0;border-radius:6px;text-align:left;background:white;color:#405067}.profile-menu button:hover{background:#f3f6fa}.activity{font-size:11px;color:#5d6c80}.activity-row{display:flex;gap:10px;padding:10px 0;border-top:1px solid #eff2f5}.activity-row:first-child{border-top:0}.activity-icon{width:25px;height:25px;background:#edf3ff;color:#4273d8;display:grid;place-items:center;border-radius:50%;flex-shrink:0}.notif-panel{position:absolute;right:82px;top:62px;width:330px;background:white;border:1px solid var(--line);box-shadow:0 8px 24px #14223b20;border-radius:9px;padding:15px;z-index:5}.notif{padding:10px 0;border-top:1px solid #edf0f4;font-size:11px}.empty{padding:30px;text-align:center;color:#8793a4}.org-tag{color:#4e5c70;font-size:10px}.riskbox{display:flex;gap:10px;padding:11px;background:#fff8e9;border-radius:7px;margin-top:10px;font-size:11px}.riskbox.red{background:#fff0f0}.login-sub{font-size:12px!important;margin:7px 0 18px}
@media(max-width:1100px){.kpis{grid-template-columns:repeat(3,1fr)}.content{padding:24px}.topbar{padding:0 22px}}@media(max-width:760px){.sidebar{width:62px;padding:18px 7px}.brand{padding:0 7px 25px}.brand>div:nth-child(2),.nav-label,.nav-btn span:not(.nav-icon),.side-bottom{display:none}.brand-mark{width:38px}.nav-btn{justify-content:center;padding:11px 4px}.nav-icon{font-size:16px}.topbar{padding:0 12px;gap:7px}.profile-copy{display:none}.content{padding:20px 13px}.heading{gap:10px}.heading h1{font-size:21px}.kpis{grid-template-columns:repeat(2,1fr);gap:8px}.card{padding:13px}.dash-grid,.two-col{grid-template-columns:1fr}.search{max-width:none}.search input{font-size:11px}.page-filters{flex-wrap:wrap}.form-grid{grid-template-columns:1fr}.field.full{grid-column:auto}}
:root{--bg:#f2f4f7;--line:#e4e9ef}
.topbar{background:#fff}
.search input{background:#f6f8fb}
.card{box-shadow:0 1px 3px rgba(20,35,58,.035)}
.table-head{background:linear-gradient(180deg,#fff,#fcfdff)}
th{background:#f5f7fa}
.modal{background:#fff}
.owner-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.owner-chip{display:flex;flex-direction:column;gap:5px;padding:11px;border:1px solid #e7ebf1;border-radius:8px;background:#f8fafc}
.owner-org{font-size:10px;text-transform:uppercase;letter-spacing:.08em;color:#788599;font-weight:700}
.owner-chip b{font-size:12px;color:#25354c}
.owner-chip small{font-size:10px;color:#7c899b}
@media(max-width:760px){.owner-summary{grid-template-columns:1fr}}
.review-progress{display:flex;align-items:center;gap:7px;min-width:82px}.review-progress .track{height:6px;flex:1;min-width:45px}.review-progress small{width:27px;text-align:right;color:#738197;font-size:9px}.decision-actions{display:flex;gap:5px;margin-top:6px}.button.approve{border-color:#b8e5cd;color:#18754f;background:#effaf4}.button.decline{border-color:#f1c2c2;color:#b63e3e;background:#fff3f3}
.decision-actor{font-size:10px;color:#65738a;margin-top:5px;line-height:1.45}
.owner-select-list{display:grid;grid-template-columns:1fr;gap:8px}.owner-choice{display:flex;align-items:center;gap:10px;border:1px solid var(--line);border-radius:8px;padding:10px 12px;background:#fbfcfe;cursor:pointer}.owner-choice input{accent-color:var(--blue)}.owner-choice span{display:grid;gap:3px}.owner-choice b{font-size:12px;color:#33445b}.owner-choice small{font-size:10px;color:#7d899b}
.ai-card{max-width:900px;margin:0 auto;padding:24px}.ai-intro{display:flex;align-items:center;gap:13px}.ai-mark{width:42px;height:42px;display:grid;place-items:center;border-radius:12px;background:#edf3ff;color:#2864df;font-size:22px}.ai-form{display:flex;align-items:stretch;gap:10px;margin-top:20px}.ai-form textarea{flex:1;min-height:94px;resize:vertical;border:1px solid #dfe5ed;border-radius:9px;padding:13px 14px;background:#fbfcfe;color:var(--ink);outline:none}.ai-form textarea:focus{border-color:#83a5f5;box-shadow:0 0 0 3px #eaf0ff}.ai-form .button{align-self:flex-end}.ai-examples{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:15px}.ai-example{border:1px solid var(--line);border-radius:20px;padding:7px 10px;background:#fff;color:#506078;font-size:11px}.ai-example:hover{background:#f3f6fb}.ai-answer{max-width:900px;margin:16px auto 0;line-height:1.65}.ai-answer-text p{margin:8px 0}.ai-answer-text ul{padding-left:22px;margin:8px 0}.ai-answer-text li{margin:6px 0}.ai-disclaimer{max-width:900px;margin:12px auto 0}@media(max-width:760px){.ai-form{flex-direction:column}.ai-form .button{align-self:stretch}}
.icon-button:hover{background:#f2f5f9;border-radius:7px}.email-anchor{position:relative;display:flex;align-items:center}.email-icon-button{display:grid;place-items:center;width:35px;height:35px}.envelope-icon{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.email-attention{position:absolute;right:5px;top:5px;width:7px;height:7px;border:1px solid white;border-radius:50%;background:#e05252}.email-preferences-popover{position:absolute;right:-62px;top:calc(100% + 9px);z-index:8;width:min(330px,calc(100vw - 28px));padding:17px;background:#fff;border:1px solid var(--line);border-radius:10px;box-shadow:0 10px 30px #14223b24}.email-preferences-popover h3{font:700 15px Manrope,sans-serif;margin:0}.email-preferences-popover>p{margin:5px 0 13px;color:#778599;font-size:12px}.email-popover-status{display:flex;align-items:center;gap:8px;padding:10px;background:#f6f8fb;border-radius:7px;color:#526177;font-size:11px}.email-status-dot{width:7px;height:7px;background:#28a06c;border-radius:50%;flex-shrink:0}.email-manage-button{width:100%;margin:12px 0 0;font-size:12px}.email-unavailable-note{margin-top:11px;padding-top:10px;border-top:1px solid var(--line);color:#7f8b9e;font-size:10px;line-height:1.5}.email-settings-modal{width:min(790px,100%);display:flex;flex-direction:column}.email-settings-modal .modal-head{flex-shrink:0}.email-settings-modal .modal-body{overflow:auto}.email-unavailable-banner{padding:11px 13px;border:1px solid #f2ddb0;background:#fff8e9;color:#72551c;border-radius:8px;font-size:11px;line-height:1.5}.email-delivery-section{padding:16px 0;border-bottom:1px solid var(--line)}.email-delivery-section>.section-sub{margin-bottom:11px}.email-delivery-options{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin:11px 0 13px}.email-delivery-option{display:flex;align-items:center;gap:8px;padding:9px 10px;border:1px solid var(--line);border-radius:7px;color:#43536a;font-size:11px}.email-delivery-option input{accent-color:var(--blue)}.email-reminders{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:12px 0}.email-reminders label{display:grid;gap:5px;color:#58677b;font-size:10px;font-weight:600}.email-reminders select{padding:8px;border:1px solid #dfe5ed;border-radius:7px;background:#fff;color:#33445b;font-size:11px}.email-events-heading{display:flex;justify-content:space-between;align-items:end;gap:10px;padding:16px 0 11px}.email-bulk-actions{display:flex;gap:6px}.email-bulk-actions .button{white-space:nowrap}.email-event-grid{display:grid;grid-template-columns:1fr 1fr;gap:11px}.email-event-group{padding:12px 13px;border:1px solid var(--line);border-radius:8px;background:#fff}.email-event-group h4{margin:0 0 8px;color:#293950;font:700 12px Manrope,sans-serif}.email-event-row{position:relative;display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:35px;border-top:1px solid #f0f2f5;color:#59677a;font-size:10px;line-height:1.35}.email-event-row input{position:absolute;right:0;width:34px;height:20px;margin:0;opacity:0;z-index:1;cursor:pointer}.email-switch{position:relative;width:34px;height:20px;flex:0 0 34px;border-radius:12px;background:#c8d0dc;transition:background .15s}.email-switch:after{content:'';position:absolute;top:3px;left:3px;width:14px;height:14px;border-radius:50%;background:#fff;box-shadow:0 1px 2px #22334b30;transition:transform .15s}.email-event-row input:checked+.email-switch{background:#3272e8}.email-event-row input:checked+.email-switch:after{transform:translateX(14px)}.email-event-row input:focus-visible+.email-switch{outline:3px solid #cfe0ff}.email-modal-actions{flex-shrink:0;background:#fff}.email-modal-actions .button{min-width:110px}@media(max-width:760px){.email-preferences-popover{right:-48px}.email-settings-modal{max-height:94vh}.email-event-grid{grid-template-columns:1fr}.email-events-heading{align-items:flex-start;flex-direction:column}.email-reminders,.email-delivery-options{grid-template-columns:1fr}.email-modal-actions .button{min-width:0}.topbar .search{min-width:0}}
@media(max-width:920px) and (min-width:761px){.topbar{gap:10px;padding:0 18px}.profile-copy{display:none}}
.project-switcher{display:flex;align-items:center;justify-content:space-between;flex:0 0 auto;min-width:142px;height:36px;padding:3px;border:1px solid var(--line);border-radius:8px;background:#fff;box-shadow:0 1px 2px #17243808}.project-switch-arrow{display:grid;place-items:center;width:28px;height:28px;flex:0 0 28px;padding:0;border:0;border-radius:6px;background:transparent;color:#66758a;font-size:23px;line-height:1;transition:background .15s,color .15s,transform .15s}.project-switch-arrow:hover{background:#eef3ff;color:#245fd7;transform:scale(1.06)}.project-switch-arrow:focus-visible{outline:2px solid #84a8f7;outline-offset:1px}.project-switch-label{min-width:74px;padding:0 5px;text-align:center;color:#34445c;font-size:11px;font-weight:700;white-space:nowrap;animation:project-label-enter .2s ease-out}@keyframes project-label-enter{from{opacity:.35;transform:translateX(5px)}to{opacity:1;transform:translateX(0)}}@media(max-width:920px) and (min-width:761px){.project-switcher{min-width:134px}.project-switch-label{min-width:66px}}@media(max-width:760px){.project-switcher{min-width:116px;height:34px}.project-switch-arrow{width:24px;height:26px;flex-basis:24px}.project-switch-label{min-width:58px;padding:0 2px;font-size:10px}}
.dashboard-actions{display:flex;align-items:center;gap:9px}.dashboard-actions>.project-switcher,.dashboard-actions>.dashboard-create-task{width:150px;height:38px;flex:0 0 150px}.dashboard-actions>.project-switcher{min-width:150px;padding:3px}.dashboard-actions>.dashboard-create-task{display:inline-flex;align-items:center;justify-content:center;padding:0;white-space:nowrap}.dashboard-actions .project-switch-label{flex:1;min-width:0}.dashboard-actions .project-switch-arrow{flex:0 0 28px}@media(max-width:760px){.dashboard-actions{gap:7px;flex-wrap:wrap;justify-content:flex-end}.dashboard-actions>.project-switcher,.dashboard-actions>.dashboard-create-task{width:145px;height:38px;flex-basis:145px}.dashboard-actions>.project-switcher{min-width:145px}.dashboard-actions .project-switch-arrow{flex-basis:24px}}
.global-search-wrap{position:relative;flex:1;max-width:570px;min-width:180px}.topbar .search{display:flex;align-items:center;gap:2px;width:100%;max-width:570px;padding:3px;border:1px solid var(--line);border-radius:9px;background:#f8fafc;transition:border-color .15s,box-shadow .15s}.topbar .search:focus-within{border-color:#a9bff3;box-shadow:0 0 0 3px #eaf0ff}.topbar .search:before{content:none}.topbar .search input.global-search-input{flex:1;min-width:0;width:auto;border:0;background:transparent;border-radius:6px;padding:9px 10px;outline:none;color:#33445b}.header-search-icon,.header-ask-ai{display:grid;place-items:center;flex:0 0 34px;width:34px;height:34px;padding:0;border:0;border-radius:7px;background:transparent;color:#65758b;transition:background .15s,color .15s,transform .15s}.header-search-icon:hover,.header-ask-ai:hover{background:#eaf0ff;color:#245fd7}.header-search-icon:active,.header-ask-ai:active{transform:scale(.93)}.header-search-icon svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.header-ask-ai{color:#3269d8;font-size:18px}.global-search-results{position:absolute;top:calc(100% + 7px);left:0;right:0;z-index:9;max-height:min(65vh,520px);overflow:auto;background:#fff;border:1px solid var(--line);border-radius:10px;box-shadow:0 12px 32px #14223b26;padding:6px}.global-search-result{display:flex;align-items:center;gap:10px;width:100%;padding:10px;border:0;border-radius:7px;background:#fff;text-align:left;color:#33445b}.global-search-result:hover,.global-search-result:focus-visible{background:#f3f6fb;outline:none}.global-result-type{flex:0 0 84px;color:#62748d;font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.04em}.global-result-copy{display:grid;gap:3px;min-width:0;flex:1}.global-result-copy b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}.global-result-copy small{color:#8491a3;font-size:10px}.global-result-arrow{color:#9aa6b6;font-size:20px}.global-search-empty{padding:20px 12px;color:#788599;text-align:center;font-size:12px}.global-search-footer{padding:8px 10px 5px;border-top:1px solid #edf0f4;color:#8b97a7;font-size:10px}.topbar{gap:16px}@media(max-width:920px) and (min-width:761px){.global-search-wrap{min-width:150px;max-width:570px}.topbar{gap:10px;padding:0 18px}}@media(max-width:760px){.global-search-wrap{min-width:0}.topbar .search input.global-search-input{padding:8px 6px;font-size:11px}.header-search-icon,.header-ask-ai{flex-basis:29px;width:29px;height:30px}.header-search-icon svg{width:16px;height:16px}.global-result-type{flex-basis:72px}}
.global-search-wrap{flex:0 1 570px}
.sidebar{transition:width .22s ease,padding .22s ease}.sidebar-nav-heading{display:flex;align-items:center;justify-content:space-between;min-height:36px}.sidebar-nav-heading .nav-label{padding-right:7px}.sidebar-collapse{display:grid;place-items:center;width:28px;height:28px;flex:0 0 28px;border:0;border-radius:7px;background:transparent;color:#b9c8db;font-size:22px;line-height:1;transition:background .15s,color .15s}.sidebar-collapse:hover{background:#304d73;color:white}.sidebar-collapse:focus-visible{outline:2px solid #a9c1e2;outline-offset:1px}.sidebar-collapsed .sidebar{width:72px;padding:20px 8px}.sidebar-collapsed .brand{padding:0 0 18px}.sidebar-collapsed .brand-logo,.sidebar-collapsed .nav-label,.sidebar-collapsed .nav-btn span:not(.nav-icon),.sidebar-collapsed .side-bottom{display:none}.sidebar-collapsed .sidebar-nav-heading{justify-content:center;margin-bottom:5px}.sidebar-collapsed .sidebar-collapse{color:#d4deeb}.sidebar-collapsed .nav-btn{justify-content:center;padding:11px 4px}.sidebar-collapsed .nav-icon{width:auto;font-size:18px}@media(max-width:760px){.sidebar-collapse{display:none}.sidebar-nav-heading{justify-content:center}}


/* Rwanda Green visual theme: shared tokens and component overrides. */
:root{--navy:#172b4d;--navy2:#047857;--blue:#3b82f6;--ink:#172b4d;--muted:#64748b;--line:#e2e8f0;--bg:#f8fafc;--green:#10b981;--amber:#f59e0b;--red:#ef4444;--purple:#7553bd;--surface-green:#ecfdf5;--border-green:#d1fae5}
body{background:var(--bg);color:var(--ink)}
.sidebar{background:#fff;color:var(--ink);border-right:1px solid var(--line);box-shadow:none}
.sidebar .brand-logo{background:#fff}
.sidebar .nav-label{color:#94a3b8}
.sidebar .nav-btn{color:#475569;transition:background .16s,color .16s,transform .16s}
.sidebar .nav-btn:hover{background:#f6fdf9;color:#047857}
.sidebar .nav-btn.active{background:#ecfdf5;color:#047857;box-shadow:inset 3px 0 #10b981}
.sidebar .nav-icon{color:#10b981}
.sidebar .nav-btn.active .nav-icon{color:#047857}
.sidebar .side-bottom{border-color:var(--line);color:#64748b}
.sidebar-collapse{color:#64748b}
.sidebar-collapse:hover{background:#ecfdf5;color:#047857}
.sidebar-collapse:focus-visible{outline-color:#6ee7b7}
.topbar{background:#fff;border-bottom-color:var(--line)}
.search input,.topbar .search{background:#f8fafc}
.topbar .search:focus-within{border-color:#6ee7b7;box-shadow:0 0 0 3px #ecfdf5}
.header-search-icon:hover,.header-ask-ai:hover,.icon-button:hover{background:#ecfdf5;color:#047857}
.icon-button{color:#475569}
.avatar{background:#ecfdf5;color:#047857}
.heading h1,.section-title,.modal-head h2{color:#172b4d}
.eyebrow{color:#64748b}
.button{border-color:#dbe3eb;color:#334155;transition:background .16s,color .16s,border-color .16s,box-shadow .16s,transform .16s}
.button:hover{filter:none;background:#f8fafc;border-color:#cbd5e1}
.button.primary{background:#10b981;border-color:#10b981;color:#fff;box-shadow:0 1px 2px #04785726}
.button.primary:hover{background:#059669;border-color:#059669;box-shadow:0 2px 6px #04785730}
.button:focus-visible,.icon-button:focus-visible,.nav-btn:focus-visible,.tab:focus-visible{outline:3px solid #a7f3d0;outline-offset:2px}
.card{border-color:#e2e8f0;border-radius:12px;box-shadow:0 1px 3px rgba(23,43,77,.035)}
.card:hover{border-color:#d8e9e1}
.kpi-label{color:#64748b}.kpi-foot{color:#94a3b8}
.kpi-icon{background:#ecfdf5;color:#047857}
.chart-bars .bar{background:#10b981}.chart-bars .bar.secondary{background:#6ee7b7}.chart-bars .bar.alt{background:#3b82f6}
.legend span:before{background:#10b981}.legend span:nth-child(2):before{background:#6ee7b7}.legend span:nth-child(3):before{background:#3b82f6}
.track{background:#f1f5f9}.fill{background:#10b981}
.table-head{background:#fff}
th{background:#f8fafc;color:#64748b}
td{border-top-color:#eef2f6;color:#475569}
tr:hover td{background:#f6fdf9}
.strong{color:#172b4d}.muted{color:#64748b}
.badge.green{background:#d1fae5;color:#047857}.badge.amber{background:#fef3c7;color:#92400e}.badge.red{background:#fee2e2;color:#b91c1c}.badge.blue{background:#dbeafe;color:#1d4ed8}.badge.purple{background:#ede9fe;color:#6d28d9}
.task-item,.attention-row,.activity-row{border-color:#eef2f6}
.task-title{color:#172b4d}.task-meta{color:#64748b}
.check{border-color:#aab8c8}
.activity-icon{background:#ecfdf5;color:#047857}
.page-filters select,.page-filters input,.field input,.field select,.field textarea,.task-filters select,.email-reminders select{border-color:#dbe3eb;color:#334155}
.page-filters select:focus,.page-filters input:focus,.field input:focus,.field select:focus,.field textarea:focus,.task-filters select:focus{border-color:#6ee7b7;box-shadow:0 0 0 3px #ecfdf5}
.tabs{border-color:var(--line)}.tab.active{color:#047857;border-color:#10b981}
.modal{border:1px solid #e2e8f0;box-shadow:0 20px 70px rgba(23,43,77,.18)}
.modal-back{background:rgba(23,43,77,.38)}
.modal-head,.modal-actions{border-color:#e2e8f0}
.modal-actions{background:#fff}
.field label{color:#475569}
.org-pill.active{color:#047857;background:#ecfdf5;border-color:#a7f3d0}
.profile-menu,.notif-panel,.email-preferences-popover,.global-search-results{border-color:#e2e8f0;box-shadow:0 10px 30px rgba(23,43,77,.12)}
.profile-menu button:hover,.global-search-result:hover,.global-search-result:focus-visible{background:#f6fdf9}
.email-popover-status{background:#f6fdf9}.email-status-dot{background:#10b981}
.email-event-row input:checked+.email-switch{background:#10b981}
.email-event-row input:focus-visible+.email-switch{outline-color:#a7f3d0}
.login-wrap{background:#f6fdf9}
.login-card{border:1px solid #e2e8f0;box-shadow:0 18px 55px rgba(23,43,77,.10)}
.login-card .brand{color:#172b4d}
.demo-note{background:#f6fdf9;color:#64748b}
.toast{background:#047857}
.riskbox{background:#fffbeb;border:1px solid #fde68a}.riskbox.red{background:#fef2f2;border-color:#fecaca}
@media(max-width:760px){.sidebar{border-right-color:var(--line)}.card:hover{border-color:#e2e8f0}}
.table-export-actions{display:flex;align-items:center;gap:6px;flex-shrink:0}.table-export-icon{display:flex;align-items:center;gap:5px;padding:6px 8px;border:1px solid #e2e8f0;border-radius:7px;background:#fff;color:#64748b;font-size:10px;font-weight:700;transition:background .15s,color .15s,border-color .15s}.table-export-icon svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.table-export-icon:hover{background:#ecfdf5;border-color:#a7f3d0;color:#047857}.table-export-icon:focus-visible{outline:3px solid #a7f3d0;outline-offset:2px}@media(max-width:520px){.table-export-icon{padding:6px}.table-export-icon span{display:none}.table-head{gap:8px}}


/* Cohesive modal and popup system */
.modal-back{padding:24px;background:rgba(23,43,77,.30);backdrop-filter:blur(2px);-webkit-backdrop-filter:blur(2px)}
.modal{display:flex;flex-direction:column;width:min(720px,calc(100vw - 40px));max-height:min(88vh,900px);min-height:0;overflow:hidden;border:0;border-radius:18px;background:#fff;box-shadow:0 24px 80px rgba(15,35,60,.22);animation:modal-enter .16s ease-out}
@keyframes modal-enter{from{opacity:0;transform:translateY(6px) scale(.99)}to{opacity:1;transform:translateY(0) scale(1)}}
.modal-head{position:sticky;top:0;z-index:2;flex:0 0 auto;align-items:flex-start;gap:16px;padding:23px 28px 18px;background:#fff;border-bottom:1px solid #edf1f5}
.modal-head h2{font-size:19px;letter-spacing:-.02em}
.modal-head .eyebrow{margin-bottom:6px;color:#047857;font-size:10px;letter-spacing:.09em}
.modal-subtitle{margin:6px 0 0;color:#64748b;font-size:12px;line-height:1.45}
.close{display:grid;place-items:center;width:34px;height:34px;flex:0 0 34px;margin:-4px -7px 0 0;border:0;border-radius:9px;background:transparent;color:#64748b;font-size:22px;transition:background .15s,color .15s}
.close:hover{background:#f1f5f9;color:#172b4d}.close:focus-visible{outline:3px solid #a7f3d0;outline-offset:1px}
.modal-body{flex:1 1 auto;min-height:0;overflow:auto;overscroll-behavior:contain;padding:23px 28px}
.modal>form{display:flex;flex:1 1 auto;flex-direction:column;min-height:0;overflow:hidden}
.modal>form>.modal-body{flex:1 1 auto;min-height:0;overflow:auto;overscroll-behavior:contain}
.modal-actions{position:sticky;bottom:0;z-index:2;flex:0 0 auto;justify-content:flex-end;align-items:center;gap:10px;padding:14px 28px;background:#fff;border-top:1px solid #edf1f5;box-shadow:0 -5px 14px rgba(23,43,77,.025)}
.modal-actions .button{min-height:42px;padding:9px 16px;border-radius:9px}
.form-grid{gap:16px}
.field{gap:7px;min-width:0}.field label{font-size:12px;font-weight:600;color:#334155}
.field input,.field select,.field textarea,.page-filters input,.page-filters select{min-height:46px;border:1px solid #dbe3eb;border-radius:10px;padding:10px 12px;background:#fff;color:#172b4d;transition:border-color .15s,box-shadow .15s}
.field textarea{min-height:96px;line-height:1.5}.field select[multiple]{min-height:112px}
.field input:focus,.field select:focus,.field textarea:focus{border-color:#34d399;box-shadow:0 0 0 3px rgba(16,185,129,.12);outline:0}
.task-form-sections{display:grid;grid-template-columns:1fr;gap:19px}
.form-section{display:grid;gap:12px;padding-bottom:17px;border-bottom:1px solid #edf1f5}
.form-section:last-child{padding-bottom:0;border-bottom:0}
.form-section h3{margin:0;color:#172b4d;font:700 12px Manrope,sans-serif;letter-spacing:.01em}
.form-section .form-grid{gap:15px}
.org-chip-group{display:flex;flex-wrap:wrap;gap:8px}
.org-chip{min-width:74px;padding:9px 15px;border:1px solid #dbe3eb;border-radius:10px;background:#fff;color:#475569;font-size:12px;font-weight:700;transition:background .15s,color .15s,border-color .15s,box-shadow .15s}
.org-chip:hover{border-color:#a7f3d0;background:#f6fdf9;color:#047857}
.org-chip.selected{border-color:#a7f3d0;background:#ecfdf5;color:#047857;box-shadow:inset 0 0 0 1px rgba(16,185,129,.08)}
.org-chip:focus-visible{outline:3px solid #a7f3d0;outline-offset:2px}
.task-org-source{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important;opacity:0!important;pointer-events:none!important}
.profile-menu,.notif-panel,.email-preferences-popover{max-height:min(72vh,560px);overflow:auto;border:1px solid #e5eaf0;border-radius:14px;background:#fff;box-shadow:0 16px 42px rgba(23,43,77,.16);animation:modal-enter .14s ease-out}
.profile-menu button{min-height:40px;border-radius:8px}.notif-panel{padding:18px}.email-preferences-popover{padding:18px}
#task-modal .modal{width:min(760px,calc(100vw - 40px))}
#procurement-modal .modal{width:min(760px,calc(100vw - 40px))}
#document-modal .modal{width:min(800px,calc(100vw - 40px))}
#decision-modal .modal{width:min(720px,calc(100vw - 40px))}
#decision-discussion .modal{width:min(680px,calc(100vw - 40px))}
#task-detail .modal{width:min(700px,calc(100vw - 40px))}
#proc-detail .modal{width:min(820px,calc(100vw - 40px))}
.email-settings-modal{width:min(900px,calc(100vw - 40px));max-height:min(90vh,960px);border-radius:18px}
.email-settings-modal .modal-body{flex:1;min-height:0}
body.modal-open{overflow:hidden}
@media(max-width:640px){.modal-back{padding:10px}.modal,#task-modal .modal,#procurement-modal .modal,#document-modal .modal,#decision-modal .modal,#decision-discussion .modal,#task-detail .modal,#proc-detail .modal,.email-settings-modal{width:calc(100vw - 20px);max-height:calc(100dvh - 20px);border-radius:15px}.modal-head{padding:18px 18px 14px}.modal-body,.modal>form>.modal-body{padding:18px}.modal-actions{padding:12px 18px}.form-grid,.form-section .form-grid{grid-template-columns:1fr;gap:13px}.field.full{grid-column:auto}.task-form-sections{gap:15px}.modal-actions .button{min-height:42px}.email-settings-modal .modal-actions{padding:12px 14px}}
@media(prefers-reduced-motion:reduce){.modal,.profile-menu,.notif-panel,.email-preferences-popover{animation:none!important}.org-chip,.close,.button{transition:none!important}}
.bell-icon{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;transform-origin:50% 18%;overflow:visible}.icon-button:hover .bell-icon{animation:bell-ring .72s ease-in-out 1}.email-icon-button:hover .envelope-flap{animation:envelope-open-close .72s ease-in-out 1;transform-box:fill-box;transform-origin:50% 0}.bell-icon .bell-clapper{transform-origin:50% 0}.envelope-icon{overflow:visible}@keyframes bell-ring{0%,100%{transform:rotate(0)}14%{transform:rotate(17deg)}28%{transform:rotate(-15deg)}42%{transform:rotate(12deg)}56%{transform:rotate(-9deg)}70%{transform:rotate(5deg)}84%{transform:rotate(-2deg)}}@keyframes envelope-open-close{0%,100%{transform:rotateX(0)}35%,65%{transform:rotateX(180deg)}}@media(prefers-reduced-motion:reduce){.icon-button:hover .bell-icon,.email-icon-button:hover .envelope-flap{animation:none!important}}

/* Use identical header and row geometry in both sidebar states. */
.sidebar .brand{height:152px;min-height:152px;flex:0 0 152px;align-items:flex-start;overflow:hidden}
.sidebar .sidebar-nav-heading{height:36px;min-height:36px;flex:0 0 36px;margin:0}
.sidebar .nav-btn{height:36px;min-height:36px;flex:0 0 36px;box-sizing:border-box;margin:2px 0;padding:0 12px}
.sidebar .nav-icon{font-size:18px;line-height:20px}
.sidebar-collapsed .sidebar{padding-top:24px}
.sidebar-collapsed .brand{padding:0 0 25px;justify-content:center}
.sidebar-collapsed .brand-logo{display:block;width:56px;max-width:56px;height:56px;object-fit:cover;object-position:8% center;transform:none}
.sidebar-collapsed .sidebar-nav-heading{justify-content:center;margin:0}
.sidebar-collapsed .nav-btn{padding:0 4px}

/* Shared type system: Geist for hierarchy, Inter for interface text. */
:root{--font-heading:'Geist',Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;--font-body:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}
body,button,input,select,textarea{font-family:var(--font-body)}
.nav-btn,.nav-label,.topbar,.profile,.profile-menu,.notif-panel,.email-preferences-popover,.table-wrap,table,.field,.page-filters,.task-filters,.tabs,.button,.badge,.modal-body,.modal-actions,.login-card p,.demo-note,.global-search-results,.ai-response{font-family:var(--font-body)}
.heading h1,.login-card h1,.modal-head h2,.section-title,.kpi-value,.form-section h3,.email-preferences-popover h3,.email-event-group h4{font-family:var(--font-heading)}
.heading h1{font-weight:700;line-height:1.2;letter-spacing:-.035em}
.section-title{font-weight:650;line-height:1.3;letter-spacing:-.015em}
.kpi-value{font-weight:700;line-height:1.1;letter-spacing:-.035em;font-variant-numeric:tabular-nums}
.modal-head h2,.login-card h1{font-weight:700;line-height:1.25;letter-spacing:-.025em}
.form-section h3{font-weight:650;line-height:1.35}
.email-preferences-popover h3,.email-event-group h4{font-weight:650;line-height:1.35}
.table-wrap table{font-size:12px}
.table-wrap th{font-size:10px;line-height:1.4}
.field label{font-family:var(--font-body);line-height:1.4}
.nav-btn{font-weight:550;letter-spacing:.005em}
.nav-icon{transition:transform .18s ease,color .18s ease;transform-origin:center}
.nav-btn:hover .nav-icon{animation:sidebar-icon-pop .32s ease-out}
.nav-icon svg{display:block;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
@keyframes sidebar-icon-pop{0%,100%{transform:translateY(0) scale(1)}45%{transform:translateY(-2px) scale(1.12)}}
@media(prefers-reduced-motion:reduce){.nav-icon{transition:none}.nav-btn:hover .nav-icon{animation:none}}

/* Smooth the collapse/expand while preserving the shared vertical rhythm. */
.sidebar{transition:width .65s cubic-bezier(.2,.75,.25,1),padding .65s cubic-bezier(.2,.75,.25,1)}
.sidebar .brand-logo{transition:width .65s cubic-bezier(.2,.75,.25,1)}
.sidebar .nav-btn{transition:background .18s ease,color .18s ease,padding .65s cubic-bezier(.2,.75,.25,1),gap .65s cubic-bezier(.2,.75,.25,1)}
.sidebar .nav-icon{transition:transform .25s ease,color .18s ease}
.sidebar .sidebar-collapse{transition:background .18s ease,color .18s ease,transform .65s cubic-bezier(.2,.75,.25,1)}
@media(prefers-reduced-motion:reduce){.sidebar,.sidebar .brand-logo,.sidebar .nav-btn,.sidebar .nav-icon,.sidebar .sidebar-collapse{transition:none!important}}

/* Header settings menu and demo account controls. */
.settings-anchor{position:relative;display:flex;align-items:center}
.settings-icon-button{display:grid;place-items:center;width:35px;height:35px}
.settings-icon{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;transition:transform .7s cubic-bezier(.2,.75,.25,1)}
.settings-icon-button:hover .settings-icon{transform:rotate(90deg)}
.settings-popover{position:absolute;right:-48px;top:calc(100% + 9px);z-index:8;width:min(320px,calc(100vw - 24px));padding:14px;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 14px 38px #172b4d24;animation:modal-enter .14s ease-out}
.settings-popover-head{padding:2px 3px 12px}
.settings-popover-head h3{margin:0;color:#172b4d;font:650 16px var(--font-heading),sans-serif}
.settings-popover-head p{margin:4px 0 0;color:#64748b;font-size:11px}
.settings-option{display:flex;align-items:center;gap:11px;width:100%;padding:11px 9px;border:0;border-top:1px solid #eef2f6;background:#fff;text-align:left;color:#334155;border-radius:7px;transition:background .15s,color .15s}
.settings-option:hover,.settings-option:focus-visible{background:#f6fdf9;color:#047857;outline:none}
.settings-option-icon{display:grid;place-items:center;width:32px;height:32px;flex:0 0 32px;border-radius:9px;background:#ecfdf5;color:#047857;font-size:17px}
.settings-option-copy{display:grid;gap:3px;min-width:0;flex:1}
.settings-option-copy b{font-size:12px;font-weight:650}
.settings-option-copy small{font-size:10px;color:#64748b}
.settings-option-arrow{color:#94a3b8;font-size:20px}
.settings-demo-note{margin-top:8px;padding:10px 4px 2px;border-top:1px solid #eef2f6;color:#8491a3;font-size:10px;line-height:1.45}
.account-settings-modal{width:min(560px,calc(100vw - 40px))}
.account-demo-warning{padding:12px 14px;border:1px solid #f2ddb0;border-radius:9px;background:#fff8e9;color:#72551c;font-size:12px;line-height:1.5}
.account-password-form{display:grid;gap:15px;margin-top:20px}
.account-password-form .section-title{margin-bottom:1px}
.account-password-form .field input{min-height:44px}
.account-password-form .modal-actions{margin-top:4px}
@media(max-width:640px){.settings-popover{right:-44px}.account-settings-modal{width:calc(100vw - 20px)}}
@media(prefers-reduced-motion:reduce){.settings-icon-button:hover .settings-icon{transform:none}.settings-icon{transition:none}.settings-popover{animation:none}}

/* Compact, animated account control alongside the header utilities. */
.topbar>.icon-button,.topbar>.settings-anchor,.topbar>.profile{margin-left:-10px}
.topbar>.profile.profile-icon-button{display:grid;place-items:center;width:35px;height:35px;padding:7px;flex:0 0 35px;border-radius:8px}
.profile-person-icon{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;overflow:visible}
.profile-head{transform-box:view-box;transform-origin:50% 90%}
.profile-icon-button:hover .profile-head{animation:profile-nod .78s cubic-bezier(.25,.8,.3,1) 1}
@keyframes profile-nod{0%,100%{transform:translateY(0)}28%{transform:translateY(3.2px)}52%{transform:translateY(-.8px)}74%{transform:translateY(1.3px)}}
@media(prefers-reduced-motion:reduce){.profile-icon-button:hover .profile-head{animation:none!important}}

/* Notification items show unread state and act as direct links to records. */
.notif-panel{padding:10px}.notif{display:flex;align-items:flex-start;gap:10px;width:100%;padding:12px 9px;border:0;border-top:1px solid #edf0f4;border-radius:8px;text-align:left;color:#334155;background:#fff;cursor:pointer;transition:background .15s ease,color .15s ease}.notif:hover{background:#f6fdf9;color:#172b4d}.notif.is-unread{background:#f1fbf6;color:#172b4d}.notif.is-read{background:#fff;color:#64748b}.notif-indicator{width:7px;height:7px;flex:0 0 7px;margin-top:4px;border-radius:50%;background:transparent}.notif.is-unread .notif-indicator{background:#10b981;box-shadow:0 0 0 3px #d1fae5}.notif-copy{min-width:0;flex:1;font-size:11px;line-height:1.45}.notif-when{display:block;margin-top:5px;font-size:10px}.notif-open-mark{color:#047857;font-size:14px;line-height:1}.notification-target-highlight td{background:#ecfdf5!important;transition:background .25s ease}
.notif:focus-visible{outline:3px solid #a7f3d0;outline-offset:1px}
.notif-when{font-size:9px}

.notif-panel .notif:first-child{border-top:0}
/* Subtle translucency for the three header dropdown panels. */
.profile-menu,.notif-panel,.settings-popover{background:rgba(255,255,255,.72);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}
.notif.is-unread{background:rgba(236,253,245,.62);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
.notif.is-read{background:rgba(255,255,255,.34);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
.notif:hover{background:rgba(236,253,245,.78)}
/* Slow leftward collapse: the sidebar edge and navigation contents move smoothly. */
.sidebar{transition:width .95s cubic-bezier(.22,.75,.18,1),padding .95s cubic-bezier(.22,.75,.18,1)}
.sidebar .nav-btn{transition:transform .95s cubic-bezier(.22,.75,.18,1),padding .95s cubic-bezier(.22,.75,.18,1),background-color .15s,color .15s}
.sidebar-collapsed .nav-btn{transform:translateX(-5px)}
/* Keep workspace and section labels in their authored title casing. */
.eyebrow{text-transform:none}
/* Keep the sticky header, with a glass effect in its open whitespace. */
.topbar{background:rgba(255,255,255,.24);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);border-bottom-color:rgba(226,232,240,.36)}
.topbar>.icon-button,.topbar>.settings-anchor>.icon-button{background:transparent}
/* Keep workspace navigation in view while the main area scrolls. */
.sidebar{position:sticky;top:0;align-self:flex-start;height:100vh;overflow-y:auto;overscroll-behavior:contain}
/* Popover pointers visually anchor each header panel to its trigger icon. */
.profile-menu,.notif-panel,.settings-popover{--popover-glass:rgba(255,255,255,.72)}
.profile-menu::before,.notif-panel::before,.settings-popover::before{content:"";position:absolute;top:-6px;width:11px;height:11px;transform:rotate(45deg);background:var(--popover-glass);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);border-top:1px solid rgba(226,232,240,.75);border-left:1px solid rgba(226,232,240,.75);z-index:1}
.profile-menu::before{right:24px}
.notif-panel::before{right:43px}
.settings-popover::before{right:63px}
/* Let the pointer escape the scroll clipping on notifications and profile. */
.profile-menu,.notif-panel{overflow:visible}
.profile-menu::before,.notif-panel::before,.settings-popover::before{top:-9px;width:16.5px;height:16.5px}
.profile-menu::before{right:18px}
.notif-panel::before{right:82px}
.settings-popover::before{right:57px}

/* A soft upper shadow separates the glass dropdowns from the sticky header. */
.profile-menu,.notif-panel,.settings-popover{box-shadow:0 0 29px rgba(23,43,77,.18)}
/* Compact search at rest; smoothly restore its full width on hover or focus. */
.global-search-wrap{flex:0 1 399px;max-width:570px;transition:flex-basis .38s cubic-bezier(.22,.75,.18,1)}
.global-search-wrap:hover,.global-search-wrap:focus-within{flex-basis:570px}
@media(prefers-reduced-motion:reduce){.global-search-wrap{transition:none}}
/* Balance the global project selector between search and the right icon group. */
.topbar .top-spacer{flex:1 1 0;min-width:0}
.topbar .header-actions{display:flex;align-items:center;gap:5px;flex:0 0 auto}
.topbar .header-actions .icon-button{margin:0;background:transparent}
.topbar .header-actions .profile.profile-icon-button{display:grid;place-items:center;width:35px;height:35px;padding:7px;flex:0 0 35px}
.topbar>.icon-button,.topbar>.settings-anchor,.topbar>.profile{margin-left:0}
:root{--search-placeholder-color:#8793a4}
.global-search-input::placeholder{color:var(--search-placeholder-color);opacity:1}
.topbar .topbar-project-switcher .project-switch-label{color:var(--search-placeholder-color)}

/* Searchable global project picker */
.project-picker-anchor{position:relative;z-index:12;flex:0 1 270px;min-width:0;max-width:330px;display:flex;justify-content:center}
.project-picker-trigger{height:43px;width:100%;min-width:0;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 13px;border:1px solid var(--line);border-radius:11px;background:#f8fafc;color:var(--search-placeholder-color);font-family:inherit;font-size:14px;font-weight:400;line-height:1.2;box-shadow:0 1px 2px rgba(15,23,42,.035);cursor:pointer;transition:border-color .18s ease,background .18s ease,box-shadow .18s ease}
.project-picker-trigger:hover,.project-picker-trigger[aria-expanded="true"]{border-color:#a7e5ca;background:#f6fdf9;box-shadow:0 0 0 3px rgba(16,185,129,.08)}
.project-picker-trigger:focus-visible{outline:0;border-color:#10b981;box-shadow:0 0 0 3px rgba(16,185,129,.18)}
.project-picker-trigger-label{color:var(--search-placeholder-color);font-family:var(--font-body);font-size:14px;font-weight:400;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left}
.project-picker-trigger svg{width:16px;height:16px;flex:0 0 16px;fill:none;stroke:#64748b;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;transition:transform .18s ease}
.project-picker-trigger[aria-expanded="true"] svg{transform:rotate(180deg)}
.project-picker-panel{position:absolute;top:calc(100% + 10px);left:50%;transform:translateX(-50%);width:min(370px,calc(100vw - 32px));max-height:min(540px,calc(100vh - 100px));overflow:hidden;display:flex;flex-direction:column;padding:16px 12px 10px;background:rgba(255,255,255,.97);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border:1px solid #e2e8f0;border-radius:15px;box-shadow:0 16px 42px rgba(23,43,77,.16),0 3px 9px rgba(23,43,77,.06);z-index:20;animation:projectPickerIn .16s ease-out}
@keyframes projectPickerIn{from{opacity:0;transform:translate(-50%,-5px)}to{opacity:1;transform:translate(-50%,0)}}
.project-picker-panel h3{margin:0 8px 12px;color:#172b4d;font-size:15px;line-height:1.35;font-weight:650}
.project-picker-search{height:40px;flex:0 0 40px;display:flex;align-items:center;gap:9px;padding:0 10px;border:1px solid #e2e8f0;border-radius:9px;background:#f8fafc;color:#64748b}
.project-picker-search:focus-within{border-color:#34d399;background:#fff;box-shadow:0 0 0 3px rgba(16,185,129,.12)}
.project-picker-search>svg{width:17px;height:17px;flex:0 0 17px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round}
.project-picker-search input{width:100%;min-width:0;border:0;outline:0;background:transparent;color:#172b4d;font:inherit;font-size:13px}
.project-picker-search input::placeholder{color:#94a3b8}
.project-picker-clear{width:23px;height:23px;flex:0 0 23px;display:grid;place-items:center;border:0;border-radius:6px;background:transparent;color:#64748b;font-size:18px;cursor:pointer}
.project-picker-clear:hover{background:#e2e8f0;color:#172b4d}
.project-picker-section-label{padding:13px 8px 6px;color:#64748b;font-size:10px;font-weight:700;letter-spacing:.07em;text-transform:uppercase}
.project-picker-option{width:100%;min-height:58px;display:flex;align-items:center;gap:10px;padding:8px;border:0;border-radius:10px;background:transparent;text-align:left;color:#172b4d;cursor:pointer;transition:background .14s ease}
.project-picker-option:hover{background:#f1f5f9}
.project-picker-option:focus-visible{outline:2px solid #34d399;outline-offset:1px}
.project-picker-option.selected{background:#ecfdf5;color:#047857}
.project-picker-monogram{width:34px;height:34px;flex:0 0 34px;display:grid;place-items:center;border:1px solid #d1fae5;border-radius:50%;background:#f6fdf9;color:#047857;font-size:10px;font-weight:700;letter-spacing:-.02em}
.all-projects-monogram{font-size:15px}
.project-picker-copy{min-width:0;flex:1;display:flex;flex-direction:column;gap:4px}
.project-picker-copy b{min-width:0;display:flex;align-items:baseline;gap:7px;font-size:12px;font-weight:650;line-height:1.3}
.project-picker-copy b>span:first-child{flex:0 0 auto;color:#047857}
.project-picker-copy .project-picker-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#172b4d;font-weight:550}
.project-picker-copy small{overflow:hidden;color:#64748b;font-size:10px;line-height:1.25;text-overflow:ellipsis;white-space:nowrap}
.project-picker-check{width:18px;flex:0 0 18px;color:#059669;font-size:16px;font-weight:700;text-align:center}
.project-picker-list{min-height:0;overflow-y:auto;padding:0 2px 3px;overscroll-behavior:contain}
.project-picker-empty{padding:18px 10px;color:#64748b;font-size:13px;text-align:center}
@media(max-width:900px){.project-picker-anchor{flex-basis:210px}.project-picker-trigger{padding:0 10px;font-size:12px}}
@media(max-width:760px){.project-picker-anchor{flex:0 1 150px;max-width:165px}.project-picker-trigger{height:38px;padding:0 8px;gap:5px;font-size:11px}.project-picker-panel{left:auto;right:0;transform:none;width:min(350px,calc(100vw - 24px));max-height:calc(100vh - 86px)}@keyframes projectPickerIn{from{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}}

.project-card-identity{display:flex;align-items:center;gap:11px}
.project-card-icon{width:40px;height:40px;flex:0 0 40px;display:grid;place-items:center;border:1px solid #d1fae5;border-radius:12px;background:#ecfdf5;color:#047857}
.project-card-icon svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}
.project-picker-monogram svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.55;stroke-linecap:round;stroke-linejoin:round}

/* Compact add actions expand to their full label on hover or keyboard focus. */
.add-action-button{box-sizing:border-box;width:42px;min-width:42px;height:42px;flex:0 0 42px;display:inline-flex;align-items:center;justify-content:flex-start;gap:0;padding:0 11px;overflow:hidden;white-space:nowrap;border-radius:12px;transition:width .34s cubic-bezier(.22,.75,.25,1),min-width .34s cubic-bezier(.22,.75,.25,1),flex-basis .34s cubic-bezier(.22,.75,.25,1),padding .25s ease,gap .25s ease,box-shadow .18s ease}
.add-action-button .add-action-plus{display:inline-flex;align-items:center;justify-content:center;width:18px;min-width:18px;height:100%;font-size:23px;font-weight:400;line-height:1}
.add-action-button .add-action-label{display:inline-block;max-width:0;margin-left:0;overflow:hidden;opacity:0;transition:max-width .3s ease,margin-left .25s ease,opacity .18s ease}
.add-action-button:hover,.add-action-button:focus-visible{width:var(--add-action-width,150px);min-width:var(--add-action-width,150px);flex-basis:var(--add-action-width,150px);gap:6px;padding-left:12px;padding-right:13px}
.add-action-button:hover .add-action-label,.add-action-button:focus-visible .add-action-label{max-width:160px;margin-left:2px;opacity:1}
.dashboard-actions>.add-action-button{width:42px;min-width:42px;height:42px;flex:0 0 42px}
.dashboard-actions>.add-action-button:hover,.dashboard-actions>.add-action-button:focus-visible{width:var(--add-action-width,150px);min-width:var(--add-action-width,150px);flex-basis:var(--add-action-width,150px)}
@media(max-width:760px){.dashboard-actions>.add-action-button{width:42px;min-width:42px;flex-basis:42px}.dashboard-actions>.add-action-button:hover,.dashboard-actions>.add-action-button:focus-visible{width:var(--add-action-width,150px);min-width:var(--add-action-width,150px);flex-basis:var(--add-action-width,150px)}}
@media(prefers-reduced-motion:reduce){.add-action-button,.add-action-button .add-action-label{transition:none}}

/* Keep register rows within the page width; long values wrap inside their cells. */
.table-wrap{width:100%;max-width:100%;overflow-x:hidden;overflow-y:visible}
.table-wrap table{width:100%;table-layout:fixed;white-space:normal}
.table-wrap th,.table-wrap td{min-width:0;white-space:normal;overflow-wrap:anywhere;word-break:normal}
.table-wrap th{padding:10px 9px;line-height:1.35}
.table-wrap td{padding:10px 9px;vertical-align:top;line-height:1.45}
.table-wrap .button{white-space:normal;max-width:100%}
.table-wrap a{overflow-wrap:anywhere;word-break:break-word}
@media(max-width:760px){.table-wrap th,.table-wrap td{padding:8px 5px;font-size:10px}.table-wrap th{font-size:8px;letter-spacing:.025em}.table-wrap .badge{white-space:normal;padding:3px 5px;font-size:9px}}

.decision-actions{align-items:center;gap:6px}.decision-actions .decision-icon-button{width:32px;min-width:32px;height:30px;padding:5px;display:inline-flex;align-items:center;justify-content:center;border-radius:8px}.decision-icon-button svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.decision-icon-button:hover{filter:brightness(.96);transform:translateY(-1px)}

.brief-me-trigger{border-color:#cfe8dc;background:#f6fdf9;color:#047857;font-weight:650}.brief-me-trigger:hover{background:#ecfdf5;border-color:#a8ddc3;color:#047857}
.briefing-modal{width:min(760px,calc(100vw - 36px))}.briefing-modal .modal-body{max-height:min(68vh,680px);overflow-y:auto}.briefing-result{margin-top:20px;padding-top:18px;border-top:1px solid var(--line)}.briefing-counts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin:15px 0}.briefing-counts>div{display:flex;flex-direction:column;gap:3px;padding:11px;background:#f8fafc;border:1px solid var(--line);border-radius:10px}.briefing-counts strong{font:700 20px var(--font-heading,Inter,sans-serif);color:#047857}.briefing-counts span{font-size:11px;color:var(--muted)}.briefing-timeline{display:grid;gap:0;max-height:330px;overflow:auto}.briefing-event{display:grid;grid-template-columns:86px minmax(0,1fr);gap:12px;padding:12px 0;border-bottom:1px solid #eef2f6}.briefing-event time{padding-top:3px;color:var(--muted);font-size:11px}.briefing-event p{margin:5px 0 3px;font-size:12px;line-height:1.5;color:var(--ink)}.briefing-event small{color:var(--muted)}.briefing-snapshot{margin-top:18px;padding:14px;background:#f6fdf9;border:1px solid #d1fae5;border-radius:10px}.briefing-snapshot p{margin:7px 0 0;color:#526177;font-size:12px;line-height:1.55}@media(max-width:600px){.briefing-counts{grid-template-columns:repeat(2,minmax(0,1fr))}.briefing-event{grid-template-columns:70px minmax(0,1fr);gap:8px}}
.brief-me-header-button{display:grid;place-items:center}.brief-me-header-button:hover{color:#047857}.briefing-modal{max-height:94vh}.briefing-modal .modal-body{max-height:min(78vh,860px)}.briefing-timeline{max-height:min(62vh,680px)}.briefing-actions{justify-content:space-between;align-items:center}.briefing-action-hint{font-size:11px;color:var(--muted)}.briefing-action-icons{display:flex;gap:9px}.briefing-icon-action{width:42px;height:42px;padding:8px;display:grid;place-items:center;border-radius:10px;color:#047857;background:#f6fdf9;border-color:#d1fae5}.briefing-icon-action:hover{background:#ecfdf5;border-color:#a7dfc1}.briefing-icon-action svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}@media(max-width:520px){.briefing-action-hint{max-width:150px;line-height:1.35}.briefing-actions{gap:8px}}

/* Floating add actions sit over page content and recede until hovered. */
.add-action-button{position:fixed;right:30px;bottom:28px;z-index:4;opacity:.58;box-shadow:0 7px 22px rgba(15,40,35,.16);transform-origin:right center}
.add-action-button:hover,.add-action-button:focus-visible{opacity:.58;box-shadow:0 9px 26px rgba(15,40,35,.23)}
@media(max-width:760px){.add-action-button{right:18px;bottom:18px}}
@media(prefers-reduced-motion:reduce){.add-action-button{transition:none;opacity:.58}}

.project-edit-link{display:block;border:0;background:transparent;padding:0;color:var(--ink);font:inherit;font-weight:700;text-align:left;cursor:pointer}.project-edit-link:hover{color:#047857;text-decoration:underline;text-underline-offset:3px}.editable-record-row{cursor:pointer}.editable-record-row:hover td{background:#f6fdf9!important}
.editable-record-row{cursor:pointer}.editable-record-row:focus-visible{outline:2px solid #10b981;outline-offset:-2px}
.project-edit-card{cursor:pointer;transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease}
.project-edit-card:hover{border-color:#c7ead9;box-shadow:0 8px 24px rgba(23,43,77,.08);transform:translateY(-1px)}
.project-edit-card:focus-visible{outline:3px solid #a7f3d0;outline-offset:2px}
/* Larger floating add buttons grow from their fixed lower-right corner. */
.add-action-button{width:63px;min-width:63px;height:63px;flex-basis:63px;padding:0 17px;border-radius:16px;transition:width .34s cubic-bezier(.22,.75,.25,1),min-width .34s cubic-bezier(.22,.75,.25,1),flex-basis .34s cubic-bezier(.22,.75,.25,1),height .34s cubic-bezier(.22,.75,.25,1),padding .25s ease,gap .25s ease,box-shadow .18s ease,opacity .18s ease}
.add-action-button .add-action-plus{width:27px;min-width:27px;font-size:34px}
.add-action-button:hover,.add-action-button:focus-visible{height:78px;padding-left:12px;padding-right:12px;gap:6px}
.dashboard-actions>.add-action-button{width:63px;min-width:63px;height:63px;flex-basis:63px}
.dashboard-actions>.add-action-button:hover,.dashboard-actions>.add-action-button:focus-visible{width:var(--add-action-width,150px);min-width:var(--add-action-width,150px);flex-basis:var(--add-action-width,150px);height:78px}
@media(max-width:760px){.add-action-button{right:18px;bottom:18px}.dashboard-actions>.add-action-button{width:63px;min-width:63px;height:63px;flex-basis:63px}.dashboard-actions>.add-action-button:hover,.dashboard-actions>.add-action-button:focus-visible{width:var(--add-action-width,150px);min-width:var(--add-action-width,150px);flex-basis:var(--add-action-width,150px);height:78px}}

/* Jour Fixe agenda */
.jf-layout{display:grid;grid-template-columns:1fr 1fr;gap:16px;align-items:start}
.jf-agenda-card{min-height:220px}

/* Add actions become a touch clearer on hover; the plus tilts as the button opens. */
.add-action-button{transition:width .34s cubic-bezier(.22,.75,.25,1),min-width .34s cubic-bezier(.22,.75,.25,1),flex-basis .34s cubic-bezier(.22,.75,.25,1),height .34s cubic-bezier(.22,.75,.25,1),padding .25s ease,gap .25s ease,box-shadow .18s ease,opacity .18s ease}
.add-action-button{box-shadow:0 0 14px rgba(15,40,35,.22)}
.add-action-button:hover,.add-action-button:focus-visible{opacity:.72;box-shadow:0 0 18px rgba(15,40,35,.28)}
.add-action-button .add-action-plus{transform-origin:50% 50%;transform:rotate(0);transition:transform .8s ease-in-out}
.add-action-button:hover .add-action-plus,.add-action-button:focus-visible .add-action-plus{transform:rotate(-90deg)}
@media(prefers-reduced-motion:reduce){.add-action-button{transition:none}.add-action-button .add-action-plus{transition:none}}

/* Brief me opens as a header-anchored glass panel, matching Notifications. */
.briefing-anchor{position:relative;display:flex;align-items:center}
.briefing-popover{--popover-glass:rgba(255,255,255,.92);top:calc(100% + 13px);right:0;width:min(620px,calc(100vw - 24px));max-height:min(78vh,760px);padding:0;overflow:visible;display:flex;flex-direction:column;z-index:8;background:var(--popover-glass)}
.briefing-popover::before{right:12px}
.briefing-popover-head{padding:15px 16px 12px;border-bottom:1px solid rgba(226,232,240,.72)}
.briefing-popover-head h2{margin:0;color:#172b4d;font:700 17px var(--font-heading,Inter,sans-serif)}
.briefing-popover-head .eyebrow{margin-bottom:4px}
.briefing-popover form{display:flex;min-height:0;flex-direction:column}
.briefing-popover-body{max-height:min(62vh,600px);overflow:auto;padding:14px 16px}
.briefing-popover-body .field{margin-bottom:12px}
.briefing-popover-body .briefing-result{margin-top:14px;padding-top:12px}
.briefing-popover-body .briefing-timeline{max-height:none;overflow:visible}
.briefing-popover .briefing-counts{margin:10px 0}
.briefing-popover .briefing-counts>div{padding:8px 10px}
.briefing-popover .briefing-counts strong{font-size:17px}
.briefing-popover .briefing-snapshot{margin-top:12px;padding:11px}
.briefing-popover .briefing-actions{padding:10px 14px;border-top:1px solid rgba(226,232,240,.72)}
@media(max-width:620px){.briefing-popover{right:0;width:calc(100vw - 24px)}.briefing-popover-body{max-height:58vh}.briefing-popover .briefing-event{grid-template-columns:64px minmax(0,1fr)}}
@media(prefers-reduced-motion:reduce){.briefing-popover{animation:none}}
.jf-agenda-list{display:grid;gap:0}
.jf-agenda-item{display:flex;align-items:flex-start;gap:12px;padding:14px 0;border-top:1px solid var(--line)}
.jf-agenda-item:first-child{border-top:0;padding-top:2px}
.jf-agenda-number{display:grid;place-items:center;flex:0 0 27px;height:27px;border-radius:50%;background:#ecfdf5;color:#047857;font-weight:700;font-size:11px}
.jf-agenda-copy{min-width:0;flex:1;display:grid;gap:5px}
.jf-agenda-copy strong{font-size:13px;color:var(--ink)}
.jf-agenda-copy p{margin:0;color:var(--muted);font-size:12px;line-height:1.45}
.jf-agenda-copy small{color:var(--muted);font-size:10px}
.jf-agenda-title-row{display:flex;align-items:center;justify-content:space-between;gap:10px}
.jf-agenda-title-row .badge{flex:0 0 auto}
.jf-agenda-actions{display:flex;align-items:center;gap:6px}
.jf-remove{border:0;background:transparent;color:#94a3b8;font-size:19px;line-height:1;padding:2px 6px;border-radius:6px}
.jf-remove:hover{background:#fff1f2;color:#be123c}
.jf-decision-toggle.active{color:#047857;background:#ecfdf5;border-color:#a7dfc1}
.jf-checkbox-field{padding:10px 12px;border:1px solid #d1fae5;border-radius:10px;background:#f6fdf9}
.jf-checkbox-field label{display:flex;align-items:center;gap:8px;color:#047857!important;cursor:pointer}
.jf-checkbox-field input{accent-color:#10b981}
.jf-checkbox-field small{margin-left:23px}
.sidebar .nav-btn.nav-section-start{position:relative;margin-top:13px}
.sidebar .nav-btn.nav-section-start::before{content:"";position:absolute;top:-7px;left:12px;right:12px;height:1px;background:rgba(100,116,139,.22)}
.sidebar-collapsed .sidebar .nav-btn.nav-section-start::before{left:10px;right:10px}
@media(max-width:900px){.jf-layout{grid-template-columns:1fr}}
@media(max-width:600px){.jf-agenda-title-row{align-items:flex-start;flex-direction:column;gap:5px}.jf-agenda-item{gap:8px}}
.comments-trigger{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-width:48px;padding:6px 8px!important;color:#536579}
.comments-trigger svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.comments-trigger:hover{color:#047857;background:#ecfdf5;border-color:#d1fae5}
.decision-workflow-banner{display:flex;gap:10px;align-items:baseline;margin:-9px 0 16px;padding:11px 14px;border:1px solid #d1fae5;border-radius:9px;background:#f6fdf9;color:#526177;font-size:11px}
.decision-table-card{overflow:visible}
.decision-table-card .table-wrap{overflow:visible}
.decision-workflow-banner b{color:#047857;white-space:nowrap}
.decision-title-button{display:grid;gap:4px;padding:0;border:0;background:transparent;text-align:left;color:inherit}
.decision-title-button:hover .strong{color:#047857;text-decoration:underline}
.decision-title-button .muted{font-size:10px}
.decision-status-neutral{background:#edf1f6;color:#607086}
.decision-actions{position:relative;flex-wrap:wrap}
.decision-accept{color:#047857;background:#ecfdf5;border-color:#bbecd4;white-space:nowrap}
.decision-changes{color:#9a6700;background:#fffbeb;border-color:#fde68a;white-space:nowrap}
.decision-more{position:relative;display:inline-block}
.decision-more summary{list-style:none;cursor:pointer;padding:6px 8px;border:1px solid var(--line);border-radius:7px;background:#fff;color:#536579;font-size:10px;white-space:nowrap}
.decision-more summary::-webkit-details-marker{display:none}
.decision-more summary:hover,.decision-more[open] summary{color:#047857;background:#f6fdf9;border-color:#d1fae5}
.decision-more>div{position:absolute;z-index:6;top:calc(100% + 4px);right:0;min-width:160px;padding:5px;background:#fff;border:1px solid var(--line);border-radius:8px;box-shadow:0 8px 22px rgba(23,43,77,.14)}
.decision-more>div button{display:block;width:100%;padding:7px 8px;border:0;border-radius:5px;background:transparent;text-align:left;color:#46546a;font-size:10px;white-space:nowrap}
.decision-more>div button:hover{background:#ecfdf5;color:#047857}
.decision-workflow-item{margin:9px 0;padding:11px 12px;border:1px solid #e6ebf0;border-radius:9px;background:#fbfcfd;font-size:12px}
.decision-workflow-item p{margin:6px 0;color:#46546a;line-height:1.5;white-space:pre-wrap}
.decision-workflow-item small{display:block;color:var(--muted);font-size:10px;line-height:1.5}
.decision-workflow-item .button{margin-top:9px}
.objection-item{border-color:#fecaca;background:#fffafa}
.decision-authority-note{margin:12px 0 18px;padding:11px 13px;border:1px solid #d1fae5;border-radius:8px;background:#f6fdf9;color:#526177;font-size:11px;line-height:1.5}
.decision-authority-note b{color:#047857}
.decision-comment-form{display:flex;gap:8px;margin:12px 0}
.decision-comment-form input{flex:1;min-width:0;padding:10px;border:1px solid var(--line);border-radius:8px}
.decision-comment-form input:focus{outline:2px solid #d1fae5;border-color:#34d399}
.decision-final-action{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0;padding-top:14px;border-top:1px solid var(--line)}
.decision-final-outcome{margin-top:14px;padding:13px;border:1px solid #bbecd4;border-radius:9px;background:#f6fdf9;color:#405067;font-size:12px}
.decision-final-outcome p{margin:6px 0;white-space:pre-wrap}
.decision-final-outcome small{color:var(--muted)}
.decision-disclaimer{margin-top:16px;padding-top:10px;border-top:1px solid var(--line);color:var(--muted);font-size:10px}
@media(max-width:760px){.decision-workflow-banner{align-items:flex-start;flex-direction:column;gap:3px}.decision-comment-form{flex-direction:column}.decision-more>div{right:auto;left:0}}

/* Documents & Reviews · shared GFA → RISA → KfW review chain */
.doc-chain-open{display:block;max-width:100%;margin:0;padding:0;border:0;background:transparent;text-align:left;cursor:pointer}
.doc-review-chain{display:inline-flex;align-items:flex-start;gap:5px;max-width:100%;white-space:nowrap}
.doc-review-step{display:flex;flex-direction:column;align-items:center;gap:4px}
.doc-review-node{display:grid;gap:1px;min-width:52px;box-sizing:border-box;padding:4px 5px;border:1px solid #e2e8f0;border-radius:6px;background:#f8fafc;color:#64748b;text-align:center;white-space:nowrap}
.doc-review-node b{font-size:9px;line-height:1.1}.doc-review-node small{font-size:8px;line-height:1.1;color:inherit;white-space:nowrap}
.doc-review-node.is-current,.doc-review-node.is-pending{border-color:#fcd34d;background:#fffbeb;color:#92400e}
.doc-review-node.is-done{border-color:#d1fae5;background:#f6fdf9;color:#047857}
.doc-review-node.is-returned{border-color:#fecaca;background:#fff1f2;color:#b42318}
.doc-review-arrow{margin-top:15px;color:#94a3b8;font-size:14px}
.doc-review-actions{display:flex;gap:5px;margin-top:6px}
.doc-review-icon{display:inline-grid;place-items:center;width:29px;height:27px;padding:0;border:1px solid #dbe3eb;border-radius:7px;background:#fff;cursor:pointer;transition:background .16s,border-color .16s,transform .16s}
.doc-review-icon:hover{transform:translateY(-1px)}
.doc-review-icon svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.doc-accept{border-color:#bbecd4;background:#f0fdf6;color:#047857}.doc-accept:hover{background:#dcfce7}
.doc-return{border-color:#fed7aa;background:#fffaf0;color:#b45309}.doc-return:hover{background:#fff1d6}
.doc-resubmit{border-color:#bfdbfe;background:#eff6ff;color:#2563eb}.doc-resubmit:hover{background:#dbeafe}
.doc-review-detail-meta{display:flex;flex-wrap:wrap;gap:14px;margin:12px 0;padding:10px 12px;border:1px solid #d1fae5;border-radius:8px;background:#f6fdf9;color:#64748b;font-size:11px}
.doc-review-detail-meta b{color:#047857}
.doc-version-item{display:grid;gap:4px;margin:7px 0;padding:10px 12px;border:1px solid #e2e8f0;border-radius:8px;background:#fbfcfd;font-size:12px}
.doc-version-item small{color:#64748b}
.doc-review-disclaimer{margin-top:18px;padding-top:10px;border-top:1px solid var(--line);color:var(--muted);font-size:10px}
.doc-submission-date{margin-top:2px;font-size:10px;white-space:nowrap}
.doc-version-indicator{margin-top:5px;font-size:10px;white-space:nowrap}
.doc-next-version{display:flex;align-items:center;min-height:44px;padding:10px 12px;border:1px solid var(--line);border-radius:9px;background:#f8fafc;color:#047857;font-weight:600}
.doc-chain-open:focus-visible,.doc-review-icon:focus-visible{outline:3px solid #a7f3d0;outline-offset:2px}
.table-wrap table[data-export-table="documents"] th:nth-child(1){width:18%}
.table-wrap table[data-export-table="documents"] th:nth-child(2){width:12%}
.table-wrap table[data-export-table="documents"] th:nth-child(3){width:11%}
.table-wrap table[data-export-table="documents"] th:nth-child(4){width:12%}
.table-wrap table[data-export-table="documents"] th:nth-child(5){width:11%}
.table-wrap table[data-export-table="documents"] th:nth-child(6){width:28%}
.table-wrap table[data-export-table="documents"] th:nth-child(7){width:8%}
.table-wrap table[data-export-table="documents"] td.doc-review-status-column{min-width:0}
.table-wrap table[data-export-table="documents"] td.doc-review-chain-column{min-width:0}
.doc-review-chain{gap:5px}
.doc-review-node{min-width:62px;padding:5px 6px}
.doc-review-node b{font-size:10px}.doc-review-node small{font-size:9px}
.doc-review-arrow{font-size:16px}
@media(max-width:760px){.table-wrap table[data-export-table="documents"] th:nth-child(5){width:11%}.table-wrap table[data-export-table="documents"] th:nth-child(6){width:28%}.doc-review-chain{gap:2px}.doc-review-step{gap:4px}.doc-review-arrow{margin-top:14px}.doc-review-node{min-width:46px;padding:4px 3px}.doc-review-node b{font-size:8px}.doc-review-node small{font-size:7px}.doc-review-actions{gap:3px}.doc-review-icon{width:27px}}


/* Keep the supplied palm mark aligned with the neighboring 19px header icons. */
.topbar .header-actions .brief-me-header-button{display:grid;place-items:center;width:33px;height:33px;flex:0 0 33px;padding:7px}
.brief-palm-icon{display:block;width:19px;height:19px;line-height:0;transform-origin:50% 88%}
.brief-palm-icon img{display:block;width:100%;height:100%;object-fit:contain}
.brief-me-header-button:hover .brief-palm-icon,.brief-me-header-button:focus-visible .brief-palm-icon{animation:briefPalmShake .72s ease-in-out}
@keyframes briefPalmShake{0%,100%{transform:rotate(0)}18%{transform:rotate(-10deg)}38%{transform:rotate(8deg)}58%{transform:rotate(-6deg)}78%{transform:rotate(3deg)}}
@media(prefers-reduced-motion:reduce){.brief-me-header-button:hover .brief-palm-icon,.brief-me-header-button:focus-visible .brief-palm-icon{animation:none}}

/* Give each header utility the same 48px hit area and centred 24px glyph. */
.topbar .header-actions{gap:6px}
.topbar .header-actions > .icon-button[aria-label="In-app notifications"],
.topbar .header-actions .briefing-anchor,
.topbar .header-actions .settings-anchor,
.topbar .header-actions .profile.profile-icon-button{display:grid;place-items:center;width:48px;height:48px;min-width:48px;flex:0 0 48px;margin:0;padding:0}
.topbar .header-actions .brief-me-header-button,
.topbar .header-actions .settings-icon-button{display:grid;place-items:center;width:48px;height:48px;min-width:48px;flex:0 0 48px;margin:0;padding:0}
.topbar .header-actions .icon-button{color:#475569}
.bell-icon,.settings-icon,.profile-person-icon,.brief-palm-svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.brief-palm-icon{display:grid;place-items:center;width:24px;height:24px;line-height:1;transform-origin:50% 88%}
.brief-palm-svg{display:block;overflow:visible}
.notif-panel::before{right:130px}
.briefing-popover::before{right:16px}
@media(max-width:1100px){.notif-panel:not(.briefing-popover)::before{right:118px}}
@media(max-width:760px){.notif-panel:not(.briefing-popover)::before{right:108px}}

/* Use the supplied complete logo artwork in the sidebar. */
.sidebar .brand{height:176px;min-height:176px;flex:0 0 176px;flex-direction:column;align-items:center;justify-content:flex-start;gap:5px;overflow:hidden}
.sidebar .brand-mark{position:relative;display:block;width:190px;height:127px;flex:0 0 127px;overflow:hidden;background:#fff}
.sidebar .brand-mark .brand-logo{position:absolute;left:0;top:0;width:190px;max-width:none;height:auto;border-radius:0;background:#fff;transform:scale(1.5);transform-origin:center center}
.sidebar-collapsed .brand-mark{width:56px;height:56px;flex:0 0 56px;border-radius:9px}
.sidebar-collapsed .brand-mark .brand-logo{left:-46px;top:-7px;width:150px;max-width:none;height:auto;transform:none}
.review-standard-message{padding:12px 14px;border:1px solid #d1fae5;border-radius:10px;background:#f6fdf9;color:#047857;font-size:13px;line-height:1.45}
.review-optional-toggle{display:flex;align-items:center;gap:9px;margin:14px 0;color:#334155;font-size:13px;font-weight:600;cursor:pointer}
.review-optional-toggle input{width:16px;height:16px;margin:0;accent-color:#10b981}
.project-modal-actions{gap:8px;flex-wrap:wrap;justify-content:flex-end}
.danger-outline{color:#b91c1c;border-color:#fecaca;background:#fff}
.danger-outline:hover,.danger-button:hover:not(:disabled){background:#fee2e2;border-color:#fca5a5}
.danger-button{color:#fff;background:#b91c1c;border-color:#b91c1c}
.danger-button:disabled{opacity:.45;cursor:not-allowed}
.project-inactive{opacity:.78}
.project-inactive-badge{background:#e2e8f0;color:#475569}

/* Sidebar navigation icons stay enlarged for the full hover state. */
.sidebar .nav-btn .nav-icon{transition:transform .2s ease,color .18s ease}
.sidebar .nav-btn:hover .nav-icon{animation:none;transform:scale(1.34)}
/* Match the header Ask AI action to the sidebar's Rwanda Green icon. */
.header-ask-ai{color:#10b981}
.header-ask-ai:hover{color:#047857}

/* Programme briefing clock icon and compact date control. */
.brief-clock-icon{display:grid;place-items:center;width:24px;height:24px;line-height:0}
.brief-clock-svg{display:block;width:24px;height:24px;overflow:visible;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.brief-clock-pin{fill:currentColor;stroke:none}
.brief-clock-hand{transform-box:view-box;transform-origin:12px 12px}
.brief-me-header-button:hover .brief-clock-minute,.brief-me-header-button:focus-visible .brief-clock-minute{animation:briefClockMinute 1.8s ease-in-out 1 forwards}
@keyframes briefClockMinute{to{transform:rotate(360deg)}}
.briefing-popover-body #briefing-start-date{width:160px;max-width:100%}
@media(prefers-reduced-motion:reduce){.brief-me-header-button:hover .brief-clock-hand,.brief-me-header-button:focus-visible .brief-clock-hand{animation:none}}

/* Search field sizing reduced proportionally from the previous desktop widths. */
.global-search-wrap{flex-basis:319px;max-width:456px}
.global-search-wrap:hover,.global-search-wrap:focus-within{flex-basis:456px}
@media(max-width:760px){.global-search-wrap{flex-basis:calc(100vw - 180px);max-width:none}}
/* Profile nod now includes a small, mirrored arm raise and return. */
.profile-arm{transform-box:view-box;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;transform-origin:center}
.profile-arm-left{transform-origin:6.2px 15.8px}
.profile-arm-right{transform-origin:17.8px 15.8px}
.profile-icon-button:hover .profile-arm-left{animation:profile-arm-lift 1.05s cubic-bezier(.25,.8,.3,1) 1}
.profile-icon-button:hover .profile-arm-right{animation:profile-arm-lift-right 1.05s cubic-bezier(.25,.8,.3,1) 1}
@keyframes profile-arm-lift{0%,100%{transform:rotate(0)}20%,44%{transform:rotate(84deg)}62%{transform:rotate(12deg)}78%{transform:rotate(78deg)}}
@keyframes profile-arm-lift-right{0%,100%{transform:rotate(0)}20%,44%{transform:rotate(-84deg)}62%{transform:rotate(-12deg)}78%{transform:rotate(-78deg)}}
@media(prefers-reduced-motion:reduce){.profile-icon-button:hover .profile-arm{animation:none!important}}

.decision-row-actions{display:flex;align-items:center;gap:9px;white-space:nowrap}
.jf-row-action{display:inline-flex;align-items:center;gap:6px}
.jf-row-action svg{width:14px;height:14px;flex:0 0 14px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}

/* Keep both decision row actions legible and prevent icon/label compression. */
.decision-table-card td:last-child{min-width:218px;white-space:nowrap}
.decision-row-actions{gap:12px;min-width:max-content}
.decision-row-actions .jf-row-action{flex:0 0 auto;min-width:max-content;white-space:nowrap;padding:7px 10px}
.decision-row-actions .jf-row-action span{white-space:nowrap}

.decision-row-actions{flex-direction:column;align-items:flex-start;gap:7px}

.decision-row-actions .jf-row-action{font-size:10px}

.toast{animation:toast-fade 3.6s ease forwards}
@keyframes toast-fade{0%{opacity:0}18%{opacity:1}75%{opacity:1}100%{opacity:0}}
@media(prefers-reduced-motion:reduce){.toast{animation:none;opacity:1}}

.dashboard-overview{display:grid;grid-template-columns:minmax(0,2fr) minmax(300px,1fr);gap:15px;align-items:stretch;margin-bottom:16px}
.dashboard-summary-grid.kpis{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0;align-content:stretch}
.dashboard-summary-grid>.card{min-width:0}
.dashboard-summary-grid .kpi-value{font-size:31.2px;text-align:center;margin:10px 0 4px}
.dashboard-my-tasks{min-width:0;height:100%}
.dashboard-task-list{display:grid;gap:0}
.dashboard-task-item{gap:9px;align-items:center}
.dashboard-task-check{width:18px;height:18px;flex:0 0 18px;border:1.5px solid #c9d2df;border-radius:5px;background:#fff;color:#047857;display:grid;place-items:center;padding:0;font-size:12px;font-weight:700}
.dashboard-task-check:hover,.dashboard-task-check:focus-visible{border-color:#10b981;background:#ecfdf5;outline:2px solid #a7f3d0;outline-offset:1px}
.dashboard-task-check.checked{border-color:#10b981;background:#ecfdf5}
.dashboard-task-copy{flex:1;min-width:0}
.dashboard-task-copy .task-title{line-height:1.35}
.dashboard-task-copy .task-meta{line-height:1.35}
.completed-task-title{text-decoration:line-through;color:#8793a4}
.dashboard-single-grid{grid-template-columns:1fr}
@media(max-width:1100px){.dashboard-overview{grid-template-columns:minmax(0,1.6fr) minmax(270px,1fr)}.dashboard-summary-grid.kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.dashboard-overview{grid-template-columns:1fr}.dashboard-summary-grid.kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}

.ai-card{max-width:1000px}
.ai-form{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;margin-top:20px}
.ai-form textarea{width:100%;min-height:150px;resize:vertical}
.ai-form-footer{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}
.ai-examples{flex:1;min-width:0;align-items:center;margin:0;gap:8px}
.ai-suggestion-label{flex:0 0 auto;font-size:11px}
.ai-ask-button{flex:0 0 auto;min-width:100px}
.ai-search-history{margin-top:20px;padding-top:15px;border-top:1px solid var(--line)}
.ai-search-history-stream{display:flex;gap:8px;overflow-x:auto;padding:9px 1px 3px;scrollbar-width:thin}
.ai-history-item{flex:0 0 auto;max-width:min(300px,70vw);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border:1px solid #d1fae5;border-radius:18px;padding:7px 11px;background:#f6fdf9;color:#047857;font-size:11px;text-align:left;cursor:pointer}
.ai-history-item:hover,.ai-history-item:focus-visible{background:#ecfdf5;border-color:#a7dfc1;outline:2px solid #d1fae5;outline-offset:1px}
@media(max-width:760px){.ai-form{display:grid}.ai-form-footer{align-items:stretch;flex-direction:column}.ai-examples{align-items:flex-start}.ai-ask-button{align-self:flex-end}}


.decision-people-list{max-height:340px;overflow:auto;padding-right:4px}
.decision-people-group{display:grid;gap:7px;margin-bottom:12px}
.decision-people-group> b{font-size:11px;color:#047857}
.decision-people-group>div{display:grid;gap:6px}
.decision-maker-count{display:block;margin-top:7px;color:#047857;font-weight:600}

.sprint-push-button{white-space:nowrap;min-width:82px}.sprint-push-button.active{background:#ecfdf5;border-color:#a7dfc1;color:#047857}.sprint-action-title{border:0;background:none;padding:0;text-align:left;cursor:pointer}.sprint-action-title:hover{color:#047857}

.chart-bars .bar{max-height:100%;flex:1 1 0;min-height:6px}

.sprint-owner-select{max-height:250px;overflow:auto;padding-right:4px}.sprint-owner-list{display:grid;gap:4px}.sprint-owner-list span{font-size:11px;font-weight:600;color:#334155}.sprint-owner-list small{display:block;color:#64748b;font-weight:400}

.document-reviewer-groups{gap:12px}
.document-reviewer-groups .decision-people-group{margin:0;padding:12px;border:1px solid var(--line);border-radius:10px;background:#fbfdfb}
.document-reviewer-groups .decision-people-group>div{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:620px){.document-reviewer-groups .decision-people-group>div{grid-template-columns:1fr}}


/* Compact, status-aware task register control that matches the Rwanda Green UI. */
.table-wrap .task-status-select{appearance:none;min-height:34px;max-width:100%;padding:6px 27px 6px 11px;border:1px solid #dbe3eb;border-radius:999px;background-color:#f8fafc;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 20 20'%3E%3Cpath d='m5 7.5 5 5 5-5' fill='none' stroke='%2364758b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 9px center;color:#475569;font-size:11px;font-weight:600;line-height:1.2;cursor:pointer;transition:border-color .16s,background-color .16s,color .16s,box-shadow .16s}
.table-wrap .task-status-select:focus{outline:0;border-color:#34d399;box-shadow:0 0 0 3px rgba(16,185,129,.13)}
.table-wrap .task-status-select[data-status="Done"],.table-wrap .task-status-select[data-status="Completed"]{border-color:#a7f3d0;background-color:#ecfdf5;color:#047857}
.table-wrap .task-status-select[data-status="In Progress"],.table-wrap .task-status-select[data-status="In progress"]{border-color:#bfdbfe;background-color:#eff6ff;color:#1d4ed8}
.table-wrap .task-status-select[data-status="In Review"]{border-color:#ddd6fe;background-color:#f5f3ff;color:#6d28d9}
.table-wrap .task-status-select[data-status="Blocked"]{border-color:#fecaca;background-color:#fff1f2;color:#b42318}
.table-wrap .task-status-select[data-status="Cancelled"]{border-color:#e2e8f0;background-color:#f1f5f9;color:#64748b}
.table-wrap .task-status-select[data-status="To Do"],.table-wrap .task-status-select[data-status="Not started"]{border-color:#e2e8f0;background-color:#f8fafc;color:#475569}
.table-wrap .task-status-select option{background:#fff;color:#334155}
@media(max-width:760px){.table-wrap .task-status-select{min-height:31px;padding:5px 23px 5px 8px;font-size:10px;background-position:right 7px center}}
