/* Approved Tasks workspace. Scoped to the authenticated Tasks route so the
   Dashboard and other operations views keep their own visual systems. */

body.is-authenticated[data-active-view="workflow"] {
  --tasks-border: #dfe6e1;
  --tasks-text: #101c2b;
  --tasks-muted: #64748b;
  --tasks-green: #07812f;
  --tasks-green-dark: #006424;
  --tasks-green-soft: #edf8f1;
  --tasks-blue: #2874ea;
  --tasks-red: #e20e18;
  --tasks-shadow: 0 5px 18px rgba(18, 39, 27, 0.055);
}

html[data-sidebar-state] body.is-authenticated[data-active-view="workflow"] .page-header > div:first-child {
  display: block !important;
  flex: 0 0 auto;
  min-width: 230px;
  margin-right: 28px;
}

body.is-authenticated[data-active-view="workflow"] .page-header .page-kicker,
body.is-authenticated[data-active-view="workflow"] .page-header #currentViewSubtitle { display: none !important; }

body.is-authenticated[data-active-view="workflow"] .page-header #currentViewTitle {
  margin: 0 !important;
  color: var(--tasks-text) !important;
  font-size: 24px !important;
  font-weight: 800 !important;
  letter-spacing: -.035em !important;
  line-height: 1 !important;
}

html[data-sidebar-state] body.is-authenticated[data-active-view="workflow"] .page-header .header-actions {
  width: auto !important;
  flex: 1 1 auto;
}

html[data-sidebar-state] body.is-authenticated[data-active-view="workflow"] .page-header .search-box {
  width: min(390px, 34vw) !important;
}

body.is-authenticated[data-active-view="workflow"] #openMyActivity {
  display: none !important;
  min-width: 104px;
  border-color: var(--tasks-border) !important;
  background: #fff !important;
  color: var(--tasks-text) !important;
}

html[data-sidebar-state] body.is-authenticated[data-active-view="workflow"] #workflowView.active {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  min-height: calc(100dvh - var(--oso-command-height));
  margin: 0 !important;
  padding: 30px 36px 44px !important;
  overflow: visible !important;
  background: #f8faf9;
}

body.is-authenticated[data-active-view="workflow"] #workflowMetrics {
  display: grid !important;
  margin: 0 0 24px !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

body.is-authenticated[data-active-view="workflow"] #workflowView.active .task-metric-card {
  position: relative !important;
  display: grid !important;
  min-width: 0 !important;
  min-height: 112px !important;
  margin: 0 !important;
  padding: 20px 22px 18px 28px !important;
  grid-template-columns: 52px minmax(0, 1fr) !important;
  gap: 16px !important;
  align-items: center !important;
  border: 1px solid var(--tasks-border) !important;
  border-radius: 10px !important;
  color: var(--tasks-text) !important;
  background: #fff !important;
  box-shadow: var(--tasks-shadow) !important;
  font: inherit;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
}

body.is-authenticated[data-active-view="workflow"] #workflowView.active .task-metric-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  content: "";
  background: var(--tasks-green);
}

body.is-authenticated[data-active-view="workflow"] #workflowView.active .task-metric-card.blue::before { background: var(--tasks-blue); }
body.is-authenticated[data-active-view="workflow"] #workflowView.active .task-metric-card.red::before { background: var(--tasks-red); }

body.is-authenticated[data-active-view="workflow"] #workflowView.active .task-metric-icon {
  display: grid !important;
  width: 48px !important;
  height: 48px !important;
  place-items: center;
  border-radius: 50% !important;
  color: var(--tasks-green) !important;
  background: var(--tasks-green-soft) !important;
}

body.is-authenticated[data-active-view="workflow"] #workflowView.active .task-metric-card.blue .task-metric-icon { color: var(--tasks-blue) !important; background: #edf4ff !important; }
body.is-authenticated[data-active-view="workflow"] #workflowView.active .task-metric-card.red .task-metric-icon { color: var(--tasks-red) !important; background: #fff0f1 !important; }
body.is-authenticated[data-active-view="workflow"] #workflowView.active .task-metric-card.blue .task-metric-icon,
body.is-authenticated[data-active-view="workflow"] #workflowView.active .task-metric-card.red .task-metric-icon { background: transparent !important; }
body.is-authenticated[data-active-view="workflow"] #workflowView.active .task-metric-icon svg { width: 27px; height: 27px; stroke-width: 2.1; }
body.is-authenticated[data-active-view="workflow"] #workflowView.active .task-metric-card > div { display: grid !important; gap: 4px !important; }
body.is-authenticated[data-active-view="workflow"] #workflowView.active .task-metric-card > div > span { color: #283548 !important; font-size: 12px !important; font-weight: 750 !important; }
body.is-authenticated[data-active-view="workflow"] #workflowView.active .task-metric-card strong { color: var(--tasks-text) !important; font-size: 27px !important; font-weight: 800 !important; line-height: 1 !important; }

body.is-authenticated[data-active-view="workflow"] .task-view-cards {
  display: grid !important;
  margin: 0 !important;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--tasks-border) !important;
}

body.is-authenticated[data-active-view="workflow"] .workflow-queue > #taskContextTabs {
  padding: 16px 18px 20px;
}

body.is-authenticated[data-active-view="workflow"] #workflowCardView > #taskContextTabs {
  margin-bottom: 20px !important;
  padding: 0 0 20px;
}

body.is-authenticated[data-active-view="workflow"] #taskContextTabs .task-tab {
  display: grid !important;
  min-width: 0 !important;
  min-height: 52px !important;
  padding: 8px 12px !important;
  grid-template-columns: 32px minmax(0, 1fr) !important;
  gap: 10px !important;
  align-items: center !important;
  border: 1px solid var(--tasks-border) !important;
  border-radius: 10px !important;
  color: #5d6b82 !important;
  background: #fff !important;
  box-shadow: var(--tasks-shadow) !important;
  font: inherit !important;
  text-align: left !important;
  cursor: pointer;
}

body.is-authenticated[data-active-view="workflow"] #taskContextTabs .task-tab:hover {
  border-color: #bdd4c5 !important;
  background: #f9fcfa !important;
}

body.is-authenticated[data-active-view="workflow"] #taskContextTabs .task-tab.active {
  position: relative;
  color: var(--tasks-green-dark) !important;
  border-color: #abd5b9 !important;
  background: linear-gradient(100deg, #f5fbf7, #fff) !important;
}

body.is-authenticated[data-active-view="workflow"] #taskContextTabs .task-tab.active::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  border-radius: 10px 0 0 10px;
  content: "";
  background: var(--tasks-green);
}

body.is-authenticated[data-active-view="workflow"] #taskContextTabs .task-tab.is-overdue.active::before { background: var(--tasks-red); }
body.is-authenticated[data-active-view="workflow"] .task-tab-icon { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 8px; color: var(--tasks-green); background: var(--tasks-green-soft); }
body.is-authenticated[data-active-view="workflow"] .task-tab.is-team .task-tab-icon { color: var(--tasks-blue); background: #edf4ff; }
body.is-authenticated[data-active-view="workflow"] .task-tab.is-created .task-tab-icon { color: #667085; background: #f4f6f8; }
body.is-authenticated[data-active-view="workflow"] .task-tab.is-overdue .task-tab-icon { color: var(--tasks-red); background: #fff0f1; }
body.is-authenticated[data-active-view="workflow"] .task-tab-icon svg { width: 18px; height: 18px; }
body.is-authenticated[data-active-view="workflow"] .task-tab-copy { display: flex; min-width: 0; gap: 8px; align-items: center; justify-content: space-between; }
body.is-authenticated[data-active-view="workflow"] .task-tab-copy strong { overflow: hidden; font-size: 13px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
body.is-authenticated[data-active-view="workflow"] #taskContextTabs .task-tab-count { width: fit-content; padding: 0 !important; color: var(--tasks-text); background: transparent !important; font-size: 13px !important; font-weight: 750; line-height: 1; }

/* Restore the intended card anatomy after legacy tab rules target every span. */
body.is-authenticated[data-active-view="workflow"] #taskContextTabs .task-tab > span {
  min-width: 0 !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
  border: 0 !important;
  color: inherit !important;
  background: transparent !important;
}
body.is-authenticated[data-active-view="workflow"] #taskContextTabs .task-tab > .task-tab-icon {
  display: grid !important;
  width: 32px !important;
  min-width: 32px !important;
  height: 32px !important;
  place-items: center !important;
  border-radius: 8px !important;
  color: var(--tasks-green) !important;
  background: var(--tasks-green-soft) !important;
}
body.is-authenticated[data-active-view="workflow"] #taskContextTabs .task-tab.is-team > .task-tab-icon { color: var(--tasks-blue) !important; background: #edf4ff !important; }
body.is-authenticated[data-active-view="workflow"] #taskContextTabs .task-tab.is-created > .task-tab-icon { color: #667085 !important; background: #f4f6f8 !important; }
body.is-authenticated[data-active-view="workflow"] #taskContextTabs .task-tab.is-overdue > .task-tab-icon { color: var(--tasks-red) !important; background: #fff0f1 !important; }
body.is-authenticated[data-active-view="workflow"] #taskContextTabs .task-tab > .task-tab-copy {
  display: flex !important;
  width: auto !important;
  gap: 8px !important;
  align-items: center;
  justify-content: space-between;
}
body.is-authenticated[data-active-view="workflow"] #taskContextTabs .task-tab > .task-tab-copy > .task-tab-count {
  width: fit-content !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

body.is-authenticated[data-active-view="workflow"] #workflowView.active .workflow-workspace {
  display: grid !important;
  width: 100% !important;
  min-width: 0 !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 16px !important;
}

body.is-authenticated[data-active-view="workflow"] #workflowView.active.has-task-detail .workflow-workspace { grid-template-columns: minmax(0, 1fr) minmax(340px, 400px) !important; }
body.is-authenticated[data-active-view="workflow"] .workflow-sidebar { min-width: 0; }
body.is-authenticated[data-active-view="workflow"] #workflowView:not(.has-task-detail) .workflow-sidebar { display: none !important; }
body.is-authenticated[data-active-view="workflow"] #workflowView.has-task-detail .workflow-sidebar { display: block !important; }
body.is-authenticated[data-active-view="workflow"] .workflow-queue {
  min-width: 0 !important;
  min-height: 400px;
  padding: 0 !important;
  border: 1px solid var(--tasks-border) !important;
  border-radius: 11px !important;
  background: #fff !important;
  box-shadow: var(--tasks-shadow) !important;
  overflow: visible !important;
}

body.is-authenticated[data-active-view="workflow"] #workflowView.task-card-mode .queue-controls { display: none !important; }
body.is-authenticated[data-active-view="workflow"] .task-card-view { min-width: 0; padding: 0 24px 24px !important; }

body.is-authenticated[data-active-view="workflow"] #workflowView.task-list-mode .workflow-queue { overflow: hidden !important; }
body.is-authenticated[data-active-view="workflow"] #workflowView.task-list-mode .queue-controls {
  display: grid !important;
  min-height: 66px;
  margin: 0 !important;
  padding: 13px 18px !important;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 10px !important;
  align-items: center;
  border-bottom: 0;
}
body.is-authenticated[data-active-view="workflow"] #workflowView.task-list-mode #workflowListFiltersButton { grid-column: 1; }
body.is-authenticated[data-active-view="workflow"] #workflowView.task-list-mode .queue-controls > .workflow-sort-control { grid-column: 3; }
body.is-authenticated[data-active-view="workflow"] #workflowView.task-list-mode #workflowListViewToggle { grid-column: 4; }
body.is-authenticated[data-active-view="workflow"] #workflowView.task-list-mode .queue-controls > .filter-bar {
  display: grid !important;
  grid-column: 1 / -1;
  grid-row: 2;
  margin: 3px -18px -13px !important;
  padding: 14px 18px 16px !important;
  grid-template-columns: repeat(auto-fit, minmax(138px, 1fr));
  gap: 10px !important;
  align-items: end;
  border-top: 1px solid var(--tasks-border);
  background: #f8faf9;
}
body.is-authenticated[data-active-view="workflow"] #workflowView.task-list-mode .queue-controls > .filter-bar.hidden { display: none !important; }
body.is-authenticated[data-active-view="workflow"] #workflowView.task-list-mode .filter-check {
  min-height: 36px;
  margin: 0 !important;
  padding: 0 10px;
  border: 1px solid #d7e1dc;
  border-radius: 7px;
  background: #fff;
  font-size: 10px;
  font-weight: 650;
}
body.is-authenticated[data-active-view="workflow"] #workflowView.task-list-mode .table-scroll {
  width: calc(100% - 36px) !important;
  min-width: 0 !important;
  margin: 0 18px !important;
  overflow-x: auto !important;
  border: 1px solid var(--tasks-border) !important;
  border-bottom: 0 !important;
  border-radius: 11px 11px 0 0 !important;
  background: #fff;
  scrollbar-gutter: stable;
}
body.is-authenticated[data-active-view="workflow"] #workflowView.task-list-mode .workflow-queue table {
  display: table !important;
  width: 100% !important;
  min-width: 1080px !important;
  table-layout: fixed;
  border-collapse: collapse !important;
}
body.is-authenticated[data-active-view="workflow"] #workflowView.task-list-mode .workflow-queue thead,
body.is-authenticated[data-active-view="workflow"] #workflowView.task-list-mode .workflow-queue tbody { width: 100% !important; }
body.is-authenticated[data-active-view="workflow"] #workflowView.task-list-mode .workflow-queue thead { display: table-header-group !important; }
body.is-authenticated[data-active-view="workflow"] #workflowView.task-list-mode .workflow-queue tbody { display: table-row-group !important; }
body.is-authenticated[data-active-view="workflow"] #workflowView.task-list-mode .workflow-task-grid-row {
  display: table-row !important;
  width: auto !important;
}
body.is-authenticated[data-active-view="workflow"] #workflowView.task-list-mode .workflow-task-grid-row th,
body.is-authenticated[data-active-view="workflow"] #workflowView.task-list-mode .workflow-task-grid-row td {
  display: table-cell !important;
  min-width: 0;
  height: auto !important;
  padding: 11px 14px !important;
  overflow: hidden;
  vertical-align: middle;
  border-bottom: 1px solid #e9eeeb;
}
body.is-authenticated[data-active-view="workflow"] #workflowView.task-list-mode .workflow-task-grid-row th {
  height: 46px !important;
  color: #65738a !important;
  background: #f8faf9 !important;
  font-size: 9px !important;
  font-weight: 800 !important;
  letter-spacing: .055em !important;
  text-transform: uppercase;
}
body.is-authenticated[data-active-view="workflow"] #workflowView.task-list-mode #workflowFollowupsHead th:nth-child(1) { width: 44px !important; }
body.is-authenticated[data-active-view="workflow"] #workflowView.task-list-mode #workflowFollowupsHead th:nth-child(3) { width: 150px !important; }
body.is-authenticated[data-active-view="workflow"] #workflowView.task-list-mode #workflowFollowupsHead th:nth-child(4) { width: 100px !important; }
body.is-authenticated[data-active-view="workflow"] #workflowView.task-list-mode #workflowFollowupsHead th:nth-child(5) { width: 130px !important; }
body.is-authenticated[data-active-view="workflow"] #workflowView.task-list-mode #workflowFollowupsHead th:nth-child(6) { width: 105px !important; }
body.is-authenticated[data-active-view="workflow"] #workflowView.task-list-mode #workflowFollowupsHead th:nth-child(7) { width: 200px !important; }
body.is-authenticated[data-active-view="workflow"] #workflowView.task-list-mode #workflowFollowupsHead th:nth-child(8) { width: 48px !important; }
body.is-authenticated[data-active-view="workflow"] #workflowView.task-list-mode .workflow-task-grid-row th:last-child,
body.is-authenticated[data-active-view="workflow"] #workflowView.task-list-mode .workflow-task-grid-row td:last-child { padding-inline: 6px !important; overflow: visible; text-align: center; }
body.is-authenticated[data-active-view="workflow"] #workflowView.task-list-mode .workflow-task-grid-row td { height: 78px !important; color: #344054; background: #fff; font-size: 11px !important; }
body.is-authenticated[data-active-view="workflow"] #workflowView.task-list-mode .workflow-task-grid-row:hover td { background: #f7fbf8 !important; }
body.is-authenticated[data-active-view="workflow"] #workflowView.task-list-mode .workflow-task-grid-row.selected-row td { background: #edf8f1 !important; }
body.is-authenticated[data-active-view="workflow"] #workflowView.task-list-mode .task-group-row.is-overdue td { background: #fff9f9; }
body.is-authenticated[data-active-view="workflow"] #workflowView.task-list-mode .task-group-row.is-today td { background: #fffdf7; }
body.is-authenticated[data-active-view="workflow"] #workflowView.task-list-mode .task-group-row.is-upcoming td { background: #f8fbff; }
body.is-authenticated[data-active-view="workflow"] #workflowView.task-list-mode .task-group-row.is-no_due_date td { background: #fbfcfb; }
body.is-authenticated[data-active-view="workflow"] #workflowView.task-list-mode .task-group-row.is-completed td { background: #f8fcf9; }
body.is-authenticated[data-active-view="workflow"] #workflowView.task-list-mode .task-group-row.is-overdue:hover td { background: #fff3f3 !important; }
body.is-authenticated[data-active-view="workflow"] #workflowView.task-list-mode .task-group-row.is-today:hover td { background: #fff9e9 !important; }
body.is-authenticated[data-active-view="workflow"] #workflowView.task-list-mode .task-group-row.is-upcoming:hover td { background: #f0f7ff !important; }
body.is-authenticated[data-active-view="workflow"] #workflowView.task-list-mode .task-group-row.is-completed:hover td { background: #f0f9f3 !important; }
body.is-authenticated[data-active-view="workflow"] #workflowView.task-list-mode .task-group-row.is-overdue td:first-child { box-shadow: inset 3px 0 0 var(--tasks-red); }
body.is-authenticated[data-active-view="workflow"] #workflowView.task-list-mode .task-group-row.is-today td:first-child { box-shadow: inset 3px 0 0 #d97706; }
body.is-authenticated[data-active-view="workflow"] #workflowView.task-list-mode .task-group-row.is-upcoming td:first-child { box-shadow: inset 3px 0 0 var(--tasks-blue); }
body.is-authenticated[data-active-view="workflow"] #workflowView.task-list-mode .task-group-row.is-no_due_date td:first-child { box-shadow: inset 3px 0 0 #98a2b3; }
body.is-authenticated[data-active-view="workflow"] #workflowView.task-list-mode .task-group-row.is-completed td:first-child { box-shadow: inset 3px 0 0 var(--tasks-green); }
body.is-authenticated[data-active-view="workflow"] #workflowView.task-list-mode .task-due-group { display: table-row !important; width: auto !important; }
body.is-authenticated[data-active-view="workflow"] #workflowView.task-list-mode .task-due-group th {
  display: table-cell !important;
  height: 40px !important;
  padding: 0 14px !important;
  border-top: 1px solid #e2e8e4;
  border-bottom: 1px solid #e2e8e4;
  background: #f8faf9 !important;
  text-align: left;
  vertical-align: middle;
}
body.is-authenticated[data-active-view="workflow"] #workflowView.task-list-mode .task-due-group:first-child th { border-top: 0; }
body.is-authenticated[data-active-view="workflow"] #workflowView.task-list-mode .task-group-heading { display: inline-flex; gap: 7px; align-items: center; }
body.is-authenticated[data-active-view="workflow"] #workflowView.task-list-mode .task-group-heading svg { width: 14px; height: 14px; }
body.is-authenticated[data-active-view="workflow"] #workflowView.task-list-mode .task-group-heading strong { color: #475467; font-size: 10px; font-weight: 800; letter-spacing: .045em; text-transform: uppercase; }
body.is-authenticated[data-active-view="workflow"] #workflowView.task-list-mode .task-group-heading small { padding: 2px 6px; border-radius: 999px; color: #667085; background: #eef2f0; font-size: 9px; font-weight: 700; }
body.is-authenticated[data-active-view="workflow"] #workflowView.task-list-mode .task-due-group.is-danger .task-group-heading svg,
body.is-authenticated[data-active-view="workflow"] #workflowView.task-list-mode .task-due-group.is-danger .task-group-heading strong { color: var(--tasks-red); }
body.is-authenticated[data-active-view="workflow"] #workflowView.task-list-mode .task-due-group.is-warning .task-group-heading svg,
body.is-authenticated[data-active-view="workflow"] #workflowView.task-list-mode .task-due-group.is-warning .task-group-heading strong { color: #b45309; }
body.is-authenticated[data-active-view="workflow"] #workflowView.task-list-mode .task-due-group.is-info .task-group-heading svg,
body.is-authenticated[data-active-view="workflow"] #workflowView.task-list-mode .task-due-group.is-info .task-group-heading strong { color: #2563a9; }
body.is-authenticated[data-active-view="workflow"] #workflowView.task-list-mode .task-due-group.is-neutral .task-group-heading svg,
body.is-authenticated[data-active-view="workflow"] #workflowView.task-list-mode .task-due-group.is-neutral .task-group-heading strong { color: #667085; }
body.is-authenticated[data-active-view="workflow"] #workflowView.task-list-mode .task-due-group.is-success .task-group-heading svg,
body.is-authenticated[data-active-view="workflow"] #workflowView.task-list-mode .task-due-group.is-success .task-group-heading strong { color: var(--tasks-green); }
body.is-authenticated[data-active-view="workflow"] #workflowView.task-list-mode .task-due-group.is-danger th { background: #fff5f5 !important; border-left: 3px solid var(--tasks-red); }
body.is-authenticated[data-active-view="workflow"] #workflowView.task-list-mode .task-due-group.is-warning th { background: #fffbeb !important; border-left: 3px solid #d97706; }
body.is-authenticated[data-active-view="workflow"] #workflowView.task-list-mode .task-due-group.is-info th { background: #f3f8ff !important; border-left: 3px solid var(--tasks-blue); }
body.is-authenticated[data-active-view="workflow"] #workflowView.task-list-mode .task-due-group.is-neutral th { background: #f7f9f8 !important; border-left: 3px solid #98a2b3; }
body.is-authenticated[data-active-view="workflow"] #workflowView.task-list-mode .task-due-group.is-success th { background: #f1f9f3 !important; border-left: 3px solid var(--tasks-green); }
body.is-authenticated[data-active-view="workflow"] #workflowView.task-list-mode .followup-title-line { display: grid; min-width: 0; gap: 4px; }
body.is-authenticated[data-active-view="workflow"] #workflowView.task-list-mode .followup-title-line strong { overflow: hidden; color: var(--tasks-text); font-size: 12px !important; font-weight: 750 !important; text-overflow: ellipsis; white-space: nowrap; }
body.is-authenticated[data-active-view="workflow"] #workflowView.task-list-mode .followup-title-line small { overflow: hidden; color: #68758b; font-size: 9px !important; text-overflow: ellipsis; white-space: nowrap; }
body.is-authenticated[data-active-view="workflow"] #workflowView.task-list-mode .task-location-cell { color: #344054; font-weight: 650; white-space: nowrap; }
body.is-authenticated[data-active-view="workflow"] #workflowView.task-list-mode .task-list-icon { display: inline-grid; width: 25px; height: 25px; margin-right: 7px; place-items: center; border-radius: 7px; color: #667085; background: #f2f5f3; vertical-align: middle; }
body.is-authenticated[data-active-view="workflow"] #workflowView.task-list-mode .task-list-icon svg { width: 13px; height: 13px; margin: 0; }
body.is-authenticated[data-active-view="workflow"] #workflowView.task-list-mode .task-date-cell { display: table-cell !important; }
body.is-authenticated[data-active-view="workflow"] #workflowView.task-list-mode .task-date-cell strong,
body.is-authenticated[data-active-view="workflow"] #workflowView.task-list-mode .task-date-cell small { display: block; }
body.is-authenticated[data-active-view="workflow"] #workflowView.task-list-mode .task-date-cell strong { color: #344054; font-size: 10px; font-weight: 750; }
body.is-authenticated[data-active-view="workflow"] #workflowView.task-list-mode .task-date-cell small { margin-top: 3px; color: #7a8699; font-size: 9px; }
body.is-authenticated[data-active-view="workflow"] #workflowView.task-list-mode .task-date-cell.is-overdue strong,
body.is-authenticated[data-active-view="workflow"] #workflowView.task-list-mode .task-date-cell.is-overdue small { color: var(--tasks-red); }
body.is-authenticated[data-active-view="workflow"] #workflowView.task-list-mode .task-relative-due {
  display: inline-flex;
  width: fit-content;
  min-height: 18px;
  margin-top: 5px;
  padding: 2px 7px;
  align-items: center;
  border-radius: 999px;
  color: #2563a9;
  background: #eaf3ff;
  font-size: 8px;
  font-weight: 750;
  white-space: nowrap;
}
body.is-authenticated[data-active-view="workflow"] #workflowView.task-list-mode .task-group-row.is-overdue .task-relative-due { color: #d20a14; background: #ffe9eb; }
body.is-authenticated[data-active-view="workflow"] #workflowView.task-list-mode .task-group-row.is-today .task-relative-due { color: #a85c06; background: #fff0cc; }
body.is-authenticated[data-active-view="workflow"] #workflowView.task-list-mode .task-priority-cell .status-badge,
body.is-authenticated[data-active-view="workflow"] #workflowView.task-list-mode td > .status-badge { min-width: 54px; justify-content: center; border-radius: 5px; }
body.is-authenticated[data-active-view="workflow"] #workflowView.task-list-mode .task-assignment-cell { display: table-cell !important; white-space: normal; }
body.is-authenticated[data-active-view="workflow"] #workflowView.task-list-mode .task-assignment-cell > span { display: inline-grid; min-width: 0; vertical-align: middle; }
body.is-authenticated[data-active-view="workflow"] #workflowView.task-list-mode .task-assignment-cell > span:last-child { max-width: calc(100% - 36px); gap: 2px; }
body.is-authenticated[data-active-view="workflow"] #workflowView.task-list-mode .task-assignment-cell strong,
body.is-authenticated[data-active-view="workflow"] #workflowView.task-list-mode .task-assignment-cell small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.is-authenticated[data-active-view="workflow"] #workflowView.task-list-mode .task-assignment-cell strong { color: #344054; font-size: 10px; font-weight: 700; }
body.is-authenticated[data-active-view="workflow"] #workflowView.task-list-mode .task-assignment-cell small { color: #7a8699; font-size: 8px; }
body.is-authenticated[data-active-view="workflow"] #workflowView.task-list-mode .task-list-assignee-badge { display: inline-grid !important; width: 27px; height: 27px; margin-right: 7px; place-items: center; border: 1px solid #d9e4dd; border-radius: 50%; color: var(--tasks-green-dark); background: var(--tasks-green-soft); font-size: 7px; font-weight: 850; letter-spacing: -.03em; }
body.is-authenticated[data-active-view="workflow"] #workflowView.task-list-mode .task-list-open-button { display: inline-grid; width: 30px; height: 30px; padding: 0; place-items: center; border: 1px solid transparent; border-radius: 7px; color: #667085; background: transparent; cursor: pointer; }
body.is-authenticated[data-active-view="workflow"] #workflowView.task-list-mode .task-list-open-button:hover { border-color: #cfe0d5; color: var(--tasks-green-dark); background: var(--tasks-green-soft); }
body.is-authenticated[data-active-view="workflow"] #workflowView.task-list-mode .task-list-open-button:focus-visible { outline: 3px solid rgba(40, 116, 234, .28); outline-offset: 2px; }
body.is-authenticated[data-active-view="workflow"] #workflowView.task-list-mode .task-list-open-button svg { width: 15px; height: 15px; }
body.is-authenticated[data-active-view="workflow"] #workflowView.task-list-mode .workflow-table-footer {
  width: calc(100% - 36px);
  min-height: 64px;
  margin: 0 18px 10px;
  padding: 10px 14px;
  border: 1px solid var(--tasks-border);
  border-radius: 0 0 11px 11px;
  background: #fff;
}
body.is-authenticated[data-active-view="workflow"] #workflowView.task-list-mode .workflow-footer-controls {
  display: flex;
  gap: 18px;
  align-items: center;
}
body.is-authenticated[data-active-view="workflow"] #workflowView.task-list-mode .workflow-page-size {
  display: flex;
  gap: 8px;
  align-items: center;
  color: #475467;
  font-size: 10px;
  font-weight: 650;
  white-space: nowrap;
}
body.is-authenticated[data-active-view="workflow"] #workflowView.task-list-mode .workflow-page-size select {
  width: 70px;
  min-height: 34px;
  border: 1px solid var(--tasks-border);
  border-radius: 7px;
  color: #101828;
  background: #fff;
  font-size: 10px;
  font-weight: 700;
}
body.is-authenticated[data-active-view="workflow"] #workflowView.task-list-mode .workflow-pagination {
  gap: 4px;
}
body.is-authenticated[data-active-view="workflow"] #workflowView.task-list-mode .workflow-pagination .icon-button,
body.is-authenticated[data-active-view="workflow"] #workflowView.task-list-mode .workflow-pagination .page-button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}
body.is-authenticated[data-active-view="workflow"] #workflowView.task-list-mode .workflow-pagination .page-button.active {
  border-color: var(--tasks-green);
  color: #fff;
  background: var(--tasks-green);
}
body.is-authenticated[data-active-view="workflow"] #workflowView.task-list-mode .workflow-pagination button:disabled {
  opacity: .38;
  cursor: not-allowed;
}

body.is-authenticated[data-active-view="workflow"] .task-workspace-toolbar {
  display: flex;
  min-height: 78px;
  margin: 0 0 12px;
  padding: 16px 0;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 0;
}

body.is-authenticated[data-active-view="workflow"] .task-workspace-title { display: flex; min-width: 0; gap: 10px; align-items: center; color: var(--tasks-green); }
body.is-authenticated[data-active-view="workflow"] .task-workspace-title svg { width: 17px; height: 17px; }
body.is-authenticated[data-active-view="workflow"] .task-workspace-title strong { color: var(--tasks-green-dark); font-size: 13px; letter-spacing: .035em; text-transform: uppercase; white-space: nowrap; }
body.is-authenticated[data-active-view="workflow"] .task-workspace-title span { display: grid; min-width: 25px; height: 23px; padding: 0 7px; place-items: center; border-radius: 5px; background: var(--tasks-green-soft); font-size: 11px; font-weight: 750; }
body.is-authenticated[data-active-view="workflow"] .tasks-filter-actions { display: flex !important; min-width: 0; margin-left: auto; gap: 10px !important; align-items: center !important; flex-wrap: wrap; justify-content: flex-end; }
body.is-authenticated[data-active-view="workflow"] .tasks-filter-button { display: inline-flex; min-height: 38px; padding: 0 14px; gap: 8px; align-items: center; border: 1px solid var(--tasks-border); border-radius: 7px; color: var(--tasks-text); background: #fff; font: inherit; font-size: 11px; font-weight: 700; cursor: pointer; }
body.is-authenticated[data-active-view="workflow"] .tasks-filter-button:hover,
body.is-authenticated[data-active-view="workflow"] .tasks-filter-button.active { border-color: #9cc9aa; background: var(--tasks-green-soft); }
body.is-authenticated[data-active-view="workflow"] .tasks-filter-count { display: grid; min-width: 18px; height: 18px; place-items: center; border-radius: 50%; color: #fff; background: var(--tasks-green); font-size: 9px; }
body.is-authenticated[data-active-view="workflow"] .tasks-filter-shell,
body.is-authenticated[data-active-view="workflow"] .workflow-sort-control { position: relative; }
body.is-authenticated[data-active-view="workflow"] .workflow-sort-control { display: flex !important; min-height: 38px; margin: 0 !important; gap: 7px; align-items: center; color: var(--tasks-muted); font-size: 10px; }
body.is-authenticated[data-active-view="workflow"] .tasks-sort-label { font-size: 9px; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; }
body.is-authenticated[data-active-view="workflow"] .tasks-sort-value { color: var(--tasks-text); font-size: 11px; font-weight: 700; white-space: nowrap; }
body.is-authenticated[data-active-view="workflow"] .task-sort-icon-button { width: 36px !important; height: 36px !important; border: 1px solid var(--tasks-border) !important; border-radius: 7px !important; background: #fff !important; }
body.is-authenticated[data-active-view="workflow"] .task-sort-menu { z-index: 45 !important; top: calc(100% + 8px) !important; right: 0 !important; min-width: 190px; }
body.is-authenticated[data-active-view="workflow"] .task-view-toggle { display: inline-flex !important; padding: 3px !important; gap: 2px; border: 1px solid var(--tasks-border) !important; border-radius: 7px !important; background: #f5f7f6 !important; }
body.is-authenticated[data-active-view="workflow"] .task-view-toggle button { display: inline-flex; min-height: 30px !important; padding: 0 9px !important; gap: 5px; align-items: center; border: 0; border-radius: 5px !important; color: var(--tasks-muted); background: transparent; font: inherit; font-size: 10px !important; font-weight: 700; }
body.is-authenticated[data-active-view="workflow"] .task-view-toggle button.active { color: var(--tasks-green-dark); background: #fff; box-shadow: 0 1px 4px rgba(18, 39, 27, .11); }
body.is-authenticated[data-active-view="workflow"] .task-view-toggle svg { width: 14px; height: 14px; }

body.is-authenticated[data-active-view="workflow"] .tasks-filter-popover {
  position: absolute !important;
  z-index: 70 !important;
  top: calc(100% + 8px) !important;
  right: 0 !important;
  width: min(560px, calc(100vw - 48px)) !important;
  padding: 0 !important;
  border: 1px solid var(--tasks-border) !important;
  border-radius: 10px !important;
  background: #fff !important;
  box-shadow: 0 18px 48px rgba(15, 30, 22, .16) !important;
}
body.is-authenticated[data-active-view="workflow"] .tasks-filter-popover.hidden { display: none !important; }
body.is-authenticated[data-active-view="workflow"] .tasks-filter-popover-header,
body.is-authenticated[data-active-view="workflow"] .tasks-filter-popover-footer { display: flex; min-height: 52px; padding: 10px 14px; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--tasks-border); }
body.is-authenticated[data-active-view="workflow"] .tasks-filter-popover-footer { justify-content: flex-end; border-top: 1px solid var(--tasks-border); border-bottom: 0; }
body.is-authenticated[data-active-view="workflow"] .tasks-filter-grid { display: grid; padding: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
body.is-authenticated[data-active-view="workflow"] .tasks-filter-field { display: grid; gap: 6px; }
body.is-authenticated[data-active-view="workflow"] .tasks-filter-field label { color: #475467; font-size: 10px; font-weight: 700; }
body.is-authenticated[data-active-view="workflow"] .tasks-filter-field select { width: 100%; min-height: 38px; border: 1px solid var(--tasks-border); border-radius: 7px; background: #fff; font-size: 11px; }
body.is-authenticated[data-active-view="workflow"] .task-card-clear { border: 0; color: var(--tasks-green-dark); background: transparent; font: inherit; font-size: 10px; font-weight: 700; cursor: pointer; }
body.is-authenticated[data-active-view="workflow"] .task-filter-chips { display: flex; margin: -8px 0 18px; gap: 7px; flex-wrap: wrap; }
body.is-authenticated[data-active-view="workflow"] .task-filter-chip { display: inline-flex; min-height: 27px; padding: 0 9px; gap: 6px; align-items: center; border: 1px solid #cfe2d5; border-radius: 999px; color: var(--tasks-green-dark); background: var(--tasks-green-soft); font: inherit; font-size: 9px; font-weight: 650; }
body.is-authenticated[data-active-view="workflow"] .task-filter-chip svg { width: 12px; height: 12px; }

body.is-authenticated[data-active-view="workflow"] .task-card-section { min-width: 0; margin: 0 0 22px !important; }
body.is-authenticated[data-active-view="workflow"] .task-card-section-pinned { padding: 0 !important; border: 0 !important; background: transparent !important; }
body.is-authenticated[data-active-view="workflow"] .task-card-section-title { display: flex; margin: 0 0 12px !important; gap: 7px; align-items: center; color: #475467; font-size: 11px !important; text-transform: uppercase; }
body.is-authenticated[data-active-view="workflow"] .task-card-section-title span { padding: 2px 6px; border-radius: 5px; background: #f0f3f1; font-size: 9px; }
body.is-authenticated[data-active-view="workflow"] #workflowView .task-card-grid {
  display: grid !important;
  width: 100% !important;
  min-width: 0 !important;
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)) !important;
  grid-auto-rows: 1fr;
  gap: 20px !important;
}

body.is-authenticated[data-active-view="workflow"] #workflowView .task-card {
  position: relative !important;
  display: grid !important;
  min-width: 0 !important;
  min-height: 380px !important;
  height: 100%;
  margin: 0 !important;
  padding: 18px 18px 16px 23px !important;
  grid-template-rows: 48px minmax(116px, 1fr) 25px 106px;
  align-content: stretch;
  border: 1px solid var(--tasks-border) !important;
  border-radius: 9px !important;
  color: var(--tasks-text) !important;
  background: #fff !important;
  box-shadow: 0 3px 12px rgba(18, 39, 27, .055) !important;
  cursor: pointer;
  overflow: visible !important;
}
body.is-authenticated[data-active-view="workflow"] #workflowView .task-card::before { position: absolute !important; inset: 0 auto 0 0 !important; width: 4px !important; border-radius: 9px 0 0 9px !important; content: "" !important; background: var(--tasks-green) !important; }
body.is-authenticated[data-active-view="workflow"] #workflowView .task-card.overdue::before,
body.is-authenticated[data-active-view="workflow"] #workflowView .task-card.is-overdue::before { background: var(--tasks-red) !important; }
body.is-authenticated[data-active-view="workflow"] #workflowView .task-card.is-in-progress:not(.is-overdue)::before { background: var(--tasks-blue) !important; }
body.is-authenticated[data-active-view="workflow"] #workflowView .task-card:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(18, 39, 27, .09) !important; }
body.is-authenticated[data-active-view="workflow"] #workflowView .task-card.selected { border-color: #75b88a !important; box-shadow: 0 0 0 3px rgba(7, 129, 47, .1) !important; }
body.is-authenticated[data-active-view="workflow"] .task-card-open-surface { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; border-radius: inherit; background: transparent; cursor: pointer; }
body.is-authenticated[data-active-view="workflow"] .task-card-open-surface:focus-visible { outline: 3px solid rgba(40, 116, 234, .28); outline-offset: 2px; }
body.is-authenticated[data-active-view="workflow"] #workflowView .task-card > :not(.task-card-open-surface) { position: relative; z-index: 2; pointer-events: none; }
body.is-authenticated[data-active-view="workflow"] #workflowView .task-card-tools,
body.is-authenticated[data-active-view="workflow"] #workflowView .task-card-tools * { pointer-events: auto; }
body.is-authenticated[data-active-view="workflow"] #workflowView .task-card-top { display: flex !important; min-height: 48px !important; gap: 12px; align-items: flex-start !important; justify-content: space-between !important; }
body.is-authenticated[data-active-view="workflow"] .task-card-location-stack { display: grid !important; min-width: 0; gap: 8px !important; }
body.is-authenticated[data-active-view="workflow"] .task-card-location { display: inline-flex !important; min-width: 0; gap: 6px; align-items: center; color: #65738a !important; font-size: 10px !important; font-weight: 650; }
body.is-authenticated[data-active-view="workflow"] .task-card-location svg { width: 13px !important; height: 13px !important; }
body.is-authenticated[data-active-view="workflow"] .task-card-due-indicator { width: fit-content; padding: 4px 8px !important; border-radius: 3px !important; color: #fff !important; background: var(--tasks-red) !important; font-size: 9px !important; font-weight: 750 !important; }
body.is-authenticated[data-active-view="workflow"] #workflowView .task-card.has-open-menu { z-index: 80 !important; }
body.is-authenticated[data-active-view="workflow"] #workflowView .task-card.has-open-menu > .task-card-top { z-index: 100 !important; }
body.is-authenticated[data-active-view="workflow"] #workflowView .task-card-tools { position: relative; z-index: 90 !important; flex: 0 0 auto; }
body.is-authenticated[data-active-view="workflow"] .task-card-icon { display: grid; width: 30px !important; height: 30px !important; padding: 0 !important; place-items: center; border: 0 !important; border-radius: 6px; color: #3d4b60; background: transparent !important; }
body.is-authenticated[data-active-view="workflow"] .task-card-icon:hover { background: #f1f4f2 !important; }
body.is-authenticated[data-active-view="workflow"] .task-card-icon svg { width: 16px; height: 16px; }
body.is-authenticated[data-active-view="workflow"] .task-card-content { min-width: 0; overflow: hidden; }
body.is-authenticated[data-active-view="workflow"] #workflowView .task-card h4 { display: -webkit-box !important; overflow: hidden !important; min-height: 47px !important; margin: 10px 0 8px !important; color: var(--tasks-text) !important; font-size: 18px !important; font-weight: 800 !important; letter-spacing: -.02em !important; line-height: 1.3 !important; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
body.is-authenticated[data-active-view="workflow"] #workflowView .task-card p { display: -webkit-box !important; overflow: hidden !important; min-height: 52px !important; margin: 0 !important; color: #68758b !important; font-size: 11px !important; line-height: 1.55 !important; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
body.is-authenticated[data-active-view="workflow"] .task-card-badges { display: flex !important; min-height: 25px; margin: 0 !important; gap: 8px !important; align-items: center; align-self: end; }
body.is-authenticated[data-active-view="workflow"] .task-card-badges .status-badge { min-height: 23px; padding: 3px 9px; border-radius: 4px; font-size: 9px; font-weight: 750; }
body.is-authenticated[data-active-view="workflow"] #workflowView .task-card-footer { display: grid !important; min-height: 106px !important; height: 106px !important; margin: 0 !important; padding: 12px 0 0 !important; grid-template-columns: minmax(0, 1fr) !important; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 6px !important; align-items: center !important; align-self: end; box-sizing: border-box; border-top: 1px solid #e9eeeb !important; }
body.is-authenticated[data-active-view="workflow"] .task-card-footer > div { display: grid !important; min-width: 0; min-height: 0; gap: 4px !important; align-content: center; }
body.is-authenticated[data-active-view="workflow"] .task-card-footer > div.is-empty { visibility: hidden; }
body.is-authenticated[data-active-view="workflow"] .task-card-footer-label { display: inline-flex !important; gap: 5px; align-items: center; color: #69778c !important; font-size: 8px !important; font-weight: 750 !important; letter-spacing: .06em; text-transform: uppercase; }
body.is-authenticated[data-active-view="workflow"] .task-card-footer-label svg { width: 12px; height: 12px; }
body.is-authenticated[data-active-view="workflow"] .task-card-footer-value { display: flex !important; min-width: 0; gap: 7px; align-items: center; overflow: hidden; color: var(--tasks-text) !important; font-size: 10px !important; font-weight: 700 !important; text-overflow: ellipsis; white-space: nowrap; }
body.is-authenticated[data-active-view="workflow"] .task-card-avatar { display: grid; width: 24px; height: 24px; flex: 0 0 auto; place-items: center; border: 1px solid #dfe6e1; border-radius: 50%; color: #344054; background: #fff; font-size: 8px; font-weight: 800; letter-spacing: -0.03em; }
body.is-authenticated[data-active-view="workflow"] .task-card-assignee-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.is-authenticated[data-active-view="workflow"] .task-card-footer-due { justify-items: start; text-align: left; }
body.is-authenticated[data-active-view="workflow"] .task-card.overdue .task-card-footer-due * { color: var(--tasks-red) !important; }
body.is-authenticated[data-active-view="workflow"] #workflowView .task-card-action-menu {
  position: absolute !important;
  display: grid !important;
  z-index: 100 !important;
  top: 32px !important;
  right: 0 !important;
  width: 190px !important;
  min-width: 190px !important;
  max-width: calc(100vw - 32px);
  overflow: visible !important;
  padding: 6px !important;
  border: 1px solid var(--tasks-border) !important;
  border-radius: 6px !important;
  background: #fff !important;
  box-shadow: 0 14px 28px rgba(18, 39, 27, .16) !important;
  isolation: isolate;
}
body.is-authenticated[data-active-view="workflow"] #workflowView .task-card-action-menu button {
  display: flex !important;
  width: 100% !important;
  min-width: 0;
  align-items: center;
  white-space: nowrap;
}
body.is-authenticated[data-active-view="workflow"] .task-card-load-state { display: flex; padding: 8px 2px 0; justify-content: space-between; color: var(--tasks-muted); font-size: 9px; }
body.is-authenticated[data-active-view="workflow"] .task-card-empty-state { min-height: 300px; display: grid; place-items: center; }

body.is-authenticated[data-active-view="workflow"] :is(.task-metric-card, .task-tab, .task-card, .tasks-filter-button, .task-filter-chip, .task-view-toggle button):focus-visible {
  outline: 3px solid rgba(40, 116, 234, .26) !important;
  outline-offset: 2px !important;
}

@media (max-width: 1280px) {
  html[data-sidebar-state] body.is-authenticated[data-active-view="workflow"] #workflowView.active { padding: 24px 24px 36px !important; }
  body.is-authenticated[data-active-view="workflow"] #workflowMetrics { gap: 14px; }
  body.is-authenticated[data-active-view="workflow"] .task-view-cards { gap: 12px !important; }
  body.is-authenticated[data-active-view="workflow"] #taskContextTabs .task-tab { min-height: 50px !important; padding: 8px 10px !important; grid-template-columns: 30px minmax(0, 1fr) !important; gap: 8px !important; }
  body.is-authenticated[data-active-view="workflow"] #taskContextTabs .task-tab > .task-tab-icon { width: 30px !important; min-width: 30px !important; height: 30px !important; }
  body.is-authenticated[data-active-view="workflow"] .task-tab-copy strong { font-size: 11px; }
}

@media (max-width: 1080px) {
  html[data-sidebar-state] body.is-authenticated[data-active-view="workflow"] .page-header > div:first-child { min-width: auto; margin-right: 16px; }
  body.is-authenticated[data-active-view="workflow"] #workflowView.active.has-task-detail .workflow-workspace { grid-template-columns: minmax(0, 1fr) !important; }
}

@media (max-width: 840px) {
  html[data-sidebar-state] body.is-authenticated[data-active-view="workflow"] .page-header > div:first-child { display: none !important; }
  html[data-sidebar-state] body.is-authenticated[data-active-view="workflow"] #workflowView.active { padding: 18px 16px 92px !important; }
  body.is-authenticated[data-active-view="workflow"] #workflowMetrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  body.is-authenticated[data-active-view="workflow"] #workflowView.active .task-metric-card { min-height: 92px !important; padding: 14px 14px 14px 18px !important; grid-template-columns: 38px minmax(0, 1fr) !important; gap: 10px !important; }
  body.is-authenticated[data-active-view="workflow"] #workflowView.active .task-metric-icon { width: 38px !important; height: 38px !important; }
  body.is-authenticated[data-active-view="workflow"] #workflowView.active .task-metric-icon svg { width: 21px; height: 21px; }
  body.is-authenticated[data-active-view="workflow"] #workflowView.active .task-metric-card strong { font-size: 22px !important; }
  body.is-authenticated[data-active-view="workflow"] .task-view-cards { display: flex !important; gap: 10px !important; overflow-x: auto; scroll-snap-type: x proximity; }
  body.is-authenticated[data-active-view="workflow"] #taskContextTabs .task-tab { min-width: 150px !important; scroll-snap-align: start; }
  body.is-authenticated[data-active-view="workflow"] .task-workspace-toolbar { align-items: flex-start; flex-direction: column; }
  body.is-authenticated[data-active-view="workflow"] .tasks-filter-actions { width: 100%; margin: 0; justify-content: flex-start; }
  body.is-authenticated[data-active-view="workflow"] .workflow-sort-control { margin-left: auto !important; }
  body.is-authenticated[data-active-view="workflow"] #workflowView.task-list-mode .queue-controls { grid-template-columns: auto minmax(0, 1fr) auto; }
  body.is-authenticated[data-active-view="workflow"] #workflowView.task-list-mode .queue-controls > .workflow-sort-control { grid-column: 2; justify-self: end; }
  body.is-authenticated[data-active-view="workflow"] #workflowView.task-list-mode #workflowListViewToggle { grid-column: 3; }
  body.is-authenticated[data-active-view="workflow"] #workflowView.task-list-mode .table-scroll {
    width: calc(100% - 24px) !important;
    margin-inline: 12px !important;
  }
  body.is-authenticated[data-active-view="workflow"] #workflowView.task-list-mode .workflow-table-footer {
    width: calc(100% - 24px);
    margin-inline: 12px;
  }
  body.is-authenticated[data-active-view="workflow"] #workflowView.task-list-mode .workflow-footer-controls {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 560px) {
  body.is-authenticated[data-active-view="workflow"] #workflowView.task-list-mode .queue-controls { grid-template-columns: minmax(0, 1fr) auto; }
  body.is-authenticated[data-active-view="workflow"] #workflowView.task-list-mode #workflowListFiltersButton { grid-column: 1; grid-row: 1; justify-self: start; }
  body.is-authenticated[data-active-view="workflow"] #workflowView.task-list-mode #workflowListViewToggle { grid-column: 2; grid-row: 1; }
  body.is-authenticated[data-active-view="workflow"] #workflowView.task-list-mode .queue-controls > .workflow-sort-control { grid-column: 1 / -1; grid-row: 2; width: 100%; margin: 0 !important; justify-content: flex-end; }
  body.is-authenticated[data-active-view="workflow"] #workflowView.task-list-mode .queue-controls > .filter-bar { grid-row: 3; }
  body.is-authenticated[data-active-view="workflow"] #workflowView.task-list-mode .workflow-footer-controls {
    align-items: flex-start;
    flex-direction: column;
  }
  body.is-authenticated[data-active-view="workflow"] #workflowView.active .task-metric-card { grid-template-columns: 1fr !important; }
  body.is-authenticated[data-active-view="workflow"] #workflowView.active .task-metric-icon { display: none !important; }
  body.is-authenticated[data-active-view="workflow"] .task-card-view { padding: 0 14px 18px !important; }
  body.is-authenticated[data-active-view="workflow"] .task-workspace-toolbar { margin: 0 0 12px; padding: 14px 0; }
  body.is-authenticated[data-active-view="workflow"] .tasks-sort-label { display: none; }
  body.is-authenticated[data-active-view="workflow"] .task-card-view-toggle span { display: none; }
  body.is-authenticated[data-active-view="workflow"] .tasks-filter-grid { grid-template-columns: 1fr; }
  body.is-authenticated[data-active-view="workflow"] #workflowView .task-card-grid { grid-template-columns: minmax(0, 1fr) !important; }
  body.is-authenticated[data-active-view="workflow"] #workflowView .task-card { min-height: 280px !important; }
}

@media (prefers-reduced-motion: reduce) {
  body.is-authenticated[data-active-view="workflow"] #workflowView .task-card { transition: none !important; }
}
