/* v8.23 — Optional memo preview for Event & Items.
   Full notes remain editable in the record modal and Notion; month stays unchanged. */
.schedule-note-toggle{margin:3px 0 10px!important;align-items:center!important;gap:8px!important;}
.schedule-note-toggle span{font-size:12px!important;color:#5c5751!important;}
.schedule-note-preview{
  display:-webkit-box;max-width:100%;min-width:0;
  font-size:9px;line-height:1.28;letter-spacing:0;
  color:#777269;font-weight:400;
  white-space:normal;overflow-wrap:anywhere;word-break:normal;
  overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2;
  text-overflow:ellipsis;
}
.time-block .block-text .schedule-note-preview{width:100%;margin-top:2px;}
.time-block.with-visible-note .block-text{min-width:0;overflow:hidden!important;}
.time-block.with-visible-note .block-title{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;}
.time-block.with-visible-note .block-time{margin-top:2px;}
.time-block.with-visible-note .schedule-note-preview{font-style:normal;}
/* Tight time slots: preserve title + one memo line without expanding the actual duration. */
.time-block.with-visible-note[style] .schedule-note-preview{ -webkit-line-clamp:1; }
/* Give longer blocks two lines when their visual height allows it. */
.time-block.with-visible-note:has(.block-time) .schedule-note-preview{ -webkit-line-clamp:2; }
.week-track .time-block.with-visible-note .schedule-note-preview{
  font-size:8px;line-height:1.2;-webkit-line-clamp:1;margin-top:2px;
}
.week-track .time-block[data-overlap]:not([data-overlap="1"]) .schedule-note-preview{
  -webkit-line-clamp:1;font-size:8px;max-width:100%;
}
.week-track .time-block.check-card[data-overlap]:not([data-overlap="1"]) .inline-edit:has(.schedule-note-preview){
  max-height:54px!important;
}
.all-day-item .all-text .schedule-note-preview,
.day-all-list .all-text .schedule-note-preview{
  font-size:9px;line-height:1.35;color:#79756f;margin-top:3px;-webkit-line-clamp:2;
}
/* Fully zoomed-out timetable favors clear titles; notes remain visible in editor. */
.timeline-scroll.compact-zoom .time-block .schedule-note-preview{display:none!important;}

/* In a narrow weekly column the timetable itself conveys the hour; prioritize the chosen memo. */
.week-track .time-block.with-visible-note .item-type,
.week-track .time-block.with-visible-note .block-time{display:none!important;}
.week-track .time-block.with-visible-note .schedule-note-preview{-webkit-line-clamp:2;}
