.page-heading-title{display:flex;align-items:center;gap:10px;min-width:0}
.date-view-tools{display:flex;align-items:center;gap:3px;flex-shrink:0}
.date-view-tools button{width:34px;min-height:36px;padding:8px;background:transparent}
.date-view-tools .ui-icon{width:18px;height:18px}
.date-view-tools .has-date-filter{background:#eae0f8}
.date-view-tools button:disabled{opacity:.3;cursor:default}
#datesCalendarDialog{width:min(92vw,350px);padding:16px;border-radius:24px;max-height:90dvh}
.dates-calendar-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}
.dates-calendar-title h2{font-size:17px;margin:0}
.dates-calendar-title button{width:36px;min-height:36px;padding:9px}
.dates-calendar-title .ui-icon{width:18px;height:18px}
:is(#datesCalendarDays,.month-slide-copy) button{position:relative;min-height:36px;font-size:13px}
:is(#datesCalendarDays,.month-slide-copy) .has-tasks{background:#eee5fa;color:#67458d;font-weight:700}
:is(#datesCalendarDays,.month-slide-copy) .has-tasks::after{content:'';position:absolute;width:4px;height:4px;border-radius:50%;background:#8257ad;bottom:4px;left:calc(50% - 2px)}
:is(#datesCalendarDays,.month-slide-copy) .selected-day{background:#fbd8ce;color:#713d30;border-color:#edaa98}
.dates-calendar-legend{display:flex;align-items:center;justify-content:center;gap:6px;font-size:11px;color:#81718b;margin:13px 0 0}
.dates-calendar-legend span{width:6px;height:6px;border-radius:50%;background:#8257ad}
@media(max-width:380px){.page-heading-title{gap:5px}.date-view-tools button{width:30px;min-height:36px;padding:6px}}

#datesMonthViewport{position:relative;overflow:hidden;min-width:0}#datesMonthViewport>.month-slide-copy{position:absolute;inset:0;width:100%;pointer-events:none}
/* Lunar markers are chili red; public holidays retain their gold dots. */
:is(#datesCalendarDays,.month-slide-copy) button:has(.calendar-lunar-label){padding-top:3px;padding-bottom:11px;min-height:44px}
.calendar-lunar-label{display:block;color:#c7352a;font-size:9px;font-weight:600;line-height:12px;pointer-events:none}
:is(#datesWeekStrip,.week-slide-copy) button{position:relative}
.week-lunar-label{color:#c7352a;font-size:9px;font-weight:600;line-height:12px;grid-row:3;pointer-events:none}
:is(#datesWeekStrip,.week-slide-copy):has(.week-lunar-label) button{height:79px;min-height:79px;grid-template-rows:15px 32px 12px 7px}
:is(#datesWeekStrip,.week-slide-copy):has(.week-lunar-label) .week-task-dot{grid-row:4}
@media(max-width:1199px),(hover:none),(pointer:coarse){
 .dates-list-first :is(#datesWeekStrip,.week-slide-copy):has(.week-lunar-label) button{height:62px;min-height:62px;grid-template-rows:12px 25px 12px 5px;gap:1px}
}
#openAllHolidays{display:flex;align-items:center;justify-content:space-between;width:100%;padding:0;border:0;background:transparent;color:inherit;font:inherit;text-align:left;cursor:pointer}
#openAllHolidays:focus-visible{outline:2px solid #7958ed;outline-offset:4px}
#allHolidaysDialog{width:min(92vw,480px);max-height:85dvh;padding:0;border:1px solid #eee6da;border-radius:24px;overflow:hidden;background:#fffcf6}
#allHolidaysDialog[open]{display:flex;flex-direction:column}
#allHolidaysDialog header{display:flex;align-items:center;justify-content:space-between;padding:17px 20px;border-bottom:1px solid #eee6da;flex-shrink:0}
#allHolidaysDialog h2{font-size:18px;margin:0}#allHolidaysDialog header button{width:34px;min-height:34px;padding:0;border:0;border-radius:50%;background:#f2ecdf}
.all-holidays-content{padding:0 20px 18px;overflow-y:auto;min-height:0;scrollbar-width:none}.all-holidays-content::-webkit-scrollbar{display:none}
.all-holidays-content h3{font-size:12px;color:#977221;margin:18px 0 8px}
.all-holidays-content article{display:grid;grid-template-columns:100px minmax(0,1fr);gap:12px;padding:12px 0;border-bottom:1px solid #eee6da;align-items:baseline}
.all-holidays-content time{font-size:11px;color:#91794a}.all-holidays-content strong{font-size:13px;font-weight:500;overflow-wrap:anywhere}
/* Compact lunar indicator shares the event-dot baseline. */
:is(#datesCalendarDays,.month-slide-copy) button:has(.calendar-lunar-label){padding:0;min-height:36px}
.calendar-lunar-label,.week-lunar-label{position:absolute;display:block;width:4px;height:4px;min-width:0;overflow:hidden;font-size:0;line-height:0;border-radius:50%;background:#c7352a;bottom:4px;left:calc(50% - 2px);pointer-events:none}
:is(#datesCalendarDays,.month-slide-copy) .has-tasks .calendar-lunar-label,:is(#datesCalendarDays,.month-slide-copy) .has-holiday .calendar-lunar-label{left:calc(50% + 6px)}
:is(#datesCalendarDays,.month-slide-copy) .has-tasks.has-holiday .calendar-lunar-label{left:calc(50% + 10px)}
:is(#datesWeekStrip,.week-slide-copy):has(.week-lunar-label) button{height:66px;min-height:66px;grid-template-rows:15px 32px 7px}
:is(#datesWeekStrip,.week-slide-copy):has(.week-lunar-label) .week-task-dot{grid-row:3}
.week-lunar-label{bottom:3px}
:is(#datesWeekStrip,.week-slide-copy) button:has(.week-task-dot:not(.no-events)) .week-lunar-label,:is(#datesWeekStrip,.week-slide-copy) button:has(.week-holiday-dot) .week-lunar-label{left:calc(50% + 10px)}
:is(#datesWeekStrip,.week-slide-copy) button:has(.week-task-dot:not(.no-events)):has(.week-holiday-dot) .week-lunar-label{left:calc(50% + 12px)}
@media(max-width:1199px),(hover:none),(pointer:coarse){
 .dates-list-first :is(#datesWeekStrip,.week-slide-copy):has(.week-lunar-label) button{height:49px;min-height:49px;grid-template-rows:12px 25px 5px;gap:1px}
}
.calendar-lunar-label.lunar-first,.week-lunar-label.lunar-first,.lunar-key.lunar-first{background:transparent;border:1px solid #c7352a;border-radius:50%;width:5px;height:5px;box-sizing:border-box}
.calendar-lunar-label.lunar-fifteenth,.week-lunar-label.lunar-fifteenth,.lunar-key.lunar-fifteenth{background:#c7352a;border:0;border-radius:0;transform:rotate(45deg);width:4px;height:4px}
.lunar-calendar-legend{display:flex;justify-content:flex-end;align-items:center;gap:13px;color:#8a777a;font-size:9px;line-height:14px;margin:2px 4px 7px;flex-shrink:0}
.lunar-calendar-legend[hidden]{display:none}.lunar-calendar-legend>span{display:inline-flex;align-items:center;gap:5px}.lunar-key{display:inline-block;flex-shrink:0}
#monthLunarLegend{justify-content:center;margin-top:9px}
