#weekGrid.week-grid {
  display: block;
  overflow-x: auto;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  scrollbar-width: thin;
}
.week-table {
  width: 100%;
  min-width: 720px;
  table-layout: fixed;
  border-spacing: 0;
  font-size: 12px;
}
.week-table th, .week-table td {
  padding: 2px 4px;
  border-right: 1px solid var(--faint);
  border-bottom: 1px solid var(--faint);
  vertical-align: top;
}
.week-table th:last-child, .week-table td:last-child { border-right: 0 }
.week-table tbody tr:last-child > * { border-bottom: 0 }
.week-table tr > th:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  width: 62px;
  text-align: center;
  vertical-align: middle;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  background: #fafbfd;
  border-right-color: var(--line);
}
.week-table thead th { background: #fafbfd; vertical-align: middle }
.week-table-day {
  display: block;
  width: 100%;
  padding: 8px 2px;
  color: var(--ink);
  font-size: 13px;
  border-radius: 5px;
}
.week-table-day[aria-current] { color: var(--accent); background: var(--tint) }
.week-table tbody td { height: 30px }
.week-table td.selected-day { background: #f9fbfe }
.week-table td.elapsed { background: #f1f2f4 }
.week-table .week-unassigned > * { border-top: 1px solid var(--line) }
.week-table tbody .week-unassigned td { height: 40px }
.week-table .task-card { min-width: 0; margin-block: 2px }
.week-slot-add {
  display: block;
  width: 100%;
  min-height: 24px;
  padding: 2px 4px;
  text-align: left;
  font-size: 12px;
  color: #76818d;
  border-radius: 4px;
}
.week-slot-add:hover, .week-slot-add:focus-visible { color: var(--ink); }
.week-table .slot-editor { margin: 2px 0; }
