/* Shared narrow-phone Today card presentation. Original rows, datasets,
 * action proxies, completed-record buttons and click owners remain intact. */
html.peV2PhoneHome body.homeDashboardApp #app #homeTodayList .homeTodayRow[data-calendar-date] {
  display: grid !important;
  grid-template-columns: 40px minmax(0, 1fr) max-content !important;
  grid-template-rows: 20px minmax(44px, auto) auto !important;
  align-items: start !important;
  gap: 4px 8px !important;
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 10px 0 !important;
  text-align: left !important;
}
/* The original row aria-label retains the complete class/period/subject. Use
 * its existing data for the two visual lines without replacing any nodes. */
html.peV2PhoneHome body.homeDashboardApp #app #homeTodayList .homeTodayRow[data-calendar-date]::before,
html.peV2PhoneHome body.homeDashboardApp #app #homeTodayList .homeTodayRow[data-calendar-date]::after {
  display: block;
  grid-column: 2;
  min-width: 0;
  margin: 0;
  color: #213a4f;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
  text-align: left;
  overflow-wrap: anywhere;
}
html.peV2PhoneHome body.homeDashboardApp #app #homeTodayList .homeTodayRow[data-calendar-date]::before {
  content: attr(data-calendar-grade) "-" attr(data-calendar-class) "반";
  grid-row: 1;
  align-self: center;
}
html.peV2PhoneHome body.homeDashboardApp #app #homeTodayList .homeTodayRow[data-calendar-date]::after {
  content: attr(data-calendar-subject);
  grid-row: 2;
  padding-top: max(0px, calc((44px - 1.4em) / 2));
}
html.peV2PhoneHome body.homeDashboardApp #app #homeTodayList .homeTodayRow[data-calendar-subject=""]::after {
  content: "수업";
}
html.peV2PhoneHome body.homeDashboardApp #app #homeTodayList .homeTodayRow > .homeTodayPeriod {
  grid-column: 1;
  grid-row: 1 / 3;
  align-self: center;
  width: 38px !important;
  height: 42px !important;
  margin: 0 !important;
}
html.peV2PhoneHome body.homeDashboardApp #app #homeTodayList .homeTodayRow > .homeUpcomingInfo,
html.peV2PhoneHome body.homeDashboardApp #app #homeTodayList .homeTodayHeadingLine {
  display: contents !important;
}
html.peV2PhoneHome body.homeDashboardApp #app #homeTodayList .homeTodayHeadingLine > b {
  display: none !important;
}
html.peV2PhoneHome body.homeDashboardApp #app #homeTodayList .homeTodaySubjectLesson {
  grid-column: 3;
  grid-row: 1;
  align-self: center;
  justify-self: end;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 10px !important;
  line-height: 20px !important;
  white-space: nowrap;
}
html.peV2PhoneHome body.homeDashboardApp #app #homeTodayList .homeTodayRow > .homeUpcomingInfo > small {
  grid-column: 2 / -1;
  grid-row: 3;
  margin: 0 !important;
  min-width: 0;
}
html.peV2PhoneHome body.homeDashboardApp #app #homeTodayList .homeTodayRow > .homeUpcomingInfo > small:empty {
  display: none !important;
}
html.peV2PhoneHome body.homeDashboardApp #app #homeTodayList .homeTodayRow[data-calendar-date] > .homeTodayStart {
  grid-column: 3;
  grid-row: 2;
  align-self: start;
  justify-self: end;
  box-sizing: border-box;
  width: max-content !important;
  min-width: 54px !important;
  min-height: 28px !important;
  height: 28px !important;
  margin: 8px 0 0 !important;
  padding: 0 6px !important;
  border-radius: 7px !important;
  font-size: 10px !important;
  line-height: 1.3 !important;
}
/* The old font-size:0/pseudo label was sampled while execution was pending,
 * leaving an empty execution proxy. Always supply its real source text; the
 * existing pending visibility/pointer guards continue to hide the action. */
html.peV2PhoneHome body.homeDashboardApp #app #homeTodayList:not([data-pe-v2-home-status="error"]) .homeTodayRow[data-calendar-date] > .homeTodayStart::before {
  content: none !important;
}
html.peV2PhoneHome body.homeDashboardApp #app #homeTodayList[data-pe-v2-home-status="error"] .homeTodayRow[data-calendar-date] > .homeTodayStart {
  font-size: 0 !important;
}
/* Keep the separate original edit button a 44px touch target. Only its visible
 * outline becomes a compact 28px pill; it is never nested in the lesson button. */
html.peV2PhoneHome body.homeDashboardApp #app #homeTodayList .homeTodayCompletedItem {
  display: block !important;
  position: relative;
  min-width: 0;
}
html.peV2PhoneHome body.homeDashboardApp #app #homeTodayList .homeTodayCompletedItem > .homeTodayRow > .homeTodayStart {
  margin-right: 62px !important;
}
html.peV2PhoneHome body.homeDashboardApp #app #homeTodayList .homeTodayCompletedItem > .homeTodayRecordEdit {
  position: absolute !important;
  top: 34px !important;
  right: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  width: 58px !important;
  min-width: 58px !important;
  height: 44px !important;
  min-height: 44px !important;
  margin: 0 !important;
  padding: 0 3px !important;
  border: 0 !important;
  border-radius: 7px !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #407d9c !important;
  font-size: 10px !important;
  line-height: 1.3 !important;
  white-space: nowrap !important;
  z-index: 2;
}
html.peV2PhoneHome body.homeDashboardApp #app #homeTodayList .homeTodayCompletedItem > .homeTodayRecordEdit::before {
  content: "";
  position: absolute;
  inset: 8px 0;
  border: 1px solid #cddce7;
  border-radius: 7px;
  background: #fff;
  pointer-events: none;
  z-index: -1;
}
html.peV2PhoneHome body.homeDashboardApp #app #homeTodayList:not([data-pe-v2-home-status="ready"]) :is(.peHomeTodayStartProxy12335, .peHomeTodayStartProxy12337) {
  visibility: hidden !important;
  pointer-events: none !important;
}
html.peV2PhoneHome body.homeDashboardApp #app #homeTodayList :is(.homeTodayRow, .homeTodayRecordEdit, .peHomeTodayStartProxy12335, .peHomeTodayStartProxy12337),
html.peV2PhoneHome body.homeDashboardApp #app #homeTodayList :is(.homeTodayRow, .homeTodayRecordEdit, .peHomeTodayStartProxy12335, .peHomeTodayStartProxy12337) * {
  -webkit-tap-highlight-color: transparent !important;
}

