/* FIX29 — Today-only date flow + Tomorrow alignment. */
.screen[data-screen="today"]{padding-bottom:132px!important}
.screen[data-screen="today"]>.phqTodayHeading,.screen[data-screen="today"]>.phqTaskHeading,.screen[data-screen="today"]>.todaySection{display:none!important}
.phq28TodayHero{overflow:hidden!important;padding:0!important;margin:6px 0 10px!important;border-radius:20px!important;background:#fff!important}
.phq28HeroCopy{padding:14px 16px 12px!important}
.phq28HeroCopy h2{margin:0 0 4px!important;font-family:'Sora','Inter',sans-serif!important;font-size:23px!important;line-height:1.08!important;color:#1F315B!important}
.phq28HeroCopy p{margin:0!important;color:#667085!important;font-size:12.5px!important;line-height:1.5!important;letter-spacing:0!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:clip!important}
.phq28HeroArt{width:100%!important;height:182px!important;overflow:hidden!important;border-radius:0 0 20px 20px!important;background:#f5f7fb!important}
.phq28HeroArt img{display:block!important;width:100%!important;height:100%!important;object-fit:cover!important;object-position:center 44%!important}
.screen[data-screen="today"] #weekSnapshot{margin:0 0 8px!important}
.screen[data-screen="today"] #weekSnapshot .phq28WeekCard{margin:0!important;border-radius:18px!important;padding:13px!important}
.screen[data-screen="today"] #weekSnapshot .weekHead{margin-bottom:10px!important}
.screen[data-screen="today"] #weekSnapshot .weekHead b{font-size:13px!important}
.screen[data-screen="today"] #weekSnapshot .weekHead .muted{font-size:10px!important;margin-top:3px!important}
.screen[data-screen="today"] #weekSnapshot .weekGrid{gap:7px!important}
.screen[data-screen="today"] #weekSnapshot .weekStat{padding:9px 5px!important;border-radius:13px!important}
.screen[data-screen="today"] #weekSnapshot .weekStat strong{font-size:18px!important}
.screen[data-screen="today"] #weekSnapshot .weekStat span{font-size:7.5px!important}
.screen[data-screen="today"] .phqTodayAddRow{margin:0 0 7px!important;padding:0!important}
.screen[data-screen="today"] #addTask,.screen[data-screen="today"] #addEvent{min-height:34px!important;height:34px!important;padding:6px 10px!important;border-radius:11px!important;font-size:10.5px!important;line-height:1!important;box-shadow:none!important}
.phq28EmptyActions{display:flex!important;justify-content:flex-end!important;align-items:center!important;gap:7px!important;margin:3px 1px 8px!important}
.phq28EmptyActions .phqTodayAddRow{display:block!important;margin:0!important}
.phq28TodayEmpty{margin:0 0 10px!important;border-radius:17px!important;padding:11px 13px!important}
.phq28TodayEmpty b{font-size:12.5px!important}.phq28TodayEmpty span{font-size:10px!important}
#tasks{display:grid;gap:8px!important;margin:0 0 8px!important}
#tasks>.phq28TaskCard{position:relative;display:grid!important;gap:5px!important;min-height:0!important;height:auto!important;padding:10px 12px 10px 14px!important;margin:0!important;border-radius:18px!important;background:#fff!important;border:1px solid #E6E2D9!important;border-left:4px solid #EFB84B!important;box-shadow:0 4px 14px rgba(31,43,87,.035)!important}
#tasks>.phq28TaskCard>.phq28TaskTitle{display:block!important;margin:0!important;font-size:15.5px!important;line-height:1.25!important;color:#1F315B!important;font-family:'Sora','Inter',sans-serif!important;letter-spacing:-.025em!important}
.phq28TaskBottom{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:8px!important;min-height:28px!important;margin-top:2px!important}
.phq28TaskMeta{min-width:0!important;font-size:10px!important;line-height:1.4!important;color:#667085!important}
.phq28TaskControls{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:6px!important;flex-wrap:nowrap!important;margin:0!important;min-height:0!important}
.phq28TaskControls .phqOwnerChip{min-height:24px!important;height:24px!important;max-height:24px!important;padding:3px 8px!important;font-size:11px!important}
.phq28TaskControls .phqEventMenuButton{width:28px!important;min-width:28px!important;max-width:28px!important;height:28px!important;min-height:28px!important;max-height:28px!important}
.phq29TaskMenuSheet{display:grid!important;gap:8px!important}.phq29TaskMenuSheet .btn{width:100%!important;margin:0!important}
#todayBriefing{display:grid;gap:8px!important;margin:0 0 8px!important}
#todayBriefing[hidden],#tasks[hidden]{display:none!important}
#restWeekSection{margin-top:14px!important}.screen[data-screen="today"] #restWeekSection h2{font-size:20px!important;margin-bottom:6px!important}
#events{display:grid!important;gap:8px!important}
.phq28ComingCard{display:grid!important;gap:5px!important;padding:10px 12px 10px 14px!important;border:1px solid #E4E8EF!important;border-radius:18px!important;background:#fff!important;box-shadow:0 4px 14px rgba(31,43,87,.035)!important}
.phq28ComingDay{font-size:8.5px!important;font-weight:800!important;text-transform:uppercase!important;letter-spacing:.04em!important;color:#6D5BD0!important}
.phq28ComingTitle{display:block!important;margin:0!important;font-size:15.5px!important;line-height:1.25!important;color:#1F315B!important;font-family:'Sora','Inter',sans-serif!important;letter-spacing:-.025em!important}
.phq28ComingBottom{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:8px!important}
.phq28ComingMeta{min-width:0!important;font-size:10px!important;line-height:1.4!important;color:#667085!important}
.phq28ComingControls{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:6px!important;flex-wrap:nowrap!important}
.phq28ComingControls .phqOwnerChip{appearance:none!important;width:auto!important;min-width:0!important;max-width:max-content!important;min-height:24px!important;height:24px!important;max-height:24px!important;padding:3px 8px!important;margin:0!important;border-radius:999px!important;font-size:11px!important;font-weight:700!important;line-height:1!important;white-space:nowrap!important;box-shadow:none!important}
.phq28ComingControls .phqOwnerChip.amber{color:#9A5419!important;background:#FFF5E7!important;border:1px solid #F0D6B0!important}.phq28ComingControls .phqOwnerChip.green{color:#087F70!important;background:#EAFBF7!important;border:1px solid #BDEADF!important}
.phq28ComingControls .phqEventMenuButton{width:28px!important;min-width:28px!important;max-width:28px!important;height:28px!important;min-height:28px!important;max-height:28px!important;padding:0!important;margin:0!important;border-radius:9px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;font-size:18px!important;line-height:1!important;box-shadow:none!important}
.phq28ComingEmpty{border-radius:16px!important;padding:13px!important;font-size:10.5px!important}
#phqTomorrowReminderAction[hidden]{display:none!important}#phqTomorrowReminderAction{margin:8px 0 10px!important}
@media(max-width:430px){.phq28HeroCopy{padding:13px 14px 11px!important}.phq28HeroCopy h2{font-size:21px!important}.phq28HeroCopy p{font-size:12.5px!important;letter-spacing:-.035em!important}.phq28HeroArt{height:174px!important}}

/* FIX29 Tomorrow header and row alignment — match task/event card control flow. */
#tomorrowBriefing .phq29TomorrowHead{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:10px!important}
#tomorrowBriefing .phq29TomorrowLead{display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:8px!important;min-width:0!important}
#tomorrowBriefing .phq29TomorrowLead>b{order:1!important;margin:0!important;font-family:'Sora','Inter',sans-serif!important;color:#1F315B!important;font-size:20px!important;line-height:1.15!important}
#tomorrowBriefing .phq29TomorrowLead>.pill{order:2!important;margin:0!important;white-space:nowrap!important}
#tomorrowBriefing .phq29TomorrowRow{display:grid!important;gap:5px!important;padding:9px 0!important;margin:0!important;text-align:left!important}
#tomorrowBriefing .phq29TomorrowTitle{display:block!important;margin:0!important;font-size:15.5px!important;line-height:1.25!important;color:#1F315B!important;font-family:'Sora','Inter',sans-serif!important;letter-spacing:-.025em!important}
#tomorrowBriefing .phq29TomorrowBottom{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:8px!important;margin-top:2px!important}
#tomorrowBriefing .phq29TomorrowMeta{min-width:0!important;font-size:10px!important;line-height:1.4!important;color:#667085!important}
#tomorrowBriefing .phq29TomorrowControls{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:6px!important;flex-wrap:nowrap!important}
#tomorrowBriefing .phq29TomorrowControls .phqOwnerChip{appearance:none!important;width:auto!important;min-width:0!important;max-width:max-content!important;min-height:24px!important;height:24px!important;max-height:24px!important;padding:3px 8px!important;margin:0!important;border-radius:999px!important;font-size:11px!important;font-weight:700!important;line-height:1!important;white-space:nowrap!important;box-shadow:none!important}
#tomorrowBriefing .phq29TomorrowControls .phqEventMenuButton{width:28px!important;min-width:28px!important;max-width:28px!important;height:28px!important;min-height:28px!important;max-height:28px!important;padding:0!important;margin:0!important;border-radius:9px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;font-size:18px!important;line-height:1!important;box-shadow:none!important}
/* FIX30 — mandatory task date, stable Today placeholders, Tomorrow alignment, Coming-up types. */
.phq30Required{color:#B42318;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.03em}
.phq30DateTimeGrid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.72fr);gap:9px;align-items:end}
.phq30DateTimeGrid>div{min-width:0}.phq30DateTimeGrid input{width:100%!important}
.phq30TaskForm>#saveTask{width:100%!important;margin-top:12px!important}
.phq30TaskEditSheet{display:grid;gap:8px}.phq30TaskEditSheet .btn.primary{width:100%!important;margin-top:7px!important}

.phq30TodayPlaceholder{display:grid;gap:3px;padding:11px 13px;margin:0 0 8px;border:1px solid #E4E8EF;border-radius:18px;background:#fff;box-shadow:0 4px 14px rgba(31,43,87,.035)}
.phq30TodayPlaceholder b{font-family:'Sora','Inter',sans-serif;font-size:15.5px;line-height:1.25;color:#1F315B;letter-spacing:-.025em}
.phq30TodayPlaceholder span{font-size:10px;line-height:1.4;color:#667085}
.phq30TodayPlaceholderTask{border-left:4px solid #29A38F!important}
.phq30TodayPlaceholderEvent{border-left:4px solid #7A67D9!important}
.phq30TodayPlaceholder[hidden]{display:none!important}

#tomorrowBriefing .phq30TomorrowHead{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:10px!important}
#tomorrowBriefing .phq30TomorrowLead{display:flex!important;align-items:center!important;gap:8px!important;justify-content:flex-start!important;min-width:0!important}
#tomorrowBriefing .phq30TomorrowLead>b{font-family:'Sora','Inter',sans-serif!important;font-size:20px!important;line-height:1.15!important;color:#1F315B!important;margin:0!important}
#tomorrowBriefing .phq30TomorrowLead>.pill{margin:0!important;white-space:nowrap!important}
#tomorrowBriefing .phq30TomorrowRow{display:grid!important;gap:5px!important;padding:9px 0!important;margin:0!important;text-align:left!important}
#tomorrowBriefing .phq30TomorrowBottom{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:8px!important;margin-top:2px!important}
#tomorrowBriefing .phq30TomorrowControls{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:6px!important;flex-wrap:nowrap!important;white-space:nowrap!important}
#tomorrowBriefing .phq30TomorrowControls .phqOwnerChip{appearance:none!important;width:auto!important;min-width:0!important;max-width:max-content!important;height:24px!important;min-height:24px!important;max-height:24px!important;padding:3px 8px!important;margin:0!important;border-radius:999px!important;font-size:11px!important;font-weight:700!important;line-height:1!important;white-space:nowrap!important;box-shadow:none!important}
#tomorrowBriefing .phq30TomorrowControls .phqOwnerChip.amber{color:#9A5419!important;background:#FFF5E7!important;border:1px solid #F0D6B0!important}
#tomorrowBriefing .phq30TomorrowControls .phqOwnerChip.green{color:#087F70!important;background:#EAFBF7!important;border:1px solid #BDEADF!important}
#tomorrowBriefing .phq30TomorrowControls .phqEventMenuButton{width:28px!important;min-width:28px!important;max-width:28px!important;height:28px!important;min-height:28px!important;max-height:28px!important;padding:0!important;margin:0!important;border-radius:9px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;font-size:18px!important;line-height:1!important;box-shadow:none!important}

.phq30ComingCard{position:relative!important;padding-left:15px!important}
.phq30ComingTask{border-left:4px solid #29A38F!important;background:linear-gradient(90deg,#F7FFFC 0,#fff 30%)!important}
.phq30ComingEvent{border-left:4px solid #7A67D9!important;background:linear-gradient(90deg,#FAF8FF 0,#fff 30%)!important}
.phq30ComingTop{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px!important}
.phq30ComingTask .phq28ComingDay,.phq30ComingTask .phq30TypeTag{color:#087F70!important}
.phq30ComingEvent .phq28ComingDay,.phq30ComingEvent .phq30TypeTag{color:#6D5BD0!important}
.phq30TypeTag{font-size:8px!important;line-height:1!important;font-weight:850!important;text-transform:uppercase!important;letter-spacing:.05em!important;padding:4px 6px!important;border-radius:999px!important;background:rgba(109,91,208,.07)!important}
.phq30ComingTask .phq30TypeTag{background:rgba(8,127,112,.08)!important}

@media(max-width:430px){
  .phq30DateTimeGrid{grid-template-columns:1fr .78fr;gap:8px}
  #tomorrowBriefing .phq30TomorrowHead{grid-template-columns:1fr!important;gap:5px!important}
  #tomorrowBriefing .phq30TomorrowHead>.muted{justify-self:start!important;font-size:10px!important}
}

/* FIX30 standalone reminder / task-action styling. */
#phqTomorrowReminderAction{margin:8px 0 10px!important}#phqTomorrowReminderAction[hidden]{display:none!important}
.phqTomorrowReminderBar{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;border:1px solid #DDE8E5;border-radius:14px;background:#F8FCFB}
.phqTomorrowReminderCopy{min-width:0;display:grid;gap:2px}.phqTomorrowReminderCopy b{font-family:'Sora','Inter',sans-serif;font-size:12px;line-height:1.3;color:#1F315B}.phqTomorrowReminderCopy span{font-size:10.5px;line-height:1.4;color:#667085}
.phqTomorrowReminderButton{flex:0 0 auto;min-height:34px!important;height:34px!important;padding:7px 10px!important;border-radius:11px!important;font-size:10.5px!important;white-space:nowrap!important;background:#EAFBF7!important;border-color:#C7EBE3!important;color:#087A69!important;box-shadow:none!important}.phqTomorrowReminderButton.isOn{background:#F2F8F7!important;color:#52656A!important;border-color:#DDE8E5!important}
.phqTaskDeleteConfirm,.phqTaskEditSheet{display:grid;gap:9px}.phqTaskDeleteConfirm .dangerBtn,.phqTaskEditSheet .primary{width:100%!important}
@media(max-width:430px){.phqTomorrowReminderBar{align-items:flex-start;flex-direction:column}.phqTomorrowReminderButton{width:100%!important}}

/* FIX31 — Tomorrow rows stay compact, aligned and type-coded on mobile. */
#tomorrowBriefing .phq31TomorrowRow{display:grid!important;gap:6px!important;padding:11px 10px!important;margin:0!important;border-top:1px solid #E8ECF2!important;border-radius:0!important;text-align:left!important}
#tomorrowBriefing .phq31TomorrowRow.phq31TomorrowTask{border-left:4px solid #29A38F!important;background:linear-gradient(90deg,#F7FFFC 0,#fff 34%)!important}
#tomorrowBriefing .phq31TomorrowRow.phq31TomorrowEvent{border-left:4px solid #7A67D9!important;background:linear-gradient(90deg,#FAF8FF 0,#fff 34%)!important}
#tomorrowBriefing .phq31TomorrowTitleLine{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px!important;min-width:0!important}
#tomorrowBriefing .phq31TomorrowTitleLine .phq29TomorrowTitle{min-width:0!important;overflow-wrap:anywhere!important}
#tomorrowBriefing .phq31TomorrowType{flex:0 0 auto!important;padding:4px 7px!important;border-radius:999px!important;font-size:8px!important;line-height:1!important;font-weight:850!important;text-transform:uppercase!important;letter-spacing:.05em!important}
#tomorrowBriefing .phq31TomorrowTask .phq31TomorrowType{color:#087F70!important;background:rgba(8,127,112,.08)!important}
#tomorrowBriefing .phq31TomorrowEvent .phq31TomorrowType{color:#6D5BD0!important;background:rgba(109,91,208,.08)!important}
#tomorrowBriefing .phq31TomorrowBottom{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px!important;flex-wrap:nowrap!important;min-width:0!important}
#tomorrowBriefing .phq31TomorrowBottom .phq29TomorrowMeta{flex:1 1 auto!important;min-width:0!important;margin:0!important;line-height:1.35!important;overflow-wrap:anywhere!important}
#tomorrowBriefing .phq31TomorrowControls{display:grid!important;grid-template-columns:max-content 28px!important;align-items:center!important;justify-content:end!important;column-gap:6px!important;flex:0 0 auto!important;width:max-content!important;min-width:max-content!important;white-space:nowrap!important}
#tomorrowBriefing .phq31TomorrowControls .phqOwnerChip{appearance:none!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;width:auto!important;min-width:0!important;max-width:132px!important;height:28px!important;min-height:28px!important;max-height:28px!important;padding:3px 9px!important;margin:0!important;border-radius:999px!important;font-size:11px!important;font-weight:750!important;line-height:1!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;box-shadow:none!important}
#tomorrowBriefing .phq31TomorrowControls .phqOwnerChip.amber{color:#9A5419!important;background:#FFF5E7!important;border:1px solid #F0D6B0!important}
#tomorrowBriefing .phq31TomorrowControls .phqOwnerChip.green{color:#087F70!important;background:#EAFBF7!important;border:1px solid #BDEADF!important}
#tomorrowBriefing .phq31TomorrowControls .phqEventMenuButton{appearance:none!important;display:inline-grid!important;place-items:center!important;width:28px!important;min-width:28px!important;max-width:28px!important;height:28px!important;min-height:28px!important;max-height:28px!important;padding:0!important;margin:0!important;border-radius:9px!important;font-size:18px!important;line-height:1!important;box-shadow:none!important}
#tomorrowBriefing .phq31TomorrowTask .phqEventMenuButton{color:#087F70!important;border-color:#CBEDE6!important;background:#F7FFFC!important}
#tomorrowBriefing .phq31TomorrowEvent .phqEventMenuButton{color:#6D5BD0!important;border-color:#DDD7F8!important;background:#FAF8FF!important}
@media(max-width:390px){
  #tomorrowBriefing .phq31TomorrowRow{padding:10px 8px!important}
  #tomorrowBriefing .phq31TomorrowControls{column-gap:5px!important}
  #tomorrowBriefing .phq31TomorrowControls .phqOwnerChip{max-width:108px!important;padding-left:8px!important;padding-right:8px!important;font-size:10.5px!important}
  #tomorrowBriefing .phq31TomorrowBottom{gap:6px!important}
}
