/* PLANDI v1.1 — focused planner polish. Pinboard storage is preserved but its UI is removed. */
.tab-bar{justify-content:flex-start}
.header-controls{margin-left:auto;gap:8px}
#chatBtn,#settingsBtn{display:inline-flex!important}
/* WEEK: weekday strip and timetable live in the same scroll track and use the same 8 columns. */
.week-track .timeline-week-pills{
  position:sticky!important;top:0!important;left:0;z-index:14!important;
  display:grid!important;grid-template-columns:33px repeat(7,minmax(0,1fr))!important;
  width:100%!important;min-width:0!important;margin:0!important;padding:0!important;
  gap:0!important;box-sizing:border-box!important;
  border-bottom:1px solid #bcb8b0;background:#f8f7f4!important;
}
.week-track .timeline-week-pills .week-pill-corner{background:#f8f7f4;border-right:1px solid #dedbd6}
.week-track .timeline-week-pills .weekday-pill{min-width:0!important;box-sizing:border-box!important;width:100%!important;}
.week-track .week-header{position:sticky!important;top:40px!important;z-index:13!important;background:#f8f7f4!important}
.week-track .all-day-row{position:relative!important;top:auto!important;z-index:12!important;isolation:isolate;background:#f8f7f4!important;min-height:0!important}
.week-track .all-day-row .all-label,.week-track .all-day-row .all-day-cell{background:#f8f7f4!important;position:relative;z-index:1}
.week-track .all-day-row .all-label{white-space:normal;overflow:hidden;word-break:normal;line-height:1.15}
.week-track .week-header,.week-track .all-day-row,.week-track .timeline-body-grid{grid-template-columns:33px repeat(7,minmax(0,1fr))!important;}
/* No event chip should show through the all-day header row. */
.week-track .all-day-row{overflow:hidden!important}
/* MONTH date markers share one fixed centered box. */
.month-cell .date-num{display:inline-flex!important;align-items:center!important;justify-content:center!important;
  vertical-align:top!important;box-sizing:border-box!important;min-width:21px!important;
  width:21px!important;height:21px!important;min-height:21px!important;
  padding:0!important;margin:0 0 4px!important;line-height:1!important;
  font-variant-numeric:tabular-nums;border-radius:0!important;
  font-weight:600!important;position:relative!important;inset:auto!important;transform:none!important;
}
.month-cell .date-num.picked:not(.today){box-shadow:inset 0 0 0 1px #77736d!important;}
.month-cell .date-num.today{box-shadow:none!important;background:#292827!important;color:#fff!important;}
.month-cell .date-num.today.picked{outline:1px solid #9b9791!important;outline-offset:2px!important;}
/* Desktop sidebar: separated Event / To do / Log, logs without completion strike. */
.titi-agenda-aside .wide-side-section{border-top:1px solid #d5d0c9!important;padding:11px 0 13px!important;}
.titi-agenda-aside .wide-side-section h2{margin:0 0 9px!important;}
.titi-agenda-aside .wide-agenda-entry.is-log .wide-entry-name{opacity:1!important;text-decoration:none!important;}
.titi-agenda-aside .wide-agenda-entry.is-log{border-left-color:#a9a39a;background:#f8f7f4;}
/* Avoid huge settings dialog and long explanatory boxes */
.titi-layout-settings .layout-mode-options{gap:6px!important;}
#modalLayer .settings-section{margin-top:10px!important;padding:12px!important;}
#modalLayer .settings-section h3{margin:0 0 9px!important;}
#modalLayer .settings-section .inline-actions{gap:7px!important;flex-wrap:wrap!important;}
#modalLayer .settings-section .notion-connection-status{padding:7px 10px!important;font-size:11px!important;}
/* While finger holds a card, prevent text selection but preserve two-finger pinch in timeline. */
body.titi-is-dragging{user-select:none;-webkit-user-select:none;}
@media(pointer:coarse){.day-view .time-block[data-drag-entry],.day-view .all-day-item[data-drag-entry]{touch-action:none!important;-webkit-user-select:none!important;}}
@media(min-width:901px){.week-track .timeline-week-pills{min-width:100%!important}}
