#archiveMonthView,#archiveFullMonthView{display:block}#archiveMonthView>.calendar,#archiveFullMonthView>.calendar{overflow-x:auto}#archiveMonthView .calendar-grid,#archiveFullMonthView .calendar-grid{min-width:1000px;gap:0;border:1px solid var(--border);border-radius:14px;overflow:hidden}#archiveMonthView .calendar-cell,#archiveFullMonthView .calendar-cell{min-height:210px;display:block;padding:12px;min-width:0;border:0;border-right:1px solid var(--line);border-bottom:1px solid var(--line);border-radius:0;background:var(--bar);color:var(--ink)}#archiveMonthView .calendar-cell:nth-child(7n),#archiveFullMonthView .calendar-cell:nth-child(7n){border-right:0}#archiveMonthView .calendar-cell.week,#archiveFullMonthView .calendar-cell.week{min-height:40px;padding:11px;text-align:center;background:var(--tint);font-size:12px;color:var(--muted)}#archiveMonthView .calendar-cell.outside,#archiveFullMonthView .calendar-cell.outside{opacity:.48}#archiveMonthView .calendar-cell.selected,#archiveFullMonthView .calendar-cell.selected{background:color-mix(in srgb,var(--tint) 40%,var(--bar));box-shadow:inset 0 0 0 2px var(--accent)}#archiveMonthView .day-number,#archiveFullMonthView .day-number{display:block;font-size:17px;margin-bottom:12px}#archiveMonthView .calendar-events,#archiveFullMonthView .calendar-events{display:grid;gap:6px}#archiveMonthView .calendar-event-chip,#archiveFullMonthView .calendar-event-chip{display:block;min-width:0;width:100%;max-width:100%;padding:7px 8px;border-radius:7px;line-height:1.6;overflow:hidden}#archiveMonthView .event-project-label,#archiveFullMonthView .event-project-label{display:block;max-width:100%;font-size:10px;margin-bottom:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#archiveMonthView .event-project-divider,#archiveFullMonthView .event-project-divider{display:none}#archiveMonthView .event-title,#archiveFullMonthView .event-title{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;max-width:none;font-size:13px;line-height:1.65;white-space:normal;overflow-wrap:anywhere;overflow:hidden;text-overflow:clip}#archiveMonthView .calendar-events>small,#archiveFullMonthView .calendar-events>small{font-size:12px;color:var(--muted);padding:2px 0}
.archive-day-drawer{position:fixed;z-index:61;right:0;top:0;bottom:0;width:min(490px,100vw);max-height:100vh;overflow-y:auto;margin:0;padding:28px 24px;border-radius:18px 0 0 18px;box-shadow:-15px 0 50px #20151b22}.archive-day-drawer h2{padding-right:42px;line-height:1.7}.archive-day-drawer .day-panel-close{position:absolute;right:18px;top:22px;border:1px solid var(--border);background:var(--bar);color:var(--ink);width:34px;height:34px;border-radius:50%;font-size:20px;cursor:pointer}.day-panel-backdrop{position:fixed;inset:0;z-index:60;background:#30202c24}.day-panel-backdrop[hidden]{display:none}.day-panel .archive-row{display:flex;align-items:flex-start;gap:8px;flex-wrap:wrap}.archive-day-drawer .archive-row .event-title{display:block;-webkit-line-clamp:unset;white-space:pre-wrap;overflow:visible;font-size:14px;flex:1 1 100%}.archive-day-drawer .archive-row .event-project-label{max-width:100%;white-space:normal;font-size:12px}
.hidden-notes-menu-entry{border-top:1px solid var(--border);border-radius:0;margin-top:6px;padding-top:12px;font-size:12px;color:var(--muted)}.hidden-notes-menu-entry:disabled{opacity:.4;cursor:default}.note-display-controls>#recoverNotes{display:none!important}
@media(max-width:700px){#archiveMonthView>.calendar,#archiveFullMonthView>.calendar{padding:10px}.archive-day-drawer{border-radius:0;padding:24px 18px}}

.planned-events-title{font-size:12px;color:var(--muted);margin:15px 0 0}

/* Fixed month-card geometry overrides legacy centered/content-sized layouts. */
#calendarGrid>.calendar-cell:not(.week),#fullMonthGrid>.calendar-cell:not(.week){display:flex;flex-direction:column;place-items:initial;align-items:stretch;justify-content:flex-start;gap:0}
#calendarGrid .day-number,#fullMonthGrid .day-number{flex:none;align-self:stretch;height:24px;line-height:24px;margin:0 0 10px;text-align:left}
#calendarGrid .calendar-events,#fullMonthGrid .calendar-cell .calendar-events{display:grid;grid-template-columns:minmax(0,1fr);justify-items:stretch;align-content:start;align-items:start;width:100%;min-width:0;gap:6px;flex:none;align-self:stretch;overflow:hidden}
#calendarGrid .calendar-event-chip,#fullMonthGrid .calendar-event-chip{box-sizing:border-box;display:block;justify-self:stretch;align-self:start;width:100%;min-width:0;max-width:100%;height:auto;min-height:0;max-height:none;margin:0;padding:6px 8px;text-align:left;white-space:normal}
#calendarGrid .calendar-event-chip .event-project-label,#fullMonthGrid .calendar-event-chip .event-project-label{display:block;box-sizing:border-box;width:100%;max-width:100%;height:14px;line-height:14px;margin:0 0 2px;padding:0 3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#calendarGrid .calendar-event-chip .event-title,#fullMonthGrid .calendar-event-chip .event-title{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;box-sizing:border-box;width:100%;height:auto;min-height:0;max-height:38px;line-height:19px;margin:0;white-space:normal;overflow-wrap:anywhere;overflow:hidden}
/* Same project tint across summaries and full records, independent of theme accent. */
.calendar-event-chip,.archive-row{background:color-mix(in srgb,var(--event-color,#bb5f7c) 18%,var(--bar))}
.timeline-record-card{background:color-mix(in srgb,var(--record-color,#bb5f7c) 18%,var(--bar))}
