.task-view-tabs { margin-bottom: 22px; max-width: 100%; overflow-x: auto; }
.workday {
  --workday-ink: #172642;
  --workday-blue: #2854df;
  --workday-muted: #66758c;
  --workday-rule: #e4eaf3;
  color: var(--workday-ink);
  min-width: 0;
}
.workday-top, .workday-quick, .workday-controls, .workday-tabs,
.workday-filters, .workday-search, .workday-group-head, .workday-actions {
  display: flex;
  align-items: center;
}
.workday-top { justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.workday-top > div:first-child { display: grid; gap: 5px; }
.workday-top time { font-size: 17px; font-weight: 700; }
.workday-top > div:first-child > span { font-size: 13px; color: var(--workday-muted); }
.workday-quick { flex-wrap: wrap; gap: 8px; }
.workday-controls { justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.workday-tabs { flex-wrap: wrap; gap: 4px; }
.workday-tab { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 9px 12px; border-radius: 7px; color: var(--workday-muted); text-decoration: none; font-size: 13px; font-weight: 600; white-space: nowrap; }
.workday-tab span { min-width: 22px; text-align: center; font-size: 12px; font-variant-numeric: tabular-nums; }
.workday-tab.active { color: var(--workday-blue); background: #eaf0ff; }
.workday-tab:hover { background: #edf1f7; }
.workday-filters { gap: 9px; flex-wrap: wrap; min-width: 0; }
.workday-search { gap: 7px; min-width: 0; }
.workday-search input, .workday-kind select { font: inherit; font-size: 13px; color: var(--workday-ink); background: #fff; border: 1px solid #ccd6e5; border-radius: 7px; min-height: 44px; padding: 10px 12px; }
.workday-search input { min-width: 0; width: 220px; }
.workday-kind select { max-width: 100%; }
.workday-group { background: #fff; border: 1px solid var(--workday-rule); border-radius: 10px; margin-bottom: 20px; overflow: hidden; }
.workday-group-head { padding: 16px 20px; gap: 9px; border-bottom: 1px solid var(--workday-rule); }
.workday-group-head h2 { font-size: 15px; font-weight: 700; margin: 0; }
.workday-group-head > span { color: var(--workday-muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.workday-group-overdue .workday-group-head h2 { color: #a53a45; }
.workday-list { list-style: none; padding: 0; margin: 0; }
.workday-row { display: grid; grid-template-columns: 110px minmax(160px, 1fr) auto; align-items: center; column-gap: 18px; padding: 20px; border-left: 3px solid transparent; }
.workday-row + .workday-row { border-top: 1px solid var(--workday-rule); }
.workday-row-overdue { border-left-color: #bd5962; }
.workday-when { display: grid; gap: 7px; align-self: start; }
.workday-when time { font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.workday-row-overdue .workday-when time { color: #a53a45; }
.workday-when > span { font-size: 12px; color: var(--workday-muted); }
.workday-subject { min-width: 0; }
.workday-subject h3 { margin: 0; font-size: 14px; line-height: 1.6; font-weight: 700; overflow-wrap: anywhere; }
.workday-context { display: flex; flex-wrap: wrap; gap: 3px 10px; margin-top: 5px; color: #52627b; font-size: 12px; line-height: 1.65; }
.workday-context > span { overflow-wrap: anywhere; }
.workday-context > span:first-child { font-weight: 700; color: var(--workday-ink); }
.workday-owner { margin: 6px 0 0; color: var(--workday-muted); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.workday-actions { justify-content: flex-end; flex-wrap: wrap; gap: 8px; max-width: 350px; }
.workday-actions .btn, .workday-quick .btn, .workday-search .btn { min-height: 44px; font-size: 12px; }
.workday-actions .btn { text-align: center; white-space: normal; }
.workday-empty { background: #fff; padding: 38px 24px; border: 1px solid var(--workday-rule); border-radius: 10px; }
.workday-empty h2 { font-size: 17px; margin: 0 0 12px; }
.workday :is(a, button, input, select):focus-visible { outline: 3px solid #2854df; outline-offset: 3px; }
@media (max-width: 1100px) {
  .workday-row { grid-template-columns: 95px minmax(0, 1fr); gap: 12px; }
  .workday-actions { grid-column: 2; justify-content: flex-start; max-width: none; }
}
@media (max-width: 600px) {
  .workday-top { margin-bottom: 16px; }
  .workday-top time { font-size: 16px; }
  .workday-quick { width: 100%; }
  .workday-quick .btn { flex: 1; white-space: normal; }
  .workday-controls { align-items: stretch; gap: 12px; }
  .workday-tabs { width: 100%; justify-content: space-between; gap: 0; }
  .workday-tab { padding-inline: 8px; gap: 4px; }
  .workday-filters { width: 100%; flex-direction: column; align-items: stretch; }
  .workday-search input { width: 100%; flex: 1; }
  .workday-kind select { width: 100%; }
  .workday-group-head { padding: 14px; }
  .workday-row { grid-template-columns: minmax(0, 1fr); padding: 16px 14px; gap: 8px; }
  .workday-when { display: flex; justify-content: space-between; gap: 10px; }
  .workday-actions { grid-column: 1; margin-top: 5px; }
  .workday-actions .btn { flex: 1; }
}
