/* Sfera CRM Task 1.144: approved task mockup interpreted with existing CRM tokens.
   Presentation-only, loaded LAST; all selectors scoped to Task and Task modals. */
#task-view.task-view--v2{
 --task-v5-navy:#0e2166;--task-v5-blue:#3b78eb;--task-v5-surface:#fff;
 --task-v5-line:#e1e9f4;--task-v5-muted:#7f92ad;--task-v5-shadow:0 7px 23px rgba(21,52,108,.06);
 background:transparent;
}
#task-view.task-view--v2 #task-v2-root.task-v5{
 display:block!important;max-width:1760px!important;padding:0 0 32px!important;
 font-family:"Open Sans",sans-serif!important;color:#18335c;
}
#task-view #task-v2-root.task-v5>*{min-width:0}
#task-view #task-v2-root.task-v5 .task-studio-intro{
 display:flex!important;align-items:center!important;min-height:44px!important;
 margin:0 0 17px!important;padding:0!important;
}
#task-view #task-v2-root.task-v5 .task-studio-intro h1{
 color:var(--task-v5-navy)!important;font:650 clamp(25px,2.2vw,35px)/1.22 Poppins,"Open Sans",sans-serif!important;
 letter-spacing:-.045em!important;
}
#task-view #task-v2-root .task-v5-insights{
 display:grid!important;grid-template-columns:minmax(0,1.8fr) minmax(0,1.12fr)!important;
 gap:14px!important;margin-bottom:16px!important;align-items:stretch;
}
#task-view #task-v2-root .task-v5-chart,
#task-view #task-v2-root .task-v5-kpi,
#task-view #task-v2-root .task-v5-stat-card{
 border:1px solid var(--task-v5-line)!important;border-radius:16px!important;background:#fff!important;
 box-shadow:var(--task-v5-shadow)!important;
}
#task-view #task-v2-root .task-v5-chart{
 box-sizing:border-box;display:flex;flex-direction:column;gap:12px;min-width:0;
 padding:18px 20px 16px!important;min-height:306px;
}
#task-view #task-v2-root .task-v5-chart-head{
 display:flex;align-items:center;justify-content:space-between;gap:10px;
 margin:0!important;padding:0!important;flex-wrap:wrap;
}
#task-view #task-v2-root .task-v5-chart-name{
 display:flex;align-items:center;gap:10px;min-width:0;
}
#task-view #task-v2-root .task-v5-icon{
 display:grid;place-items:center;flex:0 0 32px;width:32px;height:32px;
 border-radius:10px;background:#ecf4ff;color:var(--task-v5-blue);
}
#task-view #task-v2-root .task-v5-icon svg{width:17px;height:17px}
#task-view #task-v2-root .task-v5-chart h2,
#task-view #task-v2-root .task-v5-stat-card h3{
 margin:0!important;color:#143265!important;font:650 13px/1.4 Poppins,"Open Sans",sans-serif!important;
}
#task-view #task-v2-root .task-v5-chart p,
#task-view #task-v2-root .task-v5-stat-card p{margin:3px 0 0;color:#8395ad;font-size:10px;line-height:1.5}
#task-view #task-v2-root .task-v5-period{
 box-sizing:border-box;max-width:160px;min-height:34px;
 padding:6px 26px 6px 11px;border:1px solid #dce8f8;border-radius:9px;
 background:#f8fbff;color:#31578e;font:600 11px "Open Sans",sans-serif;
}
#task-view #task-v2-root .task-v5-chart-body{flex:1;display:flex;flex-direction:column;min-height:0}
#task-view #task-v2-root .task-v5-visual{
 display:grid;grid-template-columns:minmax(0,1fr) minmax(128px,.26fr);gap:16px;flex:1;
}
#task-view #task-v2-root .task-v5-plot{min-width:0}
#task-view #task-v2-root .task-v5-plot>svg{display:block;width:100%;height:188px;overflow:visible}
#task-view #task-v2-root .task-v5-chart-gridline{stroke:#e5edf7;stroke-width:1}
#task-view #task-v2-root .task-v5-series{
 fill:none;stroke-width:3.4;stroke-linecap:round;stroke-linejoin:round;
 stroke-dasharray:1800;stroke-dashoffset:0;
 animation:task-v5-trace .52s cubic-bezier(.16,.8,.3,1) both;
}
@keyframes task-v5-trace{from{stroke-dashoffset:1800}to{stroke-dashoffset:0}}
#task-view #task-v2-root .task-v5-chart-axis{
 display:flex;justify-content:space-between;margin:0 14px 0 26px;
 color:#9aaac0;font-size:9px;
}
#task-view #task-v2-root .task-v5-chart-aside{display:grid}
#task-view #task-v2-root .task-v5-chart-aside,
#task-view #task-v2-root .task-v5-visual aside{
 display:flex;flex-direction:column;align-items:flex-start;justify-content:center;
 gap:10px;border-left:1px solid #edf1f8;padding-left:15px;min-width:0;
}
#task-view #task-v2-root .task-v5-visual aside .task-v5-icon{
 background:#eaf8f2;color:#28a073;width:38px;height:38px;flex-basis:38px;
}
#task-view #task-v2-root .task-v5-visual aside strong{
 color:#173568;font:700 13px/1.4 Poppins,sans-serif;
}
#task-view #task-v2-root .task-v5-visual aside p{font-size:11px;color:#7085a4;margin:0;line-height:1.6}
#task-view #task-v2-root .task-v5-visual aside small{
 color:#5784b4;background:#eff6ff;padding:6px 8px;border-radius:8px;
 font-size:9px;font-weight:600;line-height:1.35;
}
#task-view #task-v2-root .task-v5-legend{
 display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;
 gap:7px;border-top:1px solid #eef2f8;padding-top:12px;
}
#task-view #task-v2-root .task-v5-legend-item{
 display:inline-flex;align-items:center;gap:6px;min-height:29px;
 padding:4px 6px;border:0!important;border-radius:7px;background:transparent!important;
 box-shadow:none!important;color:#536f96;font-size:10px;font-weight:600;
}
#task-view #task-v2-root .task-v5-legend-item[aria-pressed="false"]{opacity:.45}
#task-view #task-v2-root .task-v5-legend-item i{
 width:8px;height:8px;flex:0 0 8px;border-radius:50%;
}
#task-view #task-v2-root .task-v5-legend-item strong{color:#1b3a70;font-weight:750}
#task-view #task-v2-root .task-v5-empty,
#task-view #task-v2-root .task-v5-chart-missing{
 display:flex;align-items:center;justify-content:center;
 min-height:130px;text-align:center;font-size:11px;color:#8da0b8;
}
#task-view #task-v2-root .task-v5-kpi-shell{min-width:0}
#task-view #task-v2-root .task-v5-kpi-shell .task-v2-kpis{
 display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
 gap:12px!important;height:100%!important;margin:0!important;
}
#task-view #task-v2-root .task-v2-kpis>button.task-v5-kpi{
 box-sizing:border-box!important;position:relative!important;
 display:grid!important;grid-template-columns:34px minmax(0,1fr) 62px!important;
 grid-template-rows:24px 40px 26px 6px!important;
 align-content:center!important;align-items:center!important;
 min-height:145px!important;margin:0!important;padding:14px 15px!important;
 overflow:hidden!important;text-align:left!important;
 border-top:1px solid var(--task-v5-line)!important;transform:none!important;
 transition:border-color .16s,box-shadow .16s,background-color .16s!important;
}
#task-view #task-v2-root .task-v2-kpis>button.task-v5-kpi:hover{
 box-shadow:0 8px 24px rgba(14,33,102,.095)!important;border-color:#c8dbf7!important;
}
#task-view #task-v2-root .task-v5-kpi-icon{
 grid-column:1!important;grid-row:1!important;
 width:28px!important;height:28px!important;flex-basis:28px!important;
}
#task-view #task-v2-root .task-v5-kpi>span:not(.task-v5-kpi-icon):not(.task-v5-mini-spark):not(.task-studio-motif):not(.task-v3-kpi__icon){
 grid-column:2/4!important;grid-row:1!important;
 color:#203e70;font:700 11px/1.3 "Open Sans",sans-serif!important;
}
#task-view #task-v2-root .task-v5-kpi>strong{
 grid-column:1/3!important;grid-row:2!important;
 color:#122d68;font:700 28px/1.2 Poppins,sans-serif!important;
 font-variant-numeric:tabular-nums;
}
#task-view #task-v2-root .task-v5-kpi>small{
 grid-column:1/4!important;grid-row:3!important;
 font:500 10px/1.4 "Open Sans",sans-serif!important;color:#8095ae!important;
}
#task-view #task-v2-root .task-v5-kpi .task-v5-mini-spark{
 grid-column:3!important;grid-row:2!important;
 width:62px!important;height:25px!important;
}
#task-view #task-v2-root .task-v5-mini-spark svg{display:block;width:100%;height:100%;fill:none;stroke:var(--task-v5-blue);stroke-width:2}
#task-view #task-v2-root .task-v5-kpi[data-tone="amber"] .task-v5-mini-spark svg{stroke:#eeb44b}
#task-view #task-v2-root .task-v5-kpi[data-tone="red"] .task-v5-mini-spark svg{stroke:#e66b7c}
#task-view #task-v2-root .task-v5-kpi[data-tone="green"] .task-v5-mini-spark svg{stroke:#36b98c}
#task-view #task-v2-root .task-v5-kpi .task-studio-motif,
#task-view #task-v2-root .task-v5-kpi .task-v3-kpi__icon{display:none!important}
#task-view #task-v2-root .task-v5-kpi:after{
 content:"";grid-column:1/4!important;grid-row:4!important;
 height:5px!important;width:100%!important;border-radius:8px!important;
 background:linear-gradient(to right,var(--task-v5-blue) 0 42%,#e8eff8 42% 100%)!important;
}
#task-view #task-v2-root .task-v5-kpi[data-tone="amber"]:after{background:linear-gradient(to right,#efaf40 0 34%,#e8eff8 34% 100%)!important}
#task-view #task-v2-root .task-v5-kpi[data-tone="red"]:after{background:linear-gradient(to right,#e86c80 0 22%,#e8eff8 22% 100%)!important}
#task-view #task-v2-root .task-v5-kpi[data-tone="green"]:after{background:linear-gradient(to right,#39b98c 0 57%,#e8eff8 57% 100%)!important}

/* Native Task list remains source of truth; tabs are a visual navigation layer. */
#task-view #task-v2-root .task-v5-management{
 margin:0 0 16px!important;border:1px solid var(--task-v5-line)!important;
 border-radius:17px!important;background:#fff!important;
 box-shadow:var(--task-v5-shadow)!important;overflow:visible!important;
}
#task-view #task-v2-root .task-v5-tabs{
 display:flex;gap:5px;align-items:center;
 padding:0 16px;border-bottom:1px solid #e4ecf7;
 min-height:51px;
}
#task-view #task-v2-root .task-v5-tabs>button{
 display:inline-flex;align-items:center;justify-content:center;
 min-height:49px!important;padding:0 17px!important;margin:0!important;
 border:0!important;border-bottom:3px solid transparent!important;
 border-radius:0!important;background:transparent!important;box-shadow:none!important;
 color:#788da9!important;font:650 12px "Open Sans",sans-serif!important;
}
#task-view #task-v2-root .task-v5-tabs>button[data-active="true"]{
 color:#276de0!important;border-color:#3b78eb!important;
}
#task-view #task-v2-root .task-v3-management-heading{display:none!important}
#task-view #task-v2-root .task-v5-management .task-v4-toolbar{
 display:flex!important;align-items:center!important;flex-wrap:wrap!important;
 gap:9px!important;min-height:60px!important;margin:0!important;
 padding:11px 16px!important;border:0!important;border-bottom:1px solid #e8eef8!important;
 border-radius:0!important;background:#fff!important;
}
#task-view #task-v2-root .task-v5-native-views{display:none!important}
#task-view #task-v2-root .task-v5-actions{
 margin-left:auto;display:flex;align-items:center;gap:7px;min-width:0;
}
#task-view #task-v2-root .task-v5-actions>button{
 display:inline-flex!important;align-items:center!important;justify-content:center!important;
 gap:6px;min-height:35px!important;padding:8px 12px!important;margin:0!important;
 border:1px solid #dbe7f6!important;border-radius:9px!important;
 color:#315f9e!important;background:#fff!important;
 font:700 11px/1.3 "Open Sans",sans-serif!important;
 box-shadow:none!important;
}
#task-view #task-v2-root .task-v5-actions>.task-v5-create{
 color:#fff!important;background:#3b78eb!important;border-color:#3b78eb!important;
}
#task-view #task-v2-root .task-v5-actions>.task-v5-reload{font-size:20px!important;width:36px;padding:3px!important}
#task-view #task-v2-root .task-studio-quick{padding:7px 15px!important;margin:0!important;background:#fcfdff;border-bottom:1px solid #e8edf5}
#task-view #task-v2-root .task-v5-filter-panel{
 margin:0!important;padding:15px!important;border:0!important;
 border-bottom:1px solid #e5edf9!important;border-radius:0!important;
 background:#f9fbff!important;overflow:visible!important;
}
#task-view #task-v2-root .task-v5-filter-panel label{min-width:0;position:relative}
#task-view #task-v2-root .task-v5-select{display:block;position:relative;min-width:0;width:100%}
#task-view #task-v2-root .task-v5-select[data-open="true"]{z-index:60}
#task-view #task-v2-root .task-v5-native-select{
 position:absolute!important;clip-path:inset(50%)!important;
 width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important;
}
#task-view #task-v2-root .task-v5-select-trigger{
 box-sizing:border-box;display:flex!important;align-items:center;justify-content:space-between!important;
 width:100%;min-height:40px;padding:10px 12px;
 color:#31527f;background:#fff;border:1px solid #dce7f6;border-radius:10px;
 font:600 12px "Open Sans",sans-serif;text-align:left;
}
#task-view #task-v2-root .task-v5-select-trigger:after{content:"⌄";color:#6485b0;font-size:16px}
#task-view #task-v2-root .task-v5-select-menu{
 box-sizing:border-box;position:absolute;top:calc(100% + 5px);left:0;right:0;
 display:none;max-height:260px;overflow-y:auto;z-index:65;padding:5px;
 border:1px solid #dce7f6;border-radius:11px;background:#fff;
 box-shadow:0 15px 30px rgba(18,49,106,.13);
}
#task-view #task-v2-root .task-v5-select[data-open="true"] .task-v5-select-menu{display:grid;gap:2px}
#task-view #task-v2-root .task-v5-select-option{
 display:flex!important;align-items:center;justify-content:space-between;
 min-height:34px!important;padding:8px 9px!important;border:0!important;border-radius:7px!important;
 text-align:left!important;background:#fff!important;color:#46628a!important;font-size:11px!important;
}
#task-view #task-v2-root .task-v5-select-option:hover,
#task-view #task-v2-root .task-v5-select-option[aria-selected="true"]{
 background:#edf5ff!important;color:#235ebc!important;
}

/* Desktop native table, visually aligned to Companies and Opportunities. */
#task-view #task-v2-root .task-v5-management .task-v2-table-wrap{
 box-sizing:border-box;overflow-x:auto!important;border:0!important;border-radius:0!important;margin:0!important;background:#fff!important;
}
#task-view #task-v2-root .task-v5-management .task-v5-table{
 display:table!important;table-layout:fixed;border-collapse:collapse;width:100%!important;
 min-width:890px!important;background:#fff!important;
 font-family:"Open Sans",sans-serif!important;
}
#task-view #task-v2-root .task-v5-table thead th{
 background:#f5f7fc!important;color:#647995!important;
 padding:15px 11px!important;border-bottom:1px solid #e3eaf5!important;
 font:700 10px/1.35 "Open Sans",sans-serif!important;letter-spacing:.035em;
 text-transform:uppercase;text-align:left;white-space:nowrap;
}
#task-view #task-v2-root .task-v5-table th:nth-child(1){width:26%}
#task-view #task-v2-root .task-v5-table th:nth-child(2){width:9%}
#task-view #task-v2-root .task-v5-table th:nth-child(3){width:11%}
#task-view #task-v2-root .task-v5-table th:nth-child(4){width:12%}
#task-view #task-v2-root .task-v5-table th:nth-child(5){width:16%}
#task-view #task-v2-root .task-v5-table th:nth-child(6){width:13%}
#task-view #task-v2-root .task-v5-table th:nth-child(7){width:9%}
#task-view #task-v2-root .task-v5-table th:nth-child(8){width:4%}
#task-view #task-v2-root .task-v5-table tbody tr.task-v5-row{height:70px}
#task-view #task-v2-root .task-v5-table tbody tr.task-v5-row td{
 box-sizing:border-box!important;
 padding:11px!important;border:0!important;border-bottom:1px solid #edf1f7!important;
 background:#fff!important;font-size:11px!important;
 color:#24416e!important;vertical-align:middle!important;
}
#task-view #task-v2-root .task-v5-table tbody tr.task-v5-row:nth-child(even) td{background:#fcfdff!important}
#task-view #task-v2-root .task-v5-table tbody tr.task-v5-row:hover td{
 background:#f4f7fc!important;box-shadow:none!important;
}
#task-view #task-v2-root .task-v5-table .task-v3-task-cell strong{
 color:#123364!important;font-weight:700!important;font-size:12px!important;
}
#task-view #task-v2-root .task-v5-priority span,
#task-view #task-v2-root .task-v5-status span{
 display:inline-flex;align-items:center;justify-content:center;
 border-radius:7px;padding:5px 9px;max-width:100%;
 font:700 10px "Open Sans",sans-serif!important;
}
#task-view #task-v2-root .task-v5-priority-p1{background:#ffeaec;color:#bd4354}
#task-view #task-v2-root .task-v5-priority-p2{background:#fff2df;color:#a36f29}
#task-view #task-v2-root .task-v5-priority-p3{background:#e6f7ef;color:#16845b}
#task-view #task-v2-root .task-v5-state-todo{background:#edf4ff;color:#2d70d2}
#task-view #task-v2-root .task-v5-state-done{background:#e6f7ed;color:#159266}
#task-view #task-v2-root .task-v5-assignee{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
#task-view #task-v2-root .task-v5-avatar{
 display:inline-grid;place-items:center;vertical-align:middle;
 width:27px;height:27px;border-radius:50%;margin-right:7px;
 background:#eaf3ff;color:#2d63ba;font-weight:750;font-size:9px;
}
#task-view #task-v2-root .task-v5-progress-cell{min-width:0}
#task-view #task-v2-root .task-v5-progress-cell>strong{display:block;margin-bottom:7px;color:#1b407c;font-size:10px}
#task-view #task-v2-root .task-v5-progress-bar{
 display:block;width:100%;height:7px;border-radius:8px;overflow:hidden;
 background:#eaf0f8;
}
#task-view #task-v2-root .task-v5-progress-bar>i{
 display:block;width:var(--fraction,0%);height:100%;border-radius:8px;
 background:#3b78eb;
 transition:width .4s cubic-bezier(.16,.84,.28,1);
}
#task-view #task-v2-root .task-v5-progress-bar>i.is-complete{background:#2eb58a}
#task-view #task-v2-root .task-v5-management .task-v2-pagination{
 border-top:1px solid #e9eef7!important;background:#fff!important;
 border-radius:0 0 17px 17px!important;
}

/* Board remains fully operable through the original drag/drop + completion code. */
#task-view #task-v2-root .task-kanban-board{gap:12px!important}
#task-view #task-v2-root .task-kanban-column{
 border:1px solid #e1e9f3!important;border-radius:14px!important;
 background:#f9fbff!important;overflow:hidden!important;
}
#task-view #task-v2-root .task-kanban-column__header{
 position:relative;min-height:106px!important;
 border-bottom:1px solid #e4ebf6!important;background:#fff!important;
}
#task-view #task-v2-root .task-v5-board-gauge{
 position:absolute;right:12px;top:12px;
 display:grid;place-items:center;gap:1px;
 width:60px;height:60px;z-index:2;
 border-radius:50%;
 background:radial-gradient(closest-side,#fff 73%,transparent 75% 100%),conic-gradient(#3b78eb var(--progress),#e7eef8 0);
}
#task-view #task-v2-root .task-v5-board-gauge strong{font:700 13px Poppins,sans-serif;color:#1f4e95}
#task-view #task-v2-root .task-v5-board-gauge small{font-size:8px;color:#8295b1}
#task-view #task-v2-root .task-kanban-card{
 background:#fff!important;border:1px solid #dfe8f4!important;
 border-left:1px solid #dfe8f4!important;border-radius:13px!important;
 box-shadow:0 3px 10px rgba(19,52,108,.035)!important;
 transition:box-shadow .16s,transform .16s!important;
}
#task-view #task-v2-root .task-kanban-card:hover{
 transform:translateY(-2px)!important;box-shadow:0 8px 21px rgba(19,52,108,.075)!important;
}

/* Analytics below management, varied purposes and density. */
#task-view #task-v2-root .task-v5-statistics{scroll-margin-top:70px}
#task-view #task-v2-root .task-v5-stat-heading{
 display:flex;align-items:baseline;justify-content:space-between;gap:12px;flex-wrap:wrap;
 margin:0 0 12px!important;padding:0 1px!important;
}
#task-view #task-v2-root .task-v5-stat-heading h2{
 font:650 18px/1.35 Poppins,"Open Sans",sans-serif!important;color:#142f66!important;margin:0!important;
}
#task-view #task-v2-root .task-v5-stat-heading small{font-size:11px;color:#93a5bb}
#task-view #task-v2-root .task-v5-stat-grid{
 display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;
}
#task-view #task-v2-root .task-v5-stat-card{
 min-width:0;min-height:218px;padding:17px!important;
}
#task-view #task-v2-root .task-v5-stat-card>header{
 display:flex;align-items:center;gap:9px;margin-bottom:17px!important;
}
#task-view #task-v2-root .task-v5-stat-card>header .task-v5-icon{flex-basis:30px;width:30px;height:30px}
#task-view #task-v2-root .task-v5-workload{display:grid;gap:13px}
#task-view #task-v2-root .task-v5-work-row{
 display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1.7fr) 22px;
 gap:7px;align-items:center;color:#547193;font-size:9px;
}
#task-view #task-v2-root .task-v5-work-row>span:first-child{
 overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
#task-view #task-v2-root .task-v5-work-bar{
 display:flex;height:9px;border-radius:8px;overflow:hidden;background:#eaf0f8;
}
#task-view #task-v2-root .task-v5-work-bar i.is-open{background:#3b78eb}
#task-view #task-v2-root .task-v5-work-bar i.is-done{background:#66d1af}
#task-view #task-v2-root .task-v5-work-row strong{font-size:10px;color:#203d70;text-align:right}
#task-view #task-v2-root .task-v5-priority-visual{
 display:grid;grid-template-columns:110px minmax(0,1fr);gap:10px;align-items:center;
}
#task-view #task-v2-root .task-v5-priority-ring{
 width:108px;height:108px;display:grid;place-items:center;border-radius:50%;
 position:relative;isolation:isolate;
}
#task-view #task-v2-root .task-v5-priority-ring:before{
 content:"";position:absolute;inset:14px;border-radius:50%;background:#fff;z-index:-1;
}
#task-view #task-v2-root .task-v5-priority-ring strong{font:750 17px Poppins,sans-serif;color:#234275}
#task-view #task-v2-root .task-v5-priority-labels{display:grid;gap:11px}
#task-view #task-v2-root .task-v5-priority-labels>div{
 display:flex;align-items:center;gap:7px;font-size:10px;color:#627d9f;
}
#task-view #task-v2-root .task-v5-priority-labels i{width:7px;height:7px;border-radius:50%}
#task-view #task-v2-root .task-v5-priority-labels .p0{background:#eb6373}
#task-view #task-v2-root .task-v5-priority-labels .p1{background:#efb24a}
#task-view #task-v2-root .task-v5-priority-labels .p2{background:#47ba90}
#task-view #task-v2-root .task-v5-priority-labels strong{margin-left:auto;color:#1b3f7a}
#task-view #task-v2-root .task-v5-week-columns{
 display:flex;align-items:end;justify-content:space-between;gap:9px;height:135px;
}
#task-view #task-v2-root .task-v5-week-column{
 display:grid;grid-template-rows:18px 90px 22px;
 flex:1;align-items:end;text-align:center;gap:3px;min-width:0;
}
#task-view #task-v2-root .task-v5-week-column strong{color:#224d99;font-size:11px}
#task-view #task-v2-root .task-v5-week-track{
 position:relative;display:flex;align-items:flex-end;justify-content:stretch;
 height:90px;overflow:hidden;border-bottom:1px solid #e5edf9;
}
#task-view #task-v2-root .task-v5-week-track i{
 display:block;width:100%;min-height:2px;
 background:#9ac4fb;border-radius:7px 7px 0 0;
}
#task-view #task-v2-root .task-v5-week-column:last-child .task-v5-week-track i{background:#3b78eb}
#task-view #task-v2-root .task-v5-week-column small{color:#8599b4;font-size:9px}
#task-view #task-v2-root .task-v5-duration{
 display:block;margin:40px 0 6px;color:#142d67;font:750 27px Poppins,sans-serif;
}
#task-view #task-v2-root .task-v5-duration-note{font-size:11px!important;line-height:1.6!important}

/* Detailed task panel: white grouped sections, independent fixed action dock. */
#task-v2-detail-modal.task-v2-modal[hidden],
#task-v2-editor.task-v2-modal[hidden]{display:none!important}
#task-v2-detail-modal.task-v2-modal{
 display:flex!important;align-items:stretch!important;justify-content:flex-end!important;
 position:fixed!important;inset:0!important;max-height:100dvh!important;
 z-index:12050!important;overflow:hidden!important;
}
#task-v2-detail-modal .task-v5-detail{
 width:min(620px,100vw)!important;max-width:100vw!important;
 height:100dvh!important;max-height:100dvh!important;
 display:flex!important;flex-direction:column!important;
 min-height:0!important;overflow:hidden!important;border-radius:0!important;
 background:#f7faff!important;
}
#task-v2-detail-modal .task-v5-detail>header{
 display:flex!important;flex:0 0 auto!important;align-items:center!important;
 justify-content:space-between!important;min-height:80px!important;
 padding:18px 22px!important;background:#fff!important;border-bottom:1px solid #e4edf8!important;
}
#task-v2-detail-modal .task-v5-detail>header h2{font:700 19px Poppins,sans-serif!important;color:#0e2166!important}
#task-v2-detail-modal .task-v5-detail>header #task-v2-detail-kind{
 color:#2d73cc!important;background:#e9f3ff!important;border-radius:8px;padding:5px 9px;
}
#task-v2-detail-modal .task-v5-detail-scroll{
 flex:1 1 0!important;min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important;
 padding:16px 18px 20px!important;overscroll-behavior:contain!important;
 display:grid;align-content:start;gap:12px;
}
#task-v2-detail-modal .task-v5-detail #task-v2-detail-data{
 display:grid!important;gap:10px!important;padding:0!important;margin:0!important;
 overflow:visible!important;min-width:0!important;max-height:none!important;
}
#task-v2-detail-modal .task-v5-detail-section,
#task-v2-detail-modal .task-v5-detail-scroll>section{
 border:1px solid #dfe9f7!important;background:#fff!important;border-radius:13px!important;
 padding:16px!important;box-shadow:0 3px 11px rgba(18,50,103,.035)!important;
}
#task-v2-detail-modal .task-v5-detail-section h3{
 color:#16366a!important;font:700 12px Poppins,sans-serif!important;margin:0 0 12px!important;
}
#task-v2-detail-modal .task-v5-detail-section dl{
 display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0!important;
}
#task-v2-detail-modal .task-v5-detail-section dl>div{
 border:1px solid #e7eef9!important;background:#fafdff!important;border-radius:10px!important;
 min-width:0;padding:11px!important;
}
#task-v2-detail-modal .task-v5-detail-section dt{
 font:650 9px "Open Sans",sans-serif;color:#879bb8!important;margin-bottom:7px!important;
}
#task-v2-detail-modal .task-v5-detail-section dd{
 color:#214477!important;font:700 11px/1.5 "Open Sans",sans-serif!important;
 overflow-wrap:anywhere;
}
#task-v2-detail-modal .task-v5-detail-dock{
 box-sizing:border-box;position:relative!important;z-index:10!important;
 display:flex!important;align-items:center!important;justify-content:space-around!important;
 flex-wrap:nowrap!important;flex:0 0 auto!important;gap:8px!important;
 width:100%!important;min-height:77px!important;
 margin:0!important;padding:11px 13px calc(11px + env(safe-area-inset-bottom,0px))!important;
 background:#fff!important;border-top:1px solid #dee9f7!important;box-shadow:0 -4px 14px rgba(22,55,110,.045);
}
#task-v2-detail-modal .task-v5-detail-dock>button:not([hidden]){
 display:flex!important;flex:1 1 0!important;flex-direction:column!important;
 align-items:center!important;justify-content:center!important;gap:6px!important;
 min-height:52px!important;max-width:none!important;margin:0!important;padding:7px!important;
 border:1px solid #dce7f7!important;border-radius:10px!important;
 background:#f5f9ff!important;color:#2d67b7!important;
 box-shadow:none!important;opacity:1!important;visibility:visible!important;
}
#task-v2-detail-modal .task-v5-detail-dock>button[data-v5-tone="done"]:not([hidden]){
 background:#ecf9f2!important;border-color:#cceadb!important;color:#1f9568!important;
}
#task-v2-detail-modal .task-v5-detail-dock .task-v5-action-label{
 display:block!important;font:700 10px "Open Sans",sans-serif!important;
 color:inherit!important;-webkit-text-fill-color:currentColor!important;opacity:1!important;visibility:visible!important;
}
#task-v2-detail-modal .task-v5-detail-dock button svg{
 display:block;width:18px;height:18px;stroke:currentColor;fill:none;
}
#task-v2-editor.task-v2-modal .task-v2-dialog{
 width:min(660px,100vw)!important;max-width:100vw!important;
 max-height:100dvh!important;height:100dvh!important;
 border-radius:0!important;overflow:hidden!important;
}
#task-v2-editor.task-v2-modal .task-v2-dialog__body{
 flex:1 1 0!important;min-height:0!important;overflow-y:auto!important;
}
#task-v2-editor.task-v2-modal .task-v2-dialog__footer{
 flex:0 0 auto!important;position:relative!important;z-index:8!important;
 background:#fff!important;padding-bottom:calc(12px + env(safe-area-inset-bottom,0px))!important;
}
@media(max-width:1180px){
 #task-view #task-v2-root .task-v5-insights{grid-template-columns:minmax(0,1fr)!important}
 #task-view #task-v2-root .task-v5-kpi-shell .task-v2-kpis{grid-template-columns:repeat(4,minmax(0,1fr))!important}
 #task-view #task-v2-root .task-v5-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:760px){
 #task-view #task-v2-root .task-v5-insights{gap:12px!important}
 #task-view #task-v2-root .task-v5-chart{padding:14px!important;min-height:0!important}
 #task-view #task-v2-root .task-v5-visual{grid-template-columns:minmax(0,1fr)!important}
 #task-view #task-v2-root .task-v5-visual aside{display:none!important}
 #task-view #task-v2-root .task-v5-plot>svg{height:170px}
 #task-view #task-v2-root .task-v5-kpi-shell .task-v2-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 #task-view #task-v2-root .task-v2-kpis>button.task-v5-kpi{
  min-height:130px!important;padding:12px!important;
  grid-template-columns:30px minmax(0,1fr) 48px!important;
 }
 #task-view #task-v2-root .task-v5-kpi .task-v5-mini-spark{width:47px!important}
 #task-view #task-v2-root .task-v5-legend{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:3px}
 #task-view #task-v2-root .task-v5-management{border-radius:15px!important}
 #task-view #task-v2-root .task-v5-management .task-v4-toolbar{padding:10px!important}
 #task-view #task-v2-root .task-v5-tabs{padding:0 8px}
 #task-view #task-v2-root .task-v5-tabs>button{padding:0 11px!important;min-height:44px!important}
 #task-view #task-v2-root .task-v5-actions{width:100%;justify-content:flex-end}
 #task-view #task-v2-root .task-v5-actions>button{min-height:37px!important}
 #task-view #task-v2-root .task-v5-stat-grid{grid-template-columns:minmax(0,1fr)!important}
 #task-view #task-v2-root .task-v5-stat-card{min-height:170px}
 #task-view #task-v2-root .task-v5-mobile-card{
  border:1px solid #e0e9f5!important;border-radius:13px!important;
  background:#fff!important;box-shadow:0 4px 14px rgba(20,51,108,.045)!important;
  padding:15px!important;min-width:0!important;overflow:hidden!important;
 }
 #task-view #task-v2-root .task-v5-mobile-card .task-v5-card-progress{
  display:block;font-size:10px;color:#667f9e;margin:10px 0 6px;
 }
 #task-view #task-v2-root .task-v5-mobile-card .task-v5-progress-bar{height:7px}
 #task-v2-detail-modal .task-v5-detail-scroll{padding:12px!important}
 #task-v2-detail-modal .task-v5-detail-section dl{grid-template-columns:minmax(0,1fr)}
 #task-v2-detail-modal .task-v5-detail-dock{gap:5px!important;padding-inline:6px!important}
 #task-v2-detail-modal .task-v5-detail-dock>button:not([hidden]){padding:5px!important;min-height:55px!important}
 #task-v2-detail-modal .task-v5-detail-dock .task-v5-action-label{font-size:9px!important}
 /* Native topbar is already one-row and icon-based in Task Sfera: preserve it. */
 #signed-in.app-shell:has(#task-view:not([hidden])) .app-topbar.portal-topbar{
  min-height:56px!important;height:56px!important;max-height:56px!important;
  display:flex!important;flex-wrap:nowrap!important;align-items:center!important;
 }
 #signed-in.app-shell:has(#task-view:not([hidden])) .task-studio-topbar{
  display:flex!important;flex-wrap:nowrap!important;align-items:center!important;
  min-width:0!important;height:56px!important;
 }
 #signed-in.app-shell:has(#task-view:not([hidden])) .task-studio-topbar .task-studio-topbar__search{
  max-width:45px!important;min-width:40px!important;flex:0 0 42px!important;overflow:hidden!important;
  cursor:pointer;
 }
 #signed-in.app-shell:has(#task-view:not([hidden])) .task-studio-topbar .task-studio-topbar__name{display:none!important}
 #signed-in.app-shell:has(#task-view:not([hidden])) .task-studio-topbar #task-v2-new{display:grid!important;min-width:38px!important;width:38px!important;min-height:38px!important}
}
@media(max-width:420px){
 #task-view #task-v2-root .task-v2-kpis>button.task-v5-kpi{min-height:118px!important}
 #task-view #task-v2-root .task-v5-kpi>strong{font-size:25px!important}
 #task-view #task-v2-root .task-v5-chart-name{gap:7px}
 #task-view #task-v2-root .task-v5-chart h2{font-size:11px!important}
 #task-view #task-v2-root .task-v5-chart p{font-size:9px}
 #task-view #task-v2-root .task-v5-period{max-width:138px}
}
@media(prefers-reduced-motion:reduce){
 #task-view #task-v2-root *,#task-v2-detail-modal *,#task-v2-editor *{
  animation:none!important;transition:none!important;scroll-behavior:auto!important;
 }
}

/* Task v5 mobile agenda: the list is actionable and uses the loaded page only. */
#task-view #task-v2-root .task-v5-upcoming{
 display:none;margin:0 0 15px;padding:14px;
 border:1px solid #dfe9f6;border-radius:15px;background:#fff;
 box-shadow:0 6px 19px rgba(21,52,108,.05);
}
#task-view #task-v2-root .task-v5-upcoming>header{
 display:flex;align-items:center;gap:10px;margin:0 0 10px;
}
#task-view #task-v2-root .task-v5-upcoming h2{
 margin:0;color:#17376d;font:700 14px Poppins,sans-serif;
}
#task-view #task-v2-root .task-v5-upcoming p{
 margin:3px 0 0;color:#8395b0;font-size:10px;
}
#task-view #task-v2-root .task-v5-upcoming-list{display:grid}
#task-view #task-v2-root .task-v5-upcoming-item{
 display:grid;grid-template-columns:minmax(90px,.65fr) minmax(0,1fr) 12px;
 gap:9px;align-items:center;width:100%;min-height:53px;
 border:0;border-bottom:1px solid #eef2fa;background:#fff;
 box-shadow:none;padding:9px 3px;text-align:left;color:#274a80;
}
#task-view #task-v2-root .task-v5-upcoming-item:last-child{border-bottom:0}
#task-view #task-v2-root .task-v5-upcoming-item:hover{background:#f7faff}
#task-view #task-v2-root .task-v5-upcoming-date{
 font:700 10px "Open Sans",sans-serif;color:#3874c5;
}
#task-view #task-v2-root .task-v5-upcoming-copy{display:grid;min-width:0;gap:4px}
#task-view #task-v2-root .task-v5-upcoming-copy strong{
 font-size:11px;color:#1a3b71;
 overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
#task-view #task-v2-root .task-v5-upcoming-copy small{
 color:#8295b1;font-size:10px;
 overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
#task-view #task-v2-root .task-v5-upcoming-chevron{
 color:#3b78eb;font-size:22px;
}
/* Real-detail metric composition; native task data and controls stay intact. */
#task-v2-detail-modal .task-v5-detail-hero{display:grid;gap:12px;min-width:0}
#task-v2-detail-modal .task-v5-detail-customer{
 display:flex;align-items:center;gap:8px;flex-wrap:wrap;
 padding:5px 3px;
}
#task-v2-detail-modal .task-v5-detail-customer .task-v5-icon{flex-basis:31px}
#task-v2-detail-modal .task-v5-detail-customer strong{
 font:700 12px Poppins,sans-serif;color:#23487b;
}
#task-v2-detail-modal .task-v5-detail-customer small{
 color:#92a3b7;font-size:10px;
}
#task-v2-detail-modal .task-v5-detail-highlights{
 display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;
}
#task-v2-detail-modal .task-v5-detail-highlights>div{
 display:flex;flex-direction:column;justify-content:center;
 min-width:0;min-height:116px;padding:14px;
 border:1px solid #dfe9f7;border-radius:12px;background:#fff;
}
#task-v2-detail-modal .task-v5-detail-highlights>.task-v5-detail-priority{
 background:#fff6f5;border-color:#f3e0e0;
}
#task-v2-detail-modal .task-v5-detail-priority[data-priority="2"]{
 background:#fff9ed;border-color:#f7ebd6;
}
#task-v2-detail-modal .task-v5-detail-priority[data-priority="3"]{
 background:#f1fbf6;border-color:#d9efe4;
}
#task-v2-detail-modal .task-v5-detail-priority .task-v5-icon{
 background:#fee5e5;color:#d36170;margin-bottom:8px;
}
#task-v2-detail-modal .task-v5-detail-priority small{
 color:#8292a7;font-size:10px;margin-bottom:6px;
}
#task-v2-detail-modal .task-v5-detail-priority strong{
 color:#244574;font:750 16px Poppins,sans-serif;
}
#task-v2-detail-modal .task-v5-detail-completion{
 display:flex!important;flex-direction:column;gap:8px;
 align-items:center;text-align:center;
}
#task-v2-detail-modal .task-v5-detail-ring{
 display:grid;place-items:center;position:relative;
 width:76px;height:76px;border-radius:50%;
 background:conic-gradient(#3b78eb var(--fraction,0%),#e7eef9 0);
}
#task-v2-detail-modal .task-v5-detail-ring:before{
 content:"";position:absolute;inset:9px;border-radius:50%;background:#fff;
}
#task-v2-detail-modal .task-v5-detail-ring strong{
 position:relative;color:#164284;font:750 16px Poppins,sans-serif;
}
#task-v2-detail-modal .task-v5-detail-completion>span:last-child{
 color:#8293ad;font-size:10px;line-height:1.35;
}
#task-v2-detail-modal .task-v5-detail-facts{
 display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;
}
#task-v2-detail-modal .task-v5-detail-fact{
 display:flex;align-items:center;gap:10px;min-width:0;
 padding:12px;background:#fff;border:1px solid #dfe9f7;border-radius:11px;
}
#task-v2-detail-modal .task-v5-detail-fact>span:last-child{
 display:grid;min-width:0;gap:4px;
}
#task-v2-detail-modal .task-v5-detail-fact small{color:#92a3b8;font-size:10px}
#task-v2-detail-modal .task-v5-detail-fact strong{
 font-size:11px;line-height:1.4;color:#214675;overflow-wrap:anywhere;
}
#task-v2-detail-modal .task-v5-detail-dock>button.task-v5-reschedule{
 background:#fff8ed!important;border-color:#f4e3c8!important;
 color:#b2731f!important;font:700 10px "Open Sans",sans-serif;
}
#task-v2-detail-modal .task-v5-detail-dock>button.task-v5-reschedule:hover{
 background:#fff0d7!important;
}
@media(max-width:760px){
 #task-view #task-v2-root .task-v5-upcoming{display:block}
 #signed-in.app-shell:has(#task-view:not([hidden])) .task-studio-topbar .task-v5-search-toggle{
  display:grid!important;place-items:center!important;
  flex:0 0 38px!important;width:38px!important;height:38px!important;
  min-width:38px!important;min-height:38px!important;
  padding:0!important;
  color:#fff!important;background:#ffffff17!important;
  border:1px solid #ffffff3d!important;border-radius:10px!important;
 }
 #signed-in.app-shell:has(#task-view:not([hidden])) .task-studio-topbar .task-studio-topbar__search{
  display:none!important;
 }
 #signed-in.app-shell:has(#task-view:not([hidden])) .task-studio-topbar.task-v5-search-expanded .task-studio-topbar__search{
  display:flex!important;position:fixed!important;left:11px!important;right:11px!important;
  top:calc(56px + 8px)!important;
  width:auto!important;max-width:none!important;min-width:0!important;
  height:45px!important;z-index:18000!important;padding-inline:8px!important;
  background:#193877!important;border:1px solid #5a7bba!important;
  box-shadow:0 12px 25px rgba(14,33,102,.22)!important;
 }
 #signed-in.app-shell:has(#task-view:not([hidden])) .app-topbar #app-menu-toggle{
  display:grid!important;place-items:center!important;visibility:visible!important;opacity:1!important;
  flex:0 0 38px!important;min-width:38px!important;height:38px!important;
 }
 #task-v2-detail-modal .task-v5-detail-facts{grid-template-columns:minmax(0,1fr)}
 #task-v2-detail-modal .task-v5-detail-highlights>div{min-height:110px;padding:11px}
}
@media(min-width:761px){
 #signed-in .task-v5-search-toggle{display:none!important}
}

#task-view #task-v2-root .task-v5-state-progress{
 background:#e9f2ff;color:#276bd0;
}
#task-view #task-v2-root .task-v5-mobile-card .task-studio-progress{
 width:100%;height:7px;border-radius:8px;
 background:#eaf0f8;margin-top:5px;
}
#task-view #task-v2-root .task-v5-mobile-card .task-studio-progress__fill{
 border-radius:8px;background:#3b78eb;
}

/* Semantic KPI fill from live CRM counts, never a fixed decorative fraction. */
#task-view #task-v2-root .task-v2-kpis>button.task-v5-kpi:after{
 background:linear-gradient(to right,
   var(--task-v5-bar,#3b78eb) 0 var(--task-v5-rate,0%),
   #e8eff8 var(--task-v5-rate,0%) 100%)!important;
}
#task-view #task-v2-root .task-v5-table .task-v3-priority,
#task-view #task-v2-root .task-v5-table .task-v3-status-badge{
 display:none!important;
}
/* Native, keyboard-accessible table action menu, preserving original handlers. */
#task-view #task-v2-root .task-v5-table .task-v3-actions-cell{
 position:relative!important;overflow:visible!important;min-width:0!important;
 text-align:center!important;
}
#task-view #task-v2-root .task-v5-action-menu{
 position:relative;display:inline-block;min-width:0;
}
#task-view #task-v2-root .task-v5-action-trigger{
 display:grid;place-items:center;
 width:30px;height:33px;border-radius:8px;cursor:pointer;
 list-style:none;background:#f5f9ff;color:#5978a2;
 font-size:21px;font-weight:700;
}
#task-view #task-v2-root .task-v5-action-trigger::-webkit-details-marker{display:none}
#task-view #task-v2-root .task-v5-action-menu[open]{
 z-index:30;
}
#task-view #task-v2-root .task-v5-action-menu[open] .task-v5-action-trigger{
 color:#2b6bc8;background:#eaf3ff;
}
#task-view #task-v2-root .task-v5-action-menu>.task-v2-actions{
 box-sizing:border-box!important;
 position:absolute!important;
 right:0!important;top:calc(100% + 6px)!important;
 display:none!important;flex-direction:column!important;
 align-items:stretch!important;justify-content:flex-start!important;
 gap:3px!important;width:188px!important;min-width:188px!important;
 max-height:280px!important;overflow-y:auto!important;
 padding:6px!important;margin:0!important;
 border:1px solid #dae6f5!important;border-radius:12px!important;
 background:#fff!important;
 box-shadow:0 16px 30px rgba(17,46,92,.17)!important;
}
#task-view #task-v2-root .task-v5-action-menu[open]>.task-v2-actions{
 display:flex!important;
}
#task-view #task-v2-root .task-v5-action-menu>.task-v2-actions button:not([hidden]){
 display:flex!important;flex:0 0 auto!important;align-items:center!important;
 justify-content:flex-start!important;gap:9px!important;
 width:100%!important;min-width:0!important;min-height:37px!important;
 margin:0!important;padding:8px 10px!important;
 border:0!important;border-radius:8px!important;
 background:#fff!important;color:#2e5686!important;
 box-shadow:none!important;
}
#task-view #task-v2-root .task-v5-action-menu>.task-v2-actions button:not([hidden]):hover{
 background:#edf5ff!important;color:#2166c2!important;
}
#task-view #task-v2-root .task-v5-action-menu .task-v5-menu-label{
 display:block!important;font:600 11px "Open Sans",sans-serif!important;
 color:inherit!important;white-space:nowrap;
}
#task-view #task-v2-root .task-v5-action-menu>.task-v2-actions button[hidden]{display:none!important}
@media(max-width:900px){
 #task-view #task-v2-root .task-v5-action-menu>.task-v2-actions{
  right:auto!important;left:0!important;
 }
}

/* Keep the task-action menu reachable in the scrollable desktop table:
   extra space is used only while an actions menu is expanded. */
#task-view #task-v2-root .task-v5-management .task-v2-table-wrap:has(.task-v5-action-menu[open]){
 padding-bottom:208px!important;
}
#task-view #task-v2-root .task-v5-actions>.task-v5-export{
 background:#f9fbff!important;color:#2f65a4!important;
}

/* SFERA TASK 1.144.1 — compact corrective layout.
   Consolidated authoritative layer: no dark surfaces, no table progress/assignee/status
   columns, no overflow-clipped action menu, small semantic icons. */
#task-view #task-v2-root.task-v5{
 --task-v5-navy:#0e2166;--task-v5-blue:#3b78eb;
 --task-v5-line:#e0e9f4;--task-v5-ink:#203e70;
 font-family:Poppins,"Open Sans",sans-serif!important;
}
#task-view #task-v2-root.task-v5 .task-studio-intro{
 min-height:36px!important;margin:0 0 12px!important;padding:0!important;
}
#task-view #task-v2-root.task-v5 .task-studio-intro h1{
 font:650 25px/1.25 Poppins,"Open Sans",sans-serif!important;
 letter-spacing:-.035em!important;color:#0e2166!important;
}
#task-view #task-v2-root.task-v5 .task-v5-insights{
 display:grid!important;grid-template-columns:minmax(0,1.42fr) minmax(0,1fr)!important;
 align-items:stretch!important;gap:12px!important;margin:0 0 14px!important;
 padding:0!important;background:transparent!important;box-shadow:none!important;
 border:0!important;
}
#task-view #task-v2-root.task-v5 .task-v5-chart{
 display:flex!important;flex-direction:column!important;
 height:250px!important;min-height:0!important;max-height:250px!important;
 padding:15px 18px 12px!important;gap:5px!important;
 background:#fff!important;border:1px solid #e0e9f4!important;
 border-radius:15px!important;box-shadow:0 4px 17px rgba(22,51,97,.045)!important;
 overflow:hidden!important;
}
#task-view #task-v2-root.task-v5 :is(.task-v5-chart-head,.task-v5-stat-heading,.task-v5-stat-card>header){
 background:transparent!important;background-image:none!important;
 color:#1e3d70!important;border:0!important;border-radius:0!important;
 box-shadow:none!important;padding:0!important;margin:0!important;min-height:0!important;
}
#task-view #task-v2-root.task-v5 .task-v5-chart-head{
 display:flex!important;align-items:center!important;justify-content:space-between!important;
 gap:10px!important;flex:0 0 auto!important;
}
#task-view #task-v2-root.task-v5 .task-v5-chart-name h2,
#task-view #task-v2-root.task-v5 .task-v5-stat-card>header h3{
 color:#1c3768!important;-webkit-text-fill-color:#1c3768!important;
 font:650 12px/1.4 Poppins,"Open Sans",sans-serif!important;
}
#task-view #task-v2-root.task-v5 .task-v5-chart-name p,
#task-view #task-v2-root.task-v5 .task-v5-stat-card>header p{
 color:#899bb4!important;-webkit-text-fill-color:#899bb4!important;
 font:500 10px/1.45 "Open Sans",sans-serif!important;
}
#task-view #task-v2-root.task-v5 .task-v5-chart-name .task-v5-icon{
 display:grid!important;place-items:center!important;
 width:31px!important;height:31px!important;flex:0 0 31px!important;
 border-radius:9px!important;background:#edf4ff!important;color:#3b78eb!important;
}
#task-view #task-v2-root.task-v5 .task-v5-icon svg{
 width:17px!important;height:17px!important;max-width:17px!important;max-height:17px!important;
 stroke:currentColor!important;fill:none!important;
}
#task-view #task-v2-root.task-v5 .task-v5-period{
 height:32px!important;min-height:32px!important;
 padding:5px 10px!important;color:#335b94!important;
 border-color:#dfeaf8!important;border-radius:8px!important;
 background:#f8fbff!important;font-size:10px!important;
}
#task-view #task-v2-root.task-v5 .task-v5-chart-body{
 display:flex!important;flex:1 1 auto!important;min-height:0!important;
 gap:0!important;
}
#task-view #task-v2-root.task-v5 .task-v5-visual{
 display:grid!important;grid-template-columns:minmax(0,1fr) 130px!important;
 gap:9px!important;min-height:0!important;flex:1 1 auto!important;
}
#task-view #task-v2-root.task-v5 .task-v5-plot>svg{
 width:100%!important;height:141px!important;max-height:141px!important;
}
#task-view #task-v2-root.task-v5 .task-v5-chart-axis{
 color:#8d9fb9!important;font-size:9px!important;margin-top:1px!important;
}
#task-view #task-v2-root.task-v5 .task-v5-visual aside{
 padding-left:12px!important;gap:5px!important;border-left:1px solid #e7eef8!important;
}
#task-view #task-v2-root.task-v5 .task-v5-visual aside .task-v5-icon{
 width:31px!important;height:31px!important;flex-basis:31px!important;
 background:#edf8f4!important;color:#219970!important;
}
#task-view #task-v2-root.task-v5 .task-v5-visual aside strong{
 font:700 13px Poppins,"Open Sans",sans-serif!important;color:#183d76!important;
}
#task-view #task-v2-root.task-v5 .task-v5-visual aside p{
 font-size:10px!important;line-height:1.5!important;
}
#task-view #task-v2-root.task-v5 .task-v5-visual aside small{
 padding:5px!important;font-size:9px!important;line-height:1.45!important;
}
#task-view #task-v2-root.task-v5 .task-v5-legend{
 display:flex!important;flex-wrap:wrap!important;align-items:center!important;
 gap:4px 12px!important;justify-content:flex-start!important;
 border-top:1px solid #eff3fa!important;padding:7px 0 0!important;
 margin:0!important;min-height:26px!important;
}
#task-view #task-v2-root.task-v5 .task-v5-legend-item{
 min-height:22px!important;padding:2px 3px!important;
 color:#506f99!important;font-size:9px!important;
}
#task-view #task-v2-root.task-v5 .task-v5-kpi-shell{
 display:block!important;min-width:0!important;
 background:transparent!important;border:0!important;padding:0!important;
 box-shadow:none!important;
}
#task-view #task-v2-root.task-v5 .task-v5-kpi-shell .task-v2-kpis{
 display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
 grid-auto-rows:minmax(0,1fr)!important;
 align-items:stretch!important;
 gap:10px!important;height:250px!important;margin:0!important;padding:0!important;
 background:transparent!important;border:0!important;box-shadow:none!important;
}
#task-view #task-v2-root.task-v5 .task-v2-kpis>button.task-v5-kpi{
 box-sizing:border-box!important;
 display:grid!important;grid-template-columns:29px minmax(0,1fr) 45px!important;
 grid-template-rows:26px 36px 20px!important;
 min-height:0!important;height:120px!important;max-height:120px!important;
 padding:11px 14px!important;gap:2px 5px!important;
 align-content:center!important;
 border:1px solid #e0e9f4!important;border-radius:13px!important;
 background:#fff!important;box-shadow:0 3px 13px rgba(22,51,97,.038)!important;
}
#task-view #task-v2-root.task-v5 .task-v2-kpis>button.task-v5-kpi::before,
#task-view #task-v2-root.task-v5 .task-v2-kpis>button.task-v5-kpi::after{
 content:none!important;display:none!important;
}
#task-view #task-v2-root.task-v5 .task-v5-kpi-icon{
 grid-area:1/1!important;width:25px!important;height:25px!important;
 display:grid!important;place-items:center!important;
 border:0!important;background:transparent!important;
}
#task-view #task-v2-root.task-v5 .task-v5-kpi-icon .task-v5-icon{
 width:25px!important;height:25px!important;flex:0 0 25px!important;
 background:#ebf3ff!important;border-radius:8px!important;
}
#task-view #task-v2-root.task-v5 .task-v5-kpi>span:not(.task-v3-kpi__icon):not(.task-studio-motif):not(.task-v5-mini-spark){
 grid-area:1/2/2/4!important;
 font:650 11px "Open Sans",sans-serif!important;
 color:#36557e!important;text-decoration:none!important;
 border-bottom:0!important;box-shadow:none!important;
}
#task-view #task-v2-root.task-v5 .task-v5-kpi>strong{
 grid-area:2/1/3/3!important;align-self:center!important;
 color:#142f68!important;font:700 26px Poppins,sans-serif!important;
 margin:0!important;letter-spacing:-.025em!important;
}
#task-view #task-v2-root.task-v5 .task-v5-kpi>small{
 grid-area:3/1/4/4!important;
 display:block!important;color:#91a2b7!important;
 font:500 9px/1.35 "Open Sans",sans-serif!important;
 margin:0!important;white-space:normal!important;
}
#task-view #task-v2-root.task-v5 .task-v5-kpi .task-v5-mini-spark{
 grid-area:2/3!important;width:42px!important;height:23px!important;align-self:center!important;
}
#task-view #task-v2-root.task-v5 .task-v5-kpi .task-v5-mini-spark polyline{
 stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round;
}
/* A single compact directory: tabs and filters belong to the same surface. */
#task-view #task-v2-root.task-v5 .task-v5-management{
 margin:0 0 15px!important;padding:0!important;
 border:1px solid #e1e9f5!important;border-radius:15px!important;
 background:#fff!important;overflow:hidden!important;
 box-shadow:0 4px 17px rgba(21,52,108,.048)!important;
}
#task-view #task-v2-root.task-v5 .task-v5-tabs{
 display:flex!important;gap:10px!important;align-items:center!important;
 margin:0!important;padding:0 15px!important;min-height:44px!important;
 border-bottom:1px solid #e6edf7!important;background:#fff!important;
}
#task-view #task-v2-root.task-v5 .task-v5-tabs button{
 height:44px!important;min-height:44px!important;padding:0 10px!important;
 border-radius:0!important;font:650 12px "Open Sans",sans-serif!important;
}
#task-view #task-v2-root.task-v5 .task-v5-management .task-v4-toolbar{
 display:flex!important;align-items:center!important;flex-wrap:wrap!important;
 min-height:47px!important;gap:7px!important;
 padding:7px 14px!important;margin:0!important;background:#fff!important;
}
#task-view #task-v2-root.task-v5 .task-v5-management .task-v2-toolbar-actions{
 display:flex!important;align-items:center!important;gap:5px!important;
}
#task-view #task-v2-root.task-v5 .task-v5-management #task-v2-filter-toggle{display:none!important}
#task-view #task-v2-root.task-v5 .task-v5-management .task-studio-quick{
 order:2!important;display:flex!important;align-items:center!important;flex-wrap:nowrap!important;
 width:auto!important;flex:0 1 auto!important;margin:0!important;padding:0!important;
 background:transparent!important;border:0!important;
}
#task-view #task-v2-root.task-v5 .task-v5-management .task-v5-actions{
 order:3!important;margin-left:auto!important;
 display:flex!important;flex:0 0 auto!important;align-items:center!important;
 gap:6px!important;
}
#task-view #task-v2-root.task-v5 .task-v5-management .task-v5-actions button{
 min-height:33px!important;height:33px!important;
 padding:6px 10px!important;font:650 10px "Open Sans",sans-serif!important;
 white-space:nowrap!important;
}
#task-view #task-v2-root.task-v5 .task-v5-management .task-v5-create{
 background:#3b78eb!important;color:#fff!important;border-color:#3b78eb!important;
}
#task-view #task-v2-root.task-v5 .task-v5-management .task-v2-results{
 padding:0!important;margin:0!important;
 border:0!important;background:#fff!important;
}
#task-view #task-v2-root.task-v5 .task-v5-management #task-v2-state:empty{display:none!important}
/* Native row actions — always clickable, no clipping or hidden menu. */
#task-view #task-v2-root.task-v5 .task-v5-management .task-v2-table-wrap{
 overflow-x:auto!important;overflow-y:visible!important;
 margin:0!important;padding:0!important;border:0!important;
 border-radius:0!important;box-shadow:none!important;
}
#task-view #task-v2-root.task-v5 .task-v5-management .task-v5-table{
 display:table!important;table-layout:fixed!important;
 width:100%!important;min-width:700px!important;
 border-collapse:collapse!important;border-spacing:0!important;
 background:#fff!important;
}
#task-view #task-v2-root.task-v5 .task-v5-table thead{
 background:#f4f7fc!important;
}
#task-view #task-v2-root.task-v5 .task-v5-table thead th{
 padding:12px 16px!important;height:42px!important;
 background:#f4f7fc!important;color:#57729a!important;
 border:0!important;border-bottom:1px solid #e4ebf6!important;
 text-align:left!important;text-transform:uppercase!important;
 font:700 10px Poppins,"Open Sans",sans-serif!important;
 letter-spacing:.015em!important;white-space:nowrap!important;
}
#task-view #task-v2-root.task-v5 .task-v5-table th:nth-child(1){width:43%!important}
#task-view #task-v2-root.task-v5 .task-v5-table th:nth-child(2){width:21%!important}
#task-view #task-v2-root.task-v5 .task-v5-table th:nth-child(3){width:16%!important}
#task-view #task-v2-root.task-v5 .task-v5-table th:nth-child(4){width:10%!important}
#task-view #task-v2-root.task-v5 .task-v5-table th:nth-child(5){width:10%!important;text-align:center!important}
#task-view #task-v2-root.task-v5 .task-v5-table tbody tr.task-v5-row{
 height:auto!important;min-height:64px!important;border:0!important;
 transition:background-color .16s ease!important;
}
#task-view #task-v2-root.task-v5 .task-v5-table tbody tr.task-v5-row td{
 padding:13px 16px!important;height:65px!important;min-width:0!important;
 border:0!important;border-bottom:1px solid #edf2f9!important;
 border-radius:0!important;box-shadow:none!important;
 background:#fff!important;color:#274572!important;
 font:500 11px/1.4 "Open Sans",sans-serif!important;
}
#task-view #task-v2-root.task-v5 .task-v5-table tbody tr.task-v5-row:nth-child(even) td{
 background:#fcfdff!important;
}
#task-view #task-v2-root.task-v5 .task-v5-table tbody tr.task-v5-row:hover td{
 background:#f4f8ff!important;border-bottom-color:#dbe8f9!important;
 box-shadow:none!important;
}
#task-view #task-v2-root.task-v5 .task-v5-table td:first-child,
#task-view #task-v2-root.task-v5 .task-v5-table td:last-child{
 border-left:0!important;border-right:0!important;border-radius:0!important;
}
#task-view #task-v2-root.task-v5 .task-v5-table .task-v3-task-heading strong{
 font:650 12px/1.35 Poppins,"Open Sans",sans-serif!important;
 color:#15396c!important;
}
#task-view #task-v2-root.task-v5 .task-v5-table .task-v3-task-copy>small{
 color:#90a1b7!important;font-size:9px!important;
}
#task-view #task-v2-root.task-v5 .task-v5-table .task-v3-client-cell{
 color:#35557f!important;white-space:normal!important;
}
#task-view #task-v2-root.task-v5 .task-v5-table .task-v3-due-cell{
 white-space:nowrap!important;
}
#task-view #task-v2-root.task-v5 .task-v5-table .task-v3-due-cell strong{
 color:#284a7b!important;font-size:11px!important;
}
#task-view #task-v2-root.task-v5 .task-v5-table .task-v5-priority span{
 padding:6px 8px!important;
}
#task-view #task-v2-root.task-v5 .task-v5-table td.task-v5-action-cell{
 text-align:center!important;padding:9px 7px!important;
 overflow:visible!important;
}
#task-view #task-v2-root.task-v5 .task-v5-table .task-v5-action-cell>.task-v2-actions{
 display:flex!important;align-items:center!important;justify-content:center!important;
 gap:5px!important;width:100%!important;padding:0!important;margin:0!important;
 overflow:visible!important;position:static!important;
}
#task-view #task-v2-root.task-v5 .task-v5-table .task-v5-action-cell .task-v2-actions button:not([hidden]){
 display:grid!important;place-items:center!important;
 width:31px!important;min-width:31px!important;height:32px!important;min-height:32px!important;
 padding:5px!important;margin:0!important;
 border:1px solid #dce8f8!important;border-radius:8px!important;
 background:#fff!important;color:#3972bf!important;box-shadow:none!important;
 cursor:pointer!important;pointer-events:auto!important;
}
#task-view #task-v2-root.task-v5 .task-v5-table .task-v5-action-cell .task-v2-actions button:hover{
 background:#ebf4ff!important;border-color:#b8d1f4!important;
}
#task-view #task-v2-root.task-v5 .task-v5-table .task-v5-action-cell .task-v2-actions svg{
 width:16px!important;height:16px!important;pointer-events:none;
}
#task-view #task-v2-root.task-v5 .task-v5-action-menu{display:none!important}
/* Kanban: actual microtask progress only, never misleading 0% for empty. */
#task-view #task-v2-root.task-v5 .task-kanban-column{
 min-height:0!important;background:#f8fbff!important;border:1px solid #e0e9f5!important;
 border-radius:13px!important;padding:9px!important;
}
#task-view #task-v2-root.task-v5 .task-kanban-column__header{
 position:relative!important;min-height:85px!important;
 padding:12px 80px 10px 12px!important;background:#fff!important;
 border-radius:10px!important;border:1px solid #e7eef8!important;
}
#task-view #task-v2-root.task-v5 .task-kanban-column__header h3{
 color:#203b70!important;font:700 13px Poppins,sans-serif!important;
}
#task-view #task-v2-root.task-v5 .task-v5-board-gauge{
 position:absolute!important;right:10px!important;top:12px!important;
 width:68px!important;height:auto!important;min-height:50px!important;
 display:flex!important;flex-direction:column!important;align-items:center!important;
 justify-content:center!important;gap:2px!important;
 background:transparent!important;border:0!important;border-radius:0!important;
}
#task-view #task-v2-root.task-v5 .task-v5-board-gauge strong{
 color:#276bbf!important;font:700 14px Poppins,sans-serif!important;
}
#task-view #task-v2-root.task-v5 .task-v5-board-gauge small{
 font:600 9px/1.3 "Open Sans",sans-serif!important;color:#8ca0ba!important;
 text-align:center!important;
}
#task-view #task-v2-root.task-v5 .task-v5-board-gauge .task-v5-board-meter{
 display:block!important;width:62px!important;height:6px!important;
 border-radius:9px!important;overflow:hidden!important;background:#e8f0f9!important;
}
#task-view #task-v2-root.task-v5 .task-v5-board-gauge .task-v5-board-meter:before{
 content:"";display:block;height:100%;width:var(--progress,0%);
 background:#3b78eb;border-radius:9px;transition:width .38s cubic-bezier(.2,.8,.3,1);
}
#task-view #task-v2-root.task-v5 .task-v5-board-gauge[data-has-microtasks="false"] .task-v5-board-meter{display:none!important}
#task-view #task-v2-root.task-v5 .task-kanban-card{
 border:1px solid #e2eaf5!important;background:#fff!important;
 border-radius:11px!important;box-shadow:0 2px 10px rgba(22,51,97,.037)!important;
}
#task-view #task-v2-root.task-v5 .task-kanban-card:hover{
 transform:translateY(-2px)!important;box-shadow:0 6px 17px rgba(22,51,97,.075)!important;
}
/* Analytics: three meaningful, compact, differentiated panels. */
#task-view #task-v2-root.task-v5 .task-v5-statistics{
 margin-top:4px!important;padding:0!important;
 background:transparent!important;border:0!important;box-shadow:none!important;
}
#task-view #task-v2-root.task-v5 .task-v5-stat-heading{
 display:flex!important;align-items:center!important;justify-content:space-between!important;
 margin:0 0 11px!important;padding:0!important;background:transparent!important;
}
#task-view #task-v2-root.task-v5 .task-v5-stat-heading h2{
 color:#143468!important;font:700 18px Poppins,sans-serif!important;margin:0!important;
}
#task-view #task-v2-root.task-v5 .task-v5-stat-heading small{font-size:10px!important;color:#91a2b9!important}
#task-view #task-v2-root.task-v5 .task-v5-stat-grid{
 display:grid!important;grid-template-columns:1.05fr 1.25fr 1fr!important;
 gap:12px!important;align-items:stretch!important;
}
#task-view #task-v2-root.task-v5 .task-v5-stat-card{
 min-height:190px!important;height:auto!important;padding:16px!important;
 background:#fff!important;border:1px solid #e0e9f5!important;
 border-radius:14px!important;box-shadow:0 4px 17px rgba(22,51,97,.045)!important;
}
#task-view #task-v2-root.task-v5 .task-v5-stat-card>header{
 display:flex!important;align-items:center!important;gap:9px!important;
 min-height:32px!important;margin-bottom:15px!important;
}
#task-view #task-v2-root.task-v5 .task-v5-stat-card>header .task-v5-icon{
 width:30px!important;height:30px!important;flex:0 0 30px!important;
 background:#edf4ff!important;border-radius:9px!important;
}
#task-view #task-v2-root.task-v5 .task-v5-priority-visual{
 display:grid!important;grid-template-columns:95px minmax(0,1fr)!important;gap:13px!important;
}
#task-view #task-v2-root.task-v5 .task-v5-priority-ring{
 width:92px!important;height:92px!important;
}
#task-view #task-v2-root.task-v5 .task-v5-priority-ring:before{inset:12px!important}
#task-view #task-v2-root.task-v5 .task-v5-priority-ring strong{font:700 23px Poppins,sans-serif!important}
#task-view #task-v2-root.task-v5 .task-v5-priority-labels{
 display:grid!important;gap:2px!important;align-content:center!important;
}
#task-view #task-v2-root.task-v5 .task-v5-priority-option{
 display:flex!important;align-items:center!important;gap:9px!important;
 min-height:30px!important;margin:0!important;padding:5px 6px!important;
 border:0!important;border-radius:7px!important;background:transparent!important;
 text-align:left!important;color:#536e96!important;font-size:11px!important;
}
#task-view #task-v2-root.task-v5 .task-v5-priority-option:hover{
 background:#eff6ff!important;
}
#task-view #task-v2-root.task-v5 .task-v5-priority-option>strong{
 margin-left:auto!important;color:#173d73!important;
}
#task-view #task-v2-root.task-v5 .task-v5-priority-option>i{
 display:block;width:8px;height:8px;flex:0 0 8px;border-radius:50%;
}
#task-view #task-v2-root.task-v5 .task-v5-priority-option>.p0{background:#dc6777}
#task-view #task-v2-root.task-v5 .task-v5-priority-option>.p1{background:#edb451}
#task-view #task-v2-root.task-v5 .task-v5-priority-option>.p2{background:#45b899}
#task-view #task-v2-root.task-v5 .task-v5-due-bars{
 display:flex!important;align-items:flex-end!important;justify-content:space-between!important;
 gap:7px!important;height:116px!important;
}
#task-view #task-v2-root.task-v5 .task-v5-due-day{
 display:grid;grid-template-rows:18px 79px 16px;
 align-items:end;gap:1px;flex:1;min-width:0;text-align:center;
}
#task-view #task-v2-root.task-v5 .task-v5-due-day>strong{
 color:#245494!important;font:700 11px "Open Sans",sans-serif!important;
}
#task-view #task-v2-root.task-v5 .task-v5-due-track{
 display:flex;align-items:flex-end;height:79px!important;width:100%!important;
 border-bottom:1px solid #e8eef7!important;overflow:hidden!important;
}
#task-view #task-v2-root.task-v5 .task-v5-due-track i{
 display:block;width:100%;height:var(--fraction,0%);border-radius:5px 5px 0 0;
 background:#91bbf5;transform-origin:bottom;
}
#task-view #task-v2-root.task-v5 .task-v5-due-day:last-child .task-v5-due-track i{background:#3b78eb}
#task-view #task-v2-root.task-v5 .task-v5-due-day small{font-size:9px;color:#95a6bb}
#task-view #task-v2-root.task-v5 .task-v5-clients{display:grid;gap:13px}
#task-view #task-v2-root.task-v5 .task-v5-client-line{display:grid;gap:5px}
#task-view #task-v2-root.task-v5 .task-v5-client-line>div{
 display:flex;justify-content:space-between;gap:9px;
 color:#5b7597;font-size:10px;
}
#task-view #task-v2-root.task-v5 .task-v5-client-line>div span{
 overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
#task-view #task-v2-root.task-v5 .task-v5-client-line>div strong{color:#255092}
#task-view #task-v2-root.task-v5 .task-v5-client-track{
 height:7px;background:#e9eff9;border-radius:7px;overflow:hidden;
}
#task-view #task-v2-root.task-v5 .task-v5-client-track i{
 display:block;height:100%;width:var(--fraction,0%);border-radius:7px;
 background:#4c8ee3;transform-origin:left;
}
#task-view #task-v2-root.task-v5 .task-v5-statistics:not(.is-visible) :is(.task-v5-client-track i,.task-v5-due-track i){
 transform:scaleX(0);
}
#task-view #task-v2-root.task-v5 .task-v5-statistics.is-visible :is(.task-v5-client-track i,.task-v5-due-track i){
 transform:scaleX(1);transition:transform .42s cubic-bezier(.2,.8,.35,1);
}
/* Detail: one-column calm information hierarchy, no huge hazard graphic. */
#task-v2-detail-modal .task-v5-detail{
 width:min(570px,100vw)!important;max-width:100vw!important;
 background:#f7faff!important;
}
#task-v2-detail-modal .task-v5-detail>header{
 min-height:67px!important;padding:13px 18px!important;background:#fff!important;
 border-bottom:1px solid #e0e9f4!important;
}
#task-v2-detail-modal .task-v5-detail>header h2{
 font:700 18px/1.4 Poppins,sans-serif!important;
}
#task-v2-detail-modal .task-v5-detail-scroll{
 gap:10px!important;padding:12px 15px!important;
}
#task-v2-detail-modal .task-v5-detail-hero{
 display:grid!important;gap:11px!important;
 padding:15px!important;margin:0!important;
 background:#fff!important;border:1px solid #e0e9f4!important;border-radius:13px!important;
 box-shadow:0 3px 12px rgba(22,51,97,.035)!important;
}
#task-v2-detail-modal .task-v5-detail-customer{
 display:flex!important;align-items:center!important;gap:8px!important;
 margin:0!important;padding:0 0 11px!important;
 border-bottom:1px solid #edf1f9!important;
}
#task-v2-detail-modal .task-v5-detail-customer strong{
 color:#234675!important;font:700 12px Poppins,sans-serif!important;
}
#task-v2-detail-modal :is(.task-v5-icon,.task-v5-detail-fact>.task-v5-icon){
 box-sizing:border-box!important;display:grid!important;place-items:center!important;
 width:32px!important;height:32px!important;min-width:32px!important;max-width:32px!important;
 flex:0 0 32px!important;border:0!important;border-radius:9px!important;
 background:#edf4ff!important;color:#3b78eb!important;
}
#task-v2-detail-modal .task-v5-icon svg{
 display:block!important;width:17px!important;height:17px!important;
 min-width:17px!important;max-width:17px!important;min-height:17px!important;max-height:17px!important;
 fill:none!important;stroke:currentColor!important;stroke-width:1.8px!important;
}
#task-v2-detail-modal .task-v5-detail-facts{
 display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;
 gap:7px!important;margin:0!important;
}
#task-v2-detail-modal .task-v5-detail-fact{
 display:flex!important;align-items:center!important;gap:8px!important;
 min-height:57px!important;min-width:0!important;
 padding:9px 10px!important;border:1px solid #e4ecf7!important;
 border-radius:10px!important;background:#fafcff!important;
}
#task-v2-detail-modal .task-v5-detail-fact>.task-v5-icon{
 width:28px!important;height:28px!important;min-width:28px!important;flex-basis:28px!important;
}
#task-v2-detail-modal .task-v5-detail-fact>.task-v5-icon svg{
 width:15px!important;height:15px!important;min-width:15px!important;min-height:15px!important;
}
#task-v2-detail-modal .task-v5-detail-fact small{
 color:#8b9db4!important;font-size:9px!important;
}
#task-v2-detail-modal .task-v5-detail-fact strong{
 color:#285080!important;font:650 10px/1.4 "Open Sans",sans-serif!important;
}
#task-v2-detail-modal .task-v5-detail-progress{
 display:grid!important;grid-template-columns:1fr auto!important;
 gap:6px;align-items:center;
 font-size:10px;color:#607d9e;
}
#task-v2-detail-modal .task-v5-detail-progress strong{color:#224b8c;font-size:11px}
#task-v2-detail-modal .task-v5-detail-progress .task-v5-progress-bar{grid-column:1/-1;height:6px}
#task-v2-detail-modal .task-v5-detail-progress .task-v5-progress-bar>i{background:#3b78eb}
#task-v2-detail-modal .task-v5-detail-section{
 padding:12px!important;margin:0!important;border:1px solid #e1eaf5!important;
 border-radius:12px!important;background:#fff!important;
}
#task-v2-detail-modal .task-v5-detail-section dl{grid-template-columns:repeat(2,minmax(0,1fr))!important}
#task-v2-detail-modal .task-v5-detail-section dl>div{
 padding:9px!important;border:0!important;border-radius:8px!important;background:#f8fbff!important;
}
#task-v2-detail-modal .task-v5-detail-dock{
 min-height:64px!important;gap:8px!important;
 padding:8px 12px calc(8px + env(safe-area-inset-bottom,0px))!important;
 background:#fff!important;
}
#task-v2-detail-modal .task-v5-detail-dock>button:not([hidden]){
 display:flex!important;flex:1 1 0!important;flex-direction:row!important;
 align-items:center!important;justify-content:center!important;gap:7px!important;
 min-width:0!important;min-height:43px!important;height:43px!important;
 padding:9px!important;border-radius:10px!important;
 background:#f3f7fe!important;color:#376dad!important;border:1px solid #dce8f7!important;
}
#task-v2-detail-modal .task-v5-detail-dock>button .task-studio-action-label,
#task-v2-detail-modal .task-v5-detail-dock>button .task-v5-action-label{
 display:inline-block!important;font:650 11px Poppins,"Open Sans",sans-serif!important;
}
#task-v2-detail-modal .task-v5-detail-dock>button svg{width:17px!important;height:17px!important}
#task-v2-detail-modal .task-v5-detail-dock>button[data-v5-tone="done"]{
 background:#eaf7f1!important;color:#188057!important;border-color:#ccebdc!important;
}
#task-v2-detail-modal .task-v5-detail-dock>button.task-v5-reschedule{
 background:#f3f7fe!important;color:#376dad!important;
}
@media(max-width:1200px){
 #task-view #task-v2-root.task-v5 .task-v5-insights{grid-template-columns:minmax(0,1fr)!important}
 #task-view #task-v2-root.task-v5 .task-v5-chart{height:237px!important;max-height:237px!important}
 #task-view #task-v2-root.task-v5 .task-v5-kpi-shell .task-v2-kpis{
  grid-template-columns:repeat(4,minmax(0,1fr))!important;height:auto!important;
 }
 #task-view #task-v2-root.task-v5 .task-v2-kpis>button.task-v5-kpi{height:112px!important;max-height:112px!important}
 #task-view #task-v2-root.task-v5 .task-v5-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 #task-view #task-v2-root.task-v5 .task-v5-stat-clients{grid-column:span 2}
}
@media(max-width:760px){
 #task-view #task-v2-root.task-v5 .task-v5-insights{gap:10px!important}
 #task-view #task-v2-root.task-v5 .task-v5-chart{height:220px!important;max-height:220px!important;padding:12px!important}
 #task-view #task-v2-root.task-v5 .task-v5-visual{grid-template-columns:minmax(0,1fr)!important}
 #task-view #task-v2-root.task-v5 .task-v5-visual aside{display:none!important}
 #task-view #task-v2-root.task-v5 .task-v5-plot>svg{height:122px!important;max-height:122px!important}
 #task-view #task-v2-root.task-v5 .task-v5-kpi-shell .task-v2-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 #task-view #task-v2-root.task-v5 .task-v2-kpis>button.task-v5-kpi{height:101px!important;max-height:101px!important}
 #task-view #task-v2-root.task-v5 .task-v5-management .task-v4-toolbar{padding:8px!important}
 #task-view #task-v2-root.task-v5 .task-v5-management .task-studio-quick{order:1!important;flex:1 1 100%!important}
 #task-view #task-v2-root.task-v5 .task-v5-management .task-v5-actions{order:2!important;margin-left:0!important;flex:1 1 auto!important;justify-content:flex-end!important}
 #task-view #task-v2-root.task-v5 .task-v5-stat-grid{grid-template-columns:minmax(0,1fr)!important}
 #task-view #task-v2-root.task-v5 .task-v5-stat-clients{grid-column:auto}
 #task-v2-detail-modal .task-v5-detail-scroll{padding:10px!important}
 #task-v2-detail-modal .task-v5-detail-facts{grid-template-columns:minmax(0,1fr)!important}
 #task-v2-detail-modal .task-v5-detail-dock>button:not([hidden]){flex-direction:column!important;min-height:49px!important;height:auto!important;padding:5px!important}
 #task-v2-detail-modal .task-v5-detail-dock .task-studio-action-label{font-size:9px!important}
}
@media(prefers-reduced-motion:reduce){
 #task-view #task-v2-root.task-v5 *,
 #task-v2-detail-modal *{animation:none!important;transition:none!important}
}

/* Informative fallback: real KPI comparison instead of fabricated flat time lines. */
#task-view #task-v2-root.task-v5 .task-v5-overview-bars{
 display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
 gap:10px!important;align-content:center!important;
 flex:1!important;padding:5px 0!important;
}
#task-view #task-v2-root.task-v5 .task-v5-overview-row{
 display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;
 align-items:center!important;gap:7px!important;
 padding:10px 12px!important;min-height:65px!important;
 border:1px solid #e6edf7!important;border-radius:10px!important;
 background:#fbfdff!important;box-shadow:none!important;text-align:left!important;
 transition:background-color .16s,border-color .16s,transform .16s!important;
}
#task-view #task-v2-root.task-v5 .task-v5-overview-row:hover{
 background:#eff6ff!important;border-color:#bcd5f7!important;
 transform:translateY(-1px)!important;
}
#task-view #task-v2-root.task-v5 .task-v5-overview-label{
 color:#42658f!important;font:650 11px Poppins,sans-serif!important;
}
#task-view #task-v2-root.task-v5 .task-v5-overview-row strong{
 color:#1d477e!important;font:700 14px Poppins,sans-serif!important;
}
#task-view #task-v2-root.task-v5 .task-v5-overview-track{
 grid-column:1/-1!important;display:block!important;
 height:6px!important;background:#e9f0f9!important;border-radius:9px!important;
 overflow:hidden!important;
}
#task-view #task-v2-root.task-v5 .task-v5-overview-track>i{
 display:block!important;height:100%!important;width:var(--rate,0%)!important;
 border-radius:9px!important;transition:width .35s cubic-bezier(.17,.8,.32,1)!important;
}
#task-v2-detail-modal .task-v5-detail>header #task-v2-detail-kind{
 display:inline-flex!important;align-items:center!important;width:max-content!important;
 max-width:100%!important;min-height:21px!important;padding:3px 9px!important;
 background:#eaf3ff!important;color:#3971bb!important;
 border-radius:6px!important;font:700 10px "Open Sans",sans-serif!important;
 letter-spacing:.015em!important;
}
@media(max-width:760px){
 #task-view #task-v2-root.task-v5 .task-v5-overview-bars{gap:7px!important}
 #task-view #task-v2-root.task-v5 .task-v5-overview-row{
  min-height:61px!important;padding:8px!important;
 }
 #task-view #task-v2-root.task-v5 .task-v5-overview-label{font-size:10px!important}
}

/* Ensure the final detail width wins over the older highly-specific v3 sheet. */
#task-v2-detail-modal.task-v3-detail-modal .task-v2-detail.task-v3-detail.task-v5-detail{
 width:min(570px,100vw)!important;max-width:100vw!important;
 border-radius:0!important;
}
#task-v2-detail-modal.task-v3-detail-modal .task-v2-detail.task-v3-detail.task-v5-detail .task-v5-detail-scroll{
 max-height:none!important;min-height:0!important;overflow-y:auto!important;
}
#task-v2-detail-modal.task-v3-detail-modal .task-v2-detail.task-v3-detail.task-v5-detail .task-v5-detail-dock{
 position:relative!important;bottom:auto!important;
 z-index:20!important;background:#fff!important;
}
@media(max-width:760px){
 #task-v2-detail-modal.task-v3-detail-modal .task-v2-detail.task-v3-detail.task-v5-detail{
  width:100%!important;height:100dvh!important;max-height:100dvh!important;
 }
}
