/* Emergency rendering fix: this file intentionally comes last and owns the Scout desktop shell. */
:root{--scout-bg:#edf4fc;--scout-ink:#182339;--scout-line:#e1e9f3}
html,body.scout-body{width:100%;height:100%;min-width:1180px!important;overflow:hidden!important;background:linear-gradient(135deg,#edf5ff 0%,#f8fbff 55%,#edf3fb 100%)!important}
.scout-app{box-sizing:border-box!important;display:grid!important;grid-template-columns:248px minmax(0,1fr)!important;grid-template-rows:minmax(0,1fr)!important;width:calc(100vw - 40px)!important;max-width:1600px!important;height:calc(100vh - 40px)!important;min-height:720px!important;margin:20px auto!important;overflow:hidden!important;border:1px solid #dce7f3!important;border-radius:22px!important;background:#f9fbff!important;box-shadow:0 24px 68px rgba(39,69,120,.14)!important}
.scout-side{box-sizing:border-box!important;grid-column:1!important;grid-row:1!important;position:relative!important;width:auto!important;height:auto!important;min-width:0!important;display:flex!important;flex-direction:column!important;overflow:auto!important;padding:20px 14px!important;background:rgba(255,255,255,.96)!important;color:#61708a!important;border:0!important;border-right:1px solid #e1e9f2!important}
.scout-main{box-sizing:border-box!important;grid-column:2!important;grid-row:1!important;display:grid!important;grid-template-rows:68px minmax(0,1fr)!important;min-width:0!important;width:auto!important;overflow:hidden!important;background:#f8faff!important}
.scout-brand{box-sizing:border-box!important;display:flex!important;align-items:center!important;gap:10px!important;height:auto!important;margin:2px 8px 22px!important;padding:0!important;border:0!important;text-decoration:none!important;color:#16233b!important}.scout-brand-mark{display:grid!important;place-items:center!important;flex:0 0 36px!important;width:36px!important;height:36px!important;border-radius:11px!important;background:linear-gradient(145deg,#386ff6,#775cf3)!important;color:#fff!important;font-weight:900!important;font-size:17px!important}.scout-brand strong{display:block!important;color:#152138!important;font-size:16px!important;line-height:1.1!important}.scout-brand small{display:block!important;margin-top:3px!important;color:#7b89a0!important;font-size:8px!important;letter-spacing:.09em!important}
.scout-nav{display:block!important;box-sizing:border-box!important;overflow:visible!important;padding:0!important}.scout-label{display:block!important;margin:18px 8px 7px!important;padding:7px 9px!important;border-left:3px solid #6a63f3!important;border-radius:0 7px 7px 0!important;background:linear-gradient(90deg,#eff3ff,#fafbff)!important;color:#576daf!important;font-size:11px!important;font-weight:900!important;letter-spacing:.08em!important}.scout-nav a{box-sizing:border-box!important;display:flex!important;align-items:center!important;gap:10px!important;width:100%!important;height:38px!important;margin:3px 0!important;padding:0 11px!important;border-radius:8px!important;color:#5f6e86!important;text-decoration:none!important;font-size:12px!important;line-height:1!important;white-space:nowrap!important}.scout-nav a.active{position:relative!important;background:linear-gradient(90deg,#edf3ff,#f8faff)!important;color:#315ee5!important;font-weight:850!important;box-shadow:none!important}.scout-nav a.active:before{content:""!important;position:absolute!important;left:0!important;width:3px!important;height:19px!important;background:#4d7cff!important;border-radius:4px!important}.scout-nav-glyph,.scout-nav .glyph{width:16px!important;height:16px!important;flex:0 0 16px!important}.scout-count{margin-left:auto!important}.scout-side-foot{margin-top:auto!important;padding:14px 8px!important;border-top:1px solid #e6ecf4!important;color:#8794a8!important;font-size:9px!important;line-height:1.6!important}
.scout-top{box-sizing:border-box!important;grid-row:1!important;height:68px!important;min-width:0!important;padding:0 28px!important;background:rgba(255,255,255,.88)!important;border-bottom:1px solid #e3eaf3!important}.scout-search{display:flex!important;flex:0 1 260px!important;width:auto!important;min-width:190px!important}.scout-content{box-sizing:border-box!important;display:block!important;grid-row:2!important;width:100%!important;max-width:none!important;min-width:0!important;overflow:auto!important;padding:28px 32px 36px!important}.scout-head{width:100%!important}.scout-content>.scard{box-sizing:border-box!important;width:100%!important}.scout-content>.scard+.scard{margin-top:14px!important}
@media(max-width:1280px){html,body.scout-body{min-width:1000px!important}.scout-app{width:calc(100vw - 28px)!important;height:calc(100vh - 28px)!important;margin:14px auto!important;grid-template-columns:220px minmax(0,1fr)!important}.scout-content{padding:22px!important}.scout-top{padding:0 20px!important}.scout-user{display:none!important}}

/* Task board: view mode and data scope are deliberately different layers. */
.board-view-row{display:flex;align-items:center;gap:14px;margin:-10px 0 14px}.board-range{font-size:11px;color:#74829a;white-space:nowrap}.board-view-switch{display:inline-flex;align-items:center;border:1px solid #dbe4f0;border-radius:8px;overflow:hidden;background:#fff}.board-view-switch button{height:32px;min-width:54px;padding:0 12px;border:0;border-left:1px solid #e2e9f2;background:#fff;color:#61718a;font-size:11px;font-weight:750;cursor:pointer}.board-view-switch button:first-child{border-left:0}.board-view-switch button.active{background:#376fe8;color:#fff}.board-scope-tabs{display:flex;align-items:center;gap:0;border-bottom:1px solid #e2e9f2;margin-bottom:18px}.board-scope-tabs a{position:relative;padding:10px 15px 11px;text-decoration:none;color:#64738b;font-size:12px;font-weight:760;white-space:nowrap}.board-scope-tabs a:first-child{padding-left:0}.board-scope-tabs a.active{color:#2f67df}.board-scope-tabs a.active:after{content:"";position:absolute;height:2px;left:0;right:0;bottom:-1px;border-radius:2px;background:#3b73ea}.scope-condition{display:inline-block;margin-left:4px;padding:2px 5px;border-radius:9px;background:#edf3ff;color:#4971dc;font-size:9px;font-weight:800}.board-filter-summary{justify-content:flex-start;margin:12px 0 14px}.table-utility{display:inline-flex;align-items:center;gap:5px;height:27px;margin-left:auto;padding:0 8px;border:1px solid #e0e7f1;border-radius:7px;background:#fff;color:#6c7b91;font-size:10px;font-weight:800;cursor:pointer}.table-utility:hover{border-color:#a8bcf3;color:#356be0;background:#f5f8ff}.table-utility svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round}

/* Make the desktop application use the desktop, rather than floating in a wide empty canvas. */
.scout-app{grid-template-columns:208px minmax(0,1fr)!important;width:calc(100vw - 24px)!important;max-width:none!important;height:calc(100vh - 24px)!important;margin:12px!important;border-radius:18px!important}.scout-side{padding:18px 11px!important}.scout-brand{margin:2px 7px 19px!important}.scout-brand strong{font-size:15px!important}.scout-label{margin:15px 6px 6px!important;padding:6px 8px!important;font-size:10px!important}.scout-nav a{height:35px!important;padding:0 9px!important;font-size:11px!important}.scout-side-foot{padding:12px 6px!important}.scout-content{padding:25px 28px 32px!important}
/* Project scope is a contextual control beside the task title, not a hidden filter token. */
.scout-title-row{display:flex;align-items:center;gap:12px}.scout-title-row h1{margin:0!important}.project-picker{position:relative;z-index:8}.project-select{display:inline-flex;align-items:center;gap:9px;height:33px;padding:0 11px;border:1px solid #a9c4fb;border-radius:8px;background:#f5f8ff;color:#2d6de2;font-size:11px;font-weight:850;box-shadow:0 0 0 3px #e5efff;cursor:pointer}.project-select:hover{background:#edf4ff}.project-select span{font-size:12px;color:#6c84bd}.project-picker-menu{position:absolute;left:0;top:43px;width:340px;padding:10px;border:1px solid #dbe5f2;border-radius:12px;background:#fff;box-shadow:0 16px 38px rgba(30,55,93,.18)}.project-picker-menu[hidden]{display:none!important}.project-picker-search{box-sizing:border-box;width:100%;height:34px;padding:0 10px;border:1px solid #dbe4f0;border-radius:7px;color:#60708a;font-size:11px}.project-picker-list{max-height:275px;margin-top:8px;overflow:auto;border-top:1px solid #edf1f6;border-bottom:1px solid #edf1f6}.project-picker-list label{display:grid;grid-template-columns:17px minmax(0,1fr) 68px;gap:7px;align-items:center;padding:9px 5px;border-bottom:1px solid #f0f3f7;color:#3f4f67;font-size:10px;line-height:1.35;cursor:pointer}.project-picker-list label:last-child{border-bottom:0}.project-picker-list input{accent-color:#3976ec}.project-picker-list em{color:#8795a9;font-size:9px;font-style:normal;text-align:right}.project-picker-foot{display:flex;align-items:center;gap:6px;padding-top:9px}.project-picker-foot button{height:28px;padding:0 8px;border:1px solid #dce5f1;border-radius:6px;background:#fff;color:#607189;font-size:9px;font-weight:750;cursor:pointer}.project-picker-foot button.primary{margin-left:auto;border-color:#3475e9;background:#3475e9;color:#fff}
@media(max-width:1280px){.scout-app{grid-template-columns:190px minmax(0,1fr)!important}.scout-content{padding:20px!important}.project-picker-menu{width:310px}}

/* KPI tiles: a quiet semantic glyph gives dense numbers a faster visual scan path. */
.skpi,.board-kpi{position:relative!important;overflow:hidden!important}.skpi::before,.board-kpi::before{content:"";position:absolute;top:15px;right:15px;width:20px;height:20px;background:#6279df;opacity:.9;mask:var(--stat-icon) center/contain no-repeat;-webkit-mask:var(--stat-icon) center/contain no-repeat}.skpi:nth-child(1),.board-kpi:nth-child(1){--stat-icon:url('assets/ui-icons/scout.svg')}.skpi:nth-child(2),.board-kpi:nth-child(2){--stat-icon:url('assets/ui-icons/notification.svg')}.skpi:nth-child(3),.board-kpi:nth-child(3){--stat-icon:url('assets/ui-icons/aegis.svg')}.skpi:nth-child(4),.board-kpi:nth-child(4){--stat-icon:url('assets/ui-icons/archive.svg')}.skpi:nth-child(5){--stat-icon:url('assets/ui-icons/refine.svg')}.skpi:nth-child(6){--stat-icon:url('assets/ui-icons/switch.svg')}.skpi.hero::before{background:#fff;opacity:.88}.skpi strong,.board-kpi b{position:relative;z-index:1}
/* The scope picker belongs to the pull action: it opens inward so it never leaves the viewport. */
.scout-actions .project-picker-menu{left:auto;right:0}.scout-actions .project-picker{flex:0 0 auto}

/* Compact metric modules: information density first; never stretch sparse numbers across the workspace. */
.skpis,.board-kpis{display:flex!important;align-items:stretch!important;flex-wrap:wrap!important;gap:10px!important;width:fit-content!important;max-width:100%!important;margin:0 0 16px!important}.skpi,.board-kpi{box-sizing:border-box!important;flex:0 0 184px!important;width:184px!important;min-height:104px!important;padding:14px 15px!important;border:1px solid #dfe8f3!important;border-radius:12px!important;background:#fff!important;box-shadow:0 5px 14px rgba(41,68,110,.045)!important}.skpi.hero{color:#182339!important;border-top:3px solid #4d7cff!important}.skpi.hero:after{display:none!important}.skpi .label,.board-kpi small{display:block!important;max-width:126px!important;color:#73819a!important;font-size:10px!important;line-height:1.35!important}.skpi strong,.board-kpi b{display:block!important;margin:12px 0 4px!important;color:#16243b!important;font-size:25px!important;letter-spacing:-.055em!important;line-height:1!important}.skpi small{display:block!important;color:#8290a4!important;font-size:9px!important;line-height:1.4!important}.skpi::before,.board-kpi::before{top:16px!important;right:16px!important;width:16px!important;height:16px!important;border-radius:5px!important;background:#5475dd!important;opacity:.95!important;box-shadow:0 0 0 7px #eef3ff}.skpi.hero::before{background:#4d7cff!important;box-shadow:0 0 0 7px #edf2ff}.skpi:nth-child(2)::before,.board-kpi:nth-child(2)::before{background:#d56776!important;box-shadow:0 0 0 7px #fff1f4}.skpi:nth-child(3)::before,.board-kpi:nth-child(3)::before{background:#299778!important;box-shadow:0 0 0 7px #eaf8f2}.skpi:nth-child(4)::before,.board-kpi:nth-child(4)::before{background:#6384b4!important;box-shadow:0 0 0 7px #edf3fb}.skpi:nth-child(5)::before{background:#9671d8!important;box-shadow:0 0 0 7px #f3efff}.skpi:nth-child(6)::before{background:#3e93bd!important;box-shadow:0 0 0 7px #eaf7fb}.board-kpis{margin-top:0!important}
/* Right-side task drawer: the detail view remains connected to the task table and has a fixed decision footer. */
.task-drawer{position:fixed;inset:0;z-index:50;pointer-events:none}.task-drawer.show{pointer-events:auto}.drawer-scrim{position:absolute;inset:0;border:0;background:rgba(18,32,57,.14);opacity:0;transition:opacity .24s ease;cursor:default}.task-drawer.show .drawer-scrim{opacity:1}.drawer-panel{position:absolute;top:0;right:0;display:grid;grid-template-rows:auto minmax(0,1fr) auto;width:min(610px,calc(100vw - 38px));height:100%;background:#fff;box-shadow:-18px 0 45px rgba(30,49,83,.18);transform:translateX(104%);transition:transform .28s cubic-bezier(.2,.75,.22,1);overflow:hidden}.task-drawer.show .drawer-panel{transform:translateX(0)}.drawer-head{display:flex;justify-content:space-between;gap:18px;padding:27px 28px 20px;border-bottom:1px solid #e4ebf4;background:linear-gradient(135deg,#fbfcff,#f4f7ff)}.drawer-eyebrow{font-size:10px;letter-spacing:.11em;color:#6980b8;font-weight:900}.drawer-head h2{max-width:480px;margin:8px 0 5px;color:#17243a;font-size:18px;line-height:1.38}.drawer-head p{margin:0;color:#75849a;font-size:11px}.drawer-close{flex:0 0 30px;width:30px;height:30px;border:1px solid #dae4f0;border-radius:8px;background:#fff;color:#66768e;font-size:20px;line-height:1;cursor:pointer}.drawer-body{min-height:0;padding:20px 28px 28px;overflow:auto}.drawer-status{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;padding:12px;border:1px solid #e1e9f4;border-radius:11px;background:#f8faff}.drawer-status>div{padding:2px 8px;border-right:1px solid #e3eaf3}.drawer-status>div:last-child{border-right:0}.drawer-label{display:block;margin-bottom:6px;color:#8290a4;font-size:9px}.drawer-status b{color:#263953;font-size:11px}.warn-text{color:#bc7925!important}.drawer-tabs{display:flex;gap:20px;margin:20px 0 3px;border-bottom:1px solid #e3e9f2}.drawer-tabs button{position:relative;padding:9px 1px;border:0;background:transparent;color:#7b899e;font-size:11px;font-weight:800;cursor:pointer}.drawer-tabs button.active{color:#326ee3}.drawer-tabs button.active:after{content:"";position:absolute;right:0;bottom:-1px;left:0;height:2px;border-radius:2px;background:#3774e8}.drawer-tabs span{padding:2px 5px;border-radius:9px;background:#edf3ff;color:#5573dc;font-size:8px}.drawer-section{padding:18px 0;border-bottom:1px solid #edf1f6}.drawer-section-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px;color:#2a3c57;font-size:12px;font-weight:850}.drawer-edit{border:0;background:transparent;color:#4775dd;font-size:10px;font-weight:800;cursor:pointer}.drawer-meta{display:grid;grid-template-columns:repeat(2,1fr);gap:14px 18px;margin:0}.drawer-meta div{min-width:0}.drawer-meta dt{margin-bottom:5px;color:#8996a9;font-size:9px}.drawer-meta dd{margin:0;overflow:hidden;color:#45566f;font-size:11px;text-overflow:ellipsis;white-space:nowrap}.drawer-note{padding:12px;border-radius:8px;background:#f6f8fc;color:#64738b;font-size:11px;line-height:1.7}.drawer-timeline{display:grid;gap:13px}.drawer-timeline>div{position:relative;padding-left:18px}.drawer-timeline>div:before{content:"";position:absolute;left:4px;top:12px;bottom:-14px;width:1px;background:#dfe7f1}.drawer-timeline>div:last-child:before{display:none}.drawer-timeline i{position:absolute;left:0;top:3px;width:9px;height:9px;border:2px solid #7a91ed;border-radius:50%;background:#fff}.drawer-timeline b{display:block;color:#3e506a;font-size:11px}.drawer-timeline small{display:block;margin-top:4px;color:#8996a9;font-size:9px}.drawer-foot{display:flex;justify-content:flex-end;gap:8px;padding:15px 
28px;border-top:1px solid #e3eaf3;background:#fff;box-shadow:0 -7px 18px rgba(45,67,106,.04)}
@media(max-width:1200px){.skpi,.board-kpi{flex-basis:170px!important;width:170px!important}.drawer-panel{width:min(580px,calc(100vw - 24px))}}
.task-table-row{cursor:pointer}.stable .task-table-row:hover td{background:#f5f8ff!important}.task-table-row:hover td:first-child{box-shadow:inset 2px 0 #5b81ee}

/* Metric revision: use the full row, but earn the space with an icon title, value and explanatory line. */
.skpis,.board-kpis{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:12px!important;width:100%!important;max-width:none!important;align-items:stretch!important}.skpis:has(.skpi:nth-child(5)){grid-template-columns:repeat(5,minmax(0,1fr))!important}.skpis:has(.skpi:nth-child(6)){grid-template-columns:repeat(6,minmax(0,1fr))!important}.skpi,.board-kpi{position:relative!important;min-width:0!important;width:auto!important;min-height:126px!important;padding:20px 18px 16px!important}.skpi .label,.board-kpi small{min-height:24px!important;max-width:calc(100% - 42px)!important;margin:0!important;padding:1px 0 0 38px!important;color:#64748d!important;font-size:11px!important;line-height:1.25!important}.skpi strong,.board-kpi b{margin:12px 0 7px!important;font-size:27px!important}.skpi small:not(.label),.metric-caption{display:block!important;min-height:13px!important;overflow:hidden!important;color:#8291a7!important;font-size:9px!important;line-height:1.45!important;text-overflow:ellipsis;white-space:nowrap!important}.metric-caption{max-width:100%}.skpi::before,.board-kpi::before{top:22px!important;left:20px!important;right:auto!important;width:15px!important;height:15px!important;border-radius:4px!important;box-shadow:0 0 0 7px #eaf1ff!important}.skpi:nth-child(2)::before,.board-kpi:nth-child(2)::before{box-shadow:0 0 0 7px #fff0f3!important}.skpi:nth-child(3)::before,.board-kpi:nth-child(3)::before{box-shadow:0 0 0 7px #eaf8f2!important}.skpi:nth-child(4)::before,.board-kpi:nth-child(4)::before{box-shadow:0 0 0 7px #edf3fb!important}.skpi:nth-child(5)::before{box-shadow:0 0 0 7px #f2eeff!important}.skpi:nth-child(6)::before{box-shadow:0 0 0 7px #eaf7fb!important}.skpi.hero{border-top:1px solid #dfe8f3!important;border-left:3px solid #4d7cff!important}.skpi.hero::before{box-shadow:0 0 0 7px #edf2ff!important}.skpi.hero .label,.skpi.hero strong,.skpi.hero small{color:inherit!important}.skpi.hero small{color:#8291a7!important}
@media(max-width:1200px){.skpis:has(.skpi:nth-child(6)){grid-template-columns:repeat(3,minmax(0,1fr))!important}.skpis:has(.skpi:nth-child(5)){grid-template-columns:repeat(3,minmax(0,1fr))!important}.skpis,.board-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important}}

/* Actual icon tiles, not a pseudo decoration: the small coloured square is the visual anchor of each KPI label. */
.skpi::before,.board-kpi::before{display:none!important}.metric-icon{position:absolute;top:18px;left:18px;display:grid;place-items:center;width:27px;height:27px;border-radius:7px;background:#4d7cff;box-shadow:0 5px 11px #4d7cff26}.metric-icon .glyph{display:block!important;width:14px!important;height:14px!important;flex:0 0 14px!important;color:#fff!important}.metric-icon-archive{background:#6483b3}.metric-icon-aegis{background:#2c9a79}.metric-icon-notification{background:#d46775}.metric-icon-refine{background:#916ed3}.metric-icon-switch{background:#3c94ba}.skpi .label,.board-kpi small{padding-left:38px!important}

/* KPI icon treatment: outlined glyph on a pale badge, never a solid colour block. */
.metric-icon{display:grid!important;place-items:center!important;width:29px!important;height:29px!important;border:1px solid #dce7fb!important;border-radius:8px!important;background:#f3f7ff!important;box-shadow:none!important;color:#3e73e1!important}.metric-icon svg{display:block!important;width:17px!important;height:17px!important;fill:none!important;stroke:currentColor!important;stroke-width:1.8!important;stroke-linecap:round!important;stroke-linejoin:round!important}.metric-icon-archive{color:#607aa5!important;background:#f3f6fb!important;border-color:#dfe7f1!important}.metric-icon-aegis{color:#278d70!important;background:#edf9f4!important;border-color:#d8eee4!important}.metric-icon-notification{color:#c65f70!important;background:#fff3f5!important;border-color:#f4dce2!important}.metric-icon-refine{color:#8564c8!important;background:#f5f1ff!important;border-color:#e7def8!important}.metric-icon-switch{color:#2785ab!important;background:#eef8fb!important;border-color:#d9edf4!important}.skpi strong,.board-kpi b{text-align:center!important}.skpi small:not(.label),.metric-caption{text-align:center!important}
