/* Full-cell names in the editable seven-day grid. Keep the original export template. */
@media screen {
  .schedule-panel .schedule-table td[data-day] { padding: 0; }
  .schedule-panel .schedule-table .cell-button {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    grid-template-rows: 1fr;
    align-items: stretch;
    align-content: stretch;
    justify-content: stretch;
    gap: 0;
    padding: 0;
    min-height: 76px;
    height: 100%;
    width: 100%;
  }
  .schedule-panel .schedule-table .cell-button .person-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-width: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
    padding: 5px 2px;
    font-size: clamp(22px, 1.9vw, 30px);
    line-height: 1.1;
    font-weight: 700;
    color: #233846;
    background: #e9eff3;
    background: color-mix(in srgb, var(--person-color) 28%, white);
  }
  .schedule-panel .schedule-table .cell-button .person-chip.front { color: #b51f2b; }
  .schedule-panel .schedule-table .cell-button .person-chip.front > small { font-size: 11px; font-weight: 600; }
  .schedule-panel .schedule-table .cell-button .person-chip.rest-conflict { box-shadow: inset 0 -3px #c47c1a; }
  .schedule-panel .schedule-table .cell-button:hover:not(:disabled) .person-chip { filter: brightness(.97); }
  .schedule-panel .schedule-table .cell-button.many-people {
    grid-auto-flow: row;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(var(--people-count), minmax(0, 1fr));
    min-height: max(76px, calc(var(--people-count) * 28px));
  }
  .schedule-panel .schedule-table .cell-button.many-people .person-chip { font-size: 18px; padding: 3px 1px; gap: 0; }
  .schedule-panel .schedule-table .cell-button.many-people .person-chip.front > small { display: none; }
  .schedule-panel .schedule-table .cell-button .empty-plus { font-size: 24px; align-self: center; }
  .schedule-panel .schedule-table .cell-button .empty-dash { align-self: center; }
}
@media screen and (max-width: 1280px) {
  .schedule-panel .schedule-table .cell-button {
    grid-auto-flow: row;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(var(--people-count), minmax(0, 1fr));
    min-height: max(76px, calc(var(--people-count) * 28px));
  }
  .schedule-panel .schedule-table .cell-button .person-chip { padding: 3px 1px; font-size: 20px; gap: 0; }
  .schedule-panel .schedule-table .cell-button .person-chip.front > small { display: none; }
}
@media screen and (max-width: 600px) {
  .schedule-panel .schedule-table .cell-button .person-chip { font-size: 18px; }
}
