.day-sheet {
  --paper: #fff5e8;
  --rust: #a44424;
  --coral: #eb454f;
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: 775px;
  min-height: 1000px;
  margin: 0 auto;
  padding: 66px 34px 80px;
  overflow: hidden;
  border: 1px solid #eedcca;
  border-radius: 0;
  background: var(--paper);
  color: var(--rust);
  font-family: 'Comic Sans MS', 'Chalkboard SE', 'Comic Neue', cursive;
  font-style: normal;
  line-height: 1.45;
}
.day-sheet::before, .day-sheet::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  height: 58px;
  z-index: -1;
  pointer-events: none;
  background: url('lesson-border.svg') center top / 775px 64px repeat-x;
}
.day-sheet::before { top: 0; }
.day-sheet::after { bottom: 0; transform: rotate(180deg); }
.day-sheet-head {
  position: relative;
  text-align: center;
  margin-bottom: 10px;
  padding-inline: 52px;
}
.day-sheet-head::before {
  content: '';
  position: absolute;
  left: -24px;
  top: -14px;
  width: 88px;
  height: 102px;
  background: url('lesson-bubbles.svg') center / contain no-repeat;
  pointer-events: none;
  z-index: -1;
}
.day-sheet-head h3, .day-sheet-head h4 {
  display: table;
  max-width: 100%;
  padding: 3px 16px 7px;
  border-radius: 23px;
  background: #ffebeb;
  color: var(--coral);
  font: 700 43px/1.25 'Comic Sans MS', 'Chalkboard SE', 'Comic Neue', cursive;
  letter-spacing: 0;
  text-wrap: balance;
  overflow-wrap: anywhere;
  margin: 0 auto 5px !important;
}
.day-sheet-head h4 { font-size: 34px; }
.day-sheet-head .day-date {
  margin: 12px 0 0;
  color: #82573e;
  font: 12px/1.5 'Segoe UI', Arial, sans-serif;
  letter-spacing: .4px;
}
.day-sheet-head .day-goal-area{margin:10px 0 0;color:#784a32;font:13px/1.5 'Segoe UI',Arial,sans-serif;overflow-wrap:anywhere}
.day-checklist { list-style: none !important; padding: 0 !important; margin: 0 !important; }
.day-summary { margin: 18px 0 10px; font: 13px/1.55 'Segoe UI', Arial, sans-serif; color: #784a32; white-space: normal; }
.day-subject { margin: 16px 0 0; }
.day-subject-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 8px 12px; margin: 0; border-radius: 7px; background: #f2e3cf; color: #784a32; font: 700 20px/1.4 'Comic Sans MS', 'Chalkboard SE', cursive; break-after: avoid; break-inside: avoid; }
.day-subject[data-role="main"] .day-subject-heading { background: #ffebeb; color: #a63840; }
.day-subject-heading small { flex-shrink: 0; font: 12px/1.5 'Segoe UI', Arial, sans-serif; }
.day-subject .day-checklist li:first-child { break-before: avoid; }
.day-checklist li { position: relative; margin: 0 !important; padding: 0 !important; break-inside: avoid; }
.day-checklist li + li::before {
  content: '';
  display: block;
  width: 64%;
  margin: 0 auto;
  border-top: 1px dotted #b9704e;
}
.day-checklist label {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 16px 0;
  color: var(--rust);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.5;
  cursor: pointer;
}
.day-checklist input {
  appearance: none;
  flex: 0 0 41px;
  width: 41px;
  height: 46px;
  margin: 3px 0 0;
  padding: 0;
  border: 4px solid var(--rust);
  border-radius: 0;
  background: transparent;
  cursor: pointer;
}
.day-checklist input:checked { background: var(--rust); }
.day-checklist input:checked::after { content: '✓'; display: block; text-align: center; font: 700 30px/36px Arial, sans-serif; color: white; }
.day-checklist input:focus-visible { outline: 3px solid #6c88b7; outline-offset: 4px; }
.day-checklist span { min-width: 0; white-space: pre-line; overflow-wrap: anywhere; }
.batch-lesson.checklist-card { background: transparent; border: 0; border-radius: 0; }
.checklist-card > .full-lesson-record { max-width: 775px; margin: 14px auto; }
.checklist-card > .batch-actions { max-width: 775px; margin: auto; padding: 10px 0 18px; }
@media (max-width: 600px) {
  .day-sheet { padding: 48px 16px 56px; min-height: 0; }
  .day-sheet::before, .day-sheet::after { height: 36px; background-size: 470px 39px; }
  .day-sheet-head { padding-inline: 6px; margin-bottom: 8px; }
  .day-sheet-head::before { left: -12px; top: -25px; width: 40px; height: 47px; }
  .day-sheet-head h3 { font-size: 28px; padding: 4px 10px 6px; }
  .day-sheet-head h4 { font-size: 23px; padding: 4px 10px 6px; }
  .day-sheet-head .day-date { font-size: 11px; margin-top: 10px; }
  .day-subject-heading { flex-wrap: wrap; gap: 2px 10px; font-size: 18px; padding: 7px 10px; }
  .day-subject-heading small { font-size: 11px; }
  .day-checklist label { font-size: 18px; gap: 12px; padding: 13px 0; }
  .day-checklist input { flex-basis: 30px; width: 30px; height: 34px; border-width: 3px; }
  .day-checklist input:checked::after { font-size: 23px; line-height: 27px; }
}
@media print {
  @page { size: letter; margin: 8mm; }
  #print-output .day-sheet {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
    border: 0;
    border-radius: 0;
    max-width: none;
    min-height: 246mm;
    margin: 0;
    padding: 44px 28px 52px;
    break-before: page;
    overflow: visible;
    white-space: normal;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
  }
  #print-output .day-sheet:first-child { break-before: auto; }
  #print-output .day-sheet-head { padding-inline: 52px; break-inside: avoid; break-after: avoid; }
  #print-output .day-sheet-head::before { left: -22px; top: -10px; width: 72px; height: 85px; }
  #print-output .day-sheet-head h3, #print-output .day-sheet-head h4 { display: block; width: fit-content; }
  #print-output .day-sheet-head h3 { font-size: 25pt; }
  #print-output .day-sheet-head h4 { font-size: 19pt; }
  #print-output .day-sheet-head .day-date { font-size: 9pt; margin-top: 7px; }
  #print-output .day-checklist { white-space: normal; }
  #print-output .day-summary { font-size: 9pt; margin: 12px 0 6px; }
  #print-output .day-subject { margin-top: 6px; }
  #print-output .day-subject-heading { font-size: 12pt; padding: 3px 8px; }
  #print-output .day-subject-heading small { font-size: 8pt; }
  #print-output .day-checklist label { font-size: 13pt; line-height: 1.4; padding: 5px 0; gap: 17px; }
  #print-output .day-checklist input { flex-basis: 34px; width: 34px; height: 39px; border-width: 3px; }
  #print-output .day-checklist input:checked::after { font-size: 26px; line-height: 32px; }
  #print-output .day-sheet::before, #print-output .day-sheet::after { height: 48px; background-size: 775px 64px; }
}
.day-checklist .activity-sentence{display:block}.day-checklist .activity-sentence+.activity-sentence{margin-top:3px}
.day-summary .summary-sentence{display:block}
.activity-notes{margin:2px 0 12px 60px;color:#784a32;font:12px/1.5 'Segoe UI',Arial,sans-serif}
.activity-notes summary{cursor:pointer;text-decoration:underline;text-underline-offset:3px}
.activity-notes p{margin:8px 0;overflow-wrap:anywhere}
@media(max-width:480px){.activity-notes{margin-left:38px}}
@media print{#print-output .activity-notes{break-inside:auto}#print-output .activity-notes>p{display:block!important}#print-output .activity-notes::details-content{content-visibility:visible}}
