/* v8.17 · iPhone 14: breathing room above toolbar + content-sized week shelf.
   Two narrowly scoped fixes; no Notion/data/gesture changes. */

/* The previous 34px folio header placed the 29px icon buttons just 2–3px
   below the start of the content area. Add 9px to the header itself, not
   to safe-area-inset-top; this avoids duplicating iOS's status bar inset. */
.folio-top {
  flex:0 0 85px!important;
  height:85px!important;
  min-height:85px!important;
}
.folio-top .app-header {
  flex:0 0 43px!important;
  height:43px!important;
  min-height:43px!important;
  padding:10px 11px 1px!important;
}
/* Preserve the 42px compact title row immediately below the toolbar. */
.folio-top .page-heading {
  flex:0 0 42px!important;
  height:42px!important;
  min-height:42px!important;
}

/* The original 67px minimum on every week all-day cell created a tall
   empty row even when only one unscheduled item existed. Let the cell grow
   naturally with the number of items instead of reserving empty space. */
.week-track .all-day-cell,
.week-track.overview .all-day-cell {
  min-height:0!important;
  height:auto!important;
  padding:3px 2px 2px!important;
}
.week-track .all-day-row .all-label,
.week-track.overview .all-day-row .all-label {
  min-height:0!important;
  padding:5px 1px!important;
  line-height:1.35!important;
  align-self:start!important;
}
.week-track .all-day-row,
.week-track.overview .all-day-row {
  min-height:0!important;
  height:auto!important;
  align-items:stretch!important;
}
.week-track .all-day-item {margin-bottom:3px!important;}

@media(max-width:370px) {
  .folio-top .app-header{padding-left:7px!important;padding-right:7px!important}
}
