/* Keep the weekly planner as one readable sheet with two quiet paper edges. */
.screen-chapter-stage .screen-schedule {
  padding: 23px 13px 14px;
  color: #294650;
  background: linear-gradient(112deg, #f6efda, #fff9e9 34%, #fcf5e2);
  border: 1px solid #fffcf0;
  border-radius: 4px 5px 9px 4px;
  box-shadow:
    inset 1px 1px 0 #ffffffb3,
    0 1px 1px #40585c33,
    4px 9px 12px -7px #16343d5c,
    9px 21px 25px -13px #16343d57;
}

.screen-chapter-stage .schedule-sheet {
  inset: 5px 0 -4px 1px;
  border: 0;
  border-right: 1px solid #d6ccb4;
  border-bottom: 2px solid #e8dec5;
  border-radius: 0 0 7px 0;
  background: none;
  box-shadow: 0 1px 0 #fdf8e8;
  transform: translate(1px, 0);
}

.screen-chapter-stage .schedule-sheet.sheet-two {
  inset: 8px 1px -7px 3px;
  border-color: #d4cab3;
  background: none;
  transform: translate(1px, 0);
}

.screen-chapter-stage .screen-schedule::before {
  left: 50%;
  top: -10px;
  width: 34px;
  height: 18px;
  transform: translateX(-50%);
  border-radius: 3px 3px 2px 2px;
  box-shadow: inset 0 1px 0 #ffffffd9, 0 2px 3px #243f4b40;
}

.screen-chapter-stage .screen-schedule::after {
  width: 14px;
  height: 14px;
  border-radius: 0 0 8px;
  opacity: .65;
}

.screen-chapter-stage .screen-schedule-head {
  margin-bottom: 11px;
  color: #435962;
  font-size: 9px;
  line-height: 1.3;
  letter-spacing: 1.5px;
}

.screen-chapter-stage .screen-schedule-head i {
  width: 5px;
  height: 5px;
  background: #698878;
  box-shadow: 0 0 0 2px #69887812;
}

.screen-chapter-stage .screen-weekdays {
  gap: 3px;
  margin-bottom: 6px;
  padding: 3px;
  border: 1px solid #d9cdb34d;
  border-radius: 6px;
  background: #eee5cf66;
}

.screen-chapter-stage .screen-weekdays button {
  min-height: 32px;
  border-radius: 4px;
  color: #53635f;
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
}

.screen-chapter-stage .screen-weekdays button[aria-pressed="true"] {
  color: #fffaf0;
  background: linear-gradient(#42616b, #304b55);
  box-shadow: inset 0 1px 0 #ffffff38, inset 0 -1px 0 #243d46, 0 2px 2px #263e4533;
}

@media (hover: hover) and (pointer: fine) {
  .screen-chapter-stage .screen-weekdays button:not([aria-pressed="true"]):hover:not(:active) {
    background: #fffaf0b3;
    box-shadow: inset 0 1px 0 #ffffff99, 0 1px 1px #625c4221;
  }
  .screen-chapter-stage .screen-weekdays button[aria-pressed="true"]:hover:not(:active) {
    background: linear-gradient(#4b6a72, #36535d);
  }
}

.screen-chapter-stage .screen-weekdays button:active {
  transform: translateY(1px);
  box-shadow: inset 0 1px 3px #263e4547;
}

.screen-chapter-stage .screen-weekdays button:focus-visible {
  outline: 2px solid #517989;
  outline-offset: 2px;
}

.screen-chapter-stage .screen-lessons > div {
  display: grid;
  grid-template-columns: 33px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 49px;
  padding: 7px 0;
  border-top: 1px solid #75847b24;
}

.screen-chapter-stage .screen-lessons > div:first-child {
  border-top-color: transparent;
}

.screen-chapter-stage .screen-lessons time {
  color: #61716e;
  font-size: 9px;
  font-variant-numeric: tabular-nums;
  line-height: 1.4;
}

.screen-chapter-stage .screen-lessons span {
  min-width: 0;
  color: #2f4950;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
}

.screen-chapter-stage .screen-lessons small {
  margin-top: 2px;
  color: #6b7770;
  font-size: 9px;
  font-weight: 400;
  line-height: 1.4;
}

.screen-chapter-stage .schedule-tab {
  margin-top: 8px;
  color: #526a63;
  font-size: 11px;
  line-height: 1.4;
}

@media (min-width: 600px) and (max-width: 899px), (pointer: coarse) {
  .screen-chapter-stage .screen-weekdays button {
    min-height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .screen-chapter-stage .screen-weekdays button:active { transform: none; }
}
