/* TITI v8.29 · header button order, week check visibility, Day one-line check alignment */
/* Swap the actual visual positions, not the button functionality. */
.folio-top .header-controls #chatBtn{order:0!important}
.folio-top .header-controls #settingsBtn{order:4!important}
/* WEEK is a review/planning view: use full text space in BOTH 4-day and
   7-day layouts. Completion is still shown via line-through and can be edited
   inside the existing Item details editor; DAY keeps the interactive circle. */
.week-track .time-block.check-card .item-visual>input[type="checkbox"],
.week-track .all-day-item.check-card>input[type="checkbox"]{display:none!important}
.week-track .time-block.check-card .item-visual{
  padding-left:3px!important;gap:0!important;
  align-items:stretch!important;
}
.week-track .time-block.check-card .item-visual>.inline-edit{
  width:100%!important;min-width:0!important;max-width:100%!important;
  flex:1 1 auto!important;
}
.week-track .all-day-item.check-card .all-text{width:100%!important;min-width:0!important}
/* A 15-minute DAY item can be barely 21px tall. The previous 5px top margin
   placed the 14px ring off-centre and the time-card clipped its bottom. */
.day-timeline-grid .time-block.check-card .item-visual>input[type="checkbox"]{
  margin:0 5px 0 0!important;
  padding:0!important;
  box-sizing:border-box!important;
  display:inline-grid!important;
  align-self:center!important;
  flex:0 0 14px!important;
  width:14px!important;height:14px!important;
  min-width:14px!important;min-height:14px!important;
  max-width:14px!important;max-height:14px!important;
  vertical-align:middle!important;
  transform:none!important;
}
/* Keep the checkbox centered even when the content has only a single line. */
.day-timeline-grid .time-block.compact-interval.check-card .item-visual{
  align-items:center!important;
}
/* 5–10 minute Items have fewer than 14 physical pixels at low zoom; allow a
   tiny minimum paint height so the ring is never severed by the card's clip. */
.day-timeline-grid .time-block.compact-interval.check-card .item-visual{
  min-height:18px!important;max-height:none!important;
  overflow:visible!important;
}
.day-timeline-grid .time-block.compact-interval.check-card .item-visual>.inline-edit{
  min-height:18px!important;max-height:none!important;
}
