.schedule-workspace { display: grid; min-width: 0; gap: 16px; }
.schedule-controls { display: grid; gap: 14px; }
.schedule-team-controls, .schedule-date-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  justify-content: space-between;
}
.schedule-date-controls { padding-top: 12px; border-top: 1px solid var(--line); }
.schedule-date-controls > strong { font-size: 17px; }
.schedule-arrow { min-width: 44px; font-size: 21px; line-height: 1; }
.schedule-empty { margin: 0; padding: 24px 0; color: var(--muted); text-align: center; }
.schedule-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 14px; }
.schedule-summary > div { min-width: 0; padding: 12px 15px; background: var(--canvas); border: 1px solid var(--line); border-radius: 10px; }
.schedule-summary dt { font-size: 13px; color: var(--muted); }
.schedule-summary dd { margin: 4px 0 0; font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.schedule-summary small { color: var(--muted); font-size: 12px; font-weight: 400; }
.schedule-grid-help { margin: 0 0 12px; }
.schedule-week-scroll { max-width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
.schedule-week-scroll:focus-visible, .schedule-page :is(.schedule-cell, [data-week-day], [data-batch-day]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
.schedule-week-table { width: 100%; min-width: 910px; border-collapse: separate; border-spacing: 0; table-layout: fixed; text-align: left; }
.schedule-week-table th, .schedule-week-table td { padding: 7px; border-inline-end: 1px solid var(--line); border-bottom: 1px solid var(--line); vertical-align: middle; }
.schedule-week-table tr > :last-child { border-inline-end: 0; }
.schedule-week-table tbody tr:last-child > * { border-bottom: 0; }
.schedule-week-table th:first-child { position: sticky; inset-inline-start: 0; z-index: 1; width: 137px; padding: 10px 12px; background: var(--paper); overflow-wrap: anywhere; }
.schedule-week-table thead th { background: var(--canvas); }
.schedule-week-table thead th:first-child { background: var(--canvas); }
.schedule-week-table thead button {
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.schedule-week-table thead button:hover { background: var(--accent-soft); }
.schedule-week-table th small, .schedule-mobile-people li > div small { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; font-weight: 400; }
.schedule-week-table .schedule-current-day { background: var(--accent-soft); }
.schedule-cell {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 3px;
  width: 100%;
  min-width: 0;
  min-height: 64px;
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--canvas);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.schedule-cell strong { font-size: 13px; line-height: 1.25; }
.schedule-cell small { font-size: 11px; line-height: 1.3; overflow-wrap: anywhere; }
.schedule-cell:hover:not(:disabled) { border-color: currentColor; }
.schedule-cell:disabled { cursor: default; }
.schedule-cell-early { color: #7c4a15; background: #fff0d8; border-color: #eed8b6; }
.schedule-cell-late { color: #4f3a82; background: #f0ebfb; border-color: #e2d8f5; }
.schedule-cell-straight { color: #245b46; background: #e6f4eb; border-color: #cee8d8; }
.schedule-cell-split { color: #813145; background: #f9e9ee; border-color: #efd3de; }
.schedule-cell-rest { color: #4a5662; background: #edf1f4; border-color: #dbe3e9; }
.schedule-cell-default { border-style: dashed; color: var(--muted); background: var(--paper); }
.schedule-mobile-week { display: none; }
.schedule-editor { width: min(560px, calc(100vw - 28px)); }
.schedule-editor-person { margin: 0 0 14px; overflow-wrap: anywhere; }
.schedule-editor-fields .schedule-time-fields, .schedule-editor-fields .schedule-examples { grid-column: 1 / -1; }
.schedule-editor-fields .schedule-time-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.schedule-time-fields input { min-width: 0; }
@media (max-width: 860px) {
  .schedule-week-scroll, .schedule-grid-help { display: none; }
  .schedule-mobile-week { display: block; }
  .schedule-summary { gap: 7px; }
  .schedule-summary > div { padding: 9px 8px; }
  .schedule-summary dd { font-size: 18px; }
  .schedule-summary small { font-size: 11px; }
  .schedule-day-picker { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
  .schedule-day-picker button {
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 4px;
    min-height: 52px;
    padding: 4px 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    color: var(--ink);
    font: inherit;
    cursor: pointer;
  }
  .schedule-day-picker small { font-size: 11px; }
  .schedule-mobile-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-block: 14px; }
  .schedule-mobile-people li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(115px, 1fr); gap: 12px; }
  .schedule-mobile-people li > div { overflow-wrap: anywhere; }
}
