/* PC Today lessons only. Reuse presentation spans and existing row actions;
 * leave phone, tablet, Fold, typography and stored lesson records untouched. */
html[data-pe-home-today-pc="true"][data-pe-device="desktop"]:not([data-pe-ipados="true"]):not([data-pe-fold-wide="true"])
  body.homeDashboardApp #app #homeTodayList .peHomeTodayWideRow {
  container: pe-home-today-pc-row / inline-size;
}

/* Retain the original two-line layout when a narrow PC window leaves too
 * little card space for four readable labels. Never shrink the user's type. */
@container pe-home-today-pc-row (min-width: 250px) {
html[data-pe-home-today-pc="true"][data-pe-device="desktop"]:not([data-pe-ipados="true"]):not([data-pe-fold-wide="true"])
  body.homeDashboardApp #app #homeTodayList .peHomeTodayInfoBlock {
  grid-template-columns: auto minmax(0, 1fr) auto 64px;
  align-items: center;
  column-gap: 6px;
}

html[data-pe-home-today-pc="true"][data-pe-device="desktop"]:not([data-pe-ipados="true"]):not([data-pe-fold-wide="true"])
  body.homeDashboardApp #app #homeTodayList :is(.peHomeTodayHead, .peHomeTodaySubjectLine) {
  display: contents;
}

html[data-pe-home-today-pc="true"][data-pe-device="desktop"]:not([data-pe-ipados="true"]):not([data-pe-fold-wide="true"])
  body.homeDashboardApp #app #homeTodayList :is(.peHomeTodayPeriod, .peHomeTodayClass, .peHomeTodayLesson, .peHomeTodayStatus) {
  grid-row: 1;
  align-self: center;
}

html[data-pe-home-today-pc="true"][data-pe-device="desktop"]:not([data-pe-ipados="true"]):not([data-pe-fold-wide="true"])
  body.homeDashboardApp #app #homeTodayList .peHomeTodayPeriod { grid-column: 1; }

html[data-pe-home-today-pc="true"][data-pe-device="desktop"]:not([data-pe-ipados="true"]):not([data-pe-fold-wide="true"])
  body.homeDashboardApp #app #homeTodayList .peHomeTodayClass { grid-column: 2; }

html[data-pe-home-today-pc="true"][data-pe-device="desktop"]:not([data-pe-ipados="true"]):not([data-pe-fold-wide="true"])
  body.homeDashboardApp #app #homeTodayList .peHomeTodayLesson {
  grid-column: 3;
  padding-top: 0;
}

html[data-pe-home-today-pc="true"][data-pe-device="desktop"]:not([data-pe-ipados="true"]):not([data-pe-fold-wide="true"])
  body.homeDashboardApp #app #homeTodayList .peHomeTodayStatus { grid-column: 4; }

html[data-pe-home-today-pc="true"][data-pe-device="desktop"]:not([data-pe-ipados="true"]):not([data-pe-fold-wide="true"])
  body.homeDashboardApp #app #homeTodayList .peHomeTodaySubject {
  grid-column: 1 / -1;
  grid-row: 2;
  padding-top: 0;
}

html[data-pe-home-today-pc="true"][data-pe-device="desktop"]:not([data-pe-ipados="true"]):not([data-pe-fold-wide="true"])
  body.homeDashboardApp #app #homeTodayList .peHomeTodayInfoBlock > .peHomeTodayMeta {
  grid-column: 1 / -1;
  grid-row: 3;
}
}
