.home-screen{display:flex;flex-direction:column;overflow-y:auto;height:100%;gap:16px;padding-bottom:24px}
.home-greeting{display:flex;align-items:center;gap:12px}.home-greeting .avatar{width:48px;height:48px}.home-greeting h1{margin:2px 0;font-size:1.3rem}
.home-calendar,.home-departments{display:flex;flex-direction:column;gap:9px}.home-calendar .day{height:32px}.home-calendar .home-events{display:flex;flex-direction:column;gap:7px}.home-calendar .home-event-card{min-height:0;padding:10px 12px}.home-calendar .home-event-card strong,.home-calendar .home-event-card small{white-space:normal;display:block;overflow:visible}.home-calendar .selected-event{border-color:#c4a976}.home-departments .department-chips{max-height:none}.home-departments .music-home{margin-top:6px}.home-departments .music-home button{margin:4px 8px 0 0}
@media (min-width:700px){.home-screen{max-width:720px;margin:auto;width:100%}.home-calendar .day{height:36px}}

.home-screen .profile-screen{height:auto;display:flex;flex:none;padding:12px 0}.home-screen .profile-screen .profile-form{display:flex}

/* Keep agenda rows and departments in document flow on small screens. */
.home-calendar,.home-departments,.home-greeting,.home-invitations{flex:none}
.home-calendar .home-events{flex:none;overflow:visible}
.home-calendar .home-event-card,.home-invitations .home-event-card{flex:none;overflow-wrap:anywhere}
.home-screen .calendar-grid .day{height:31px;min-height:31px}
.home-invitations{display:flex;flex-direction:column;gap:7px}
.home-invitations h2{font-size:1rem;margin:0}
.invitation-card{border-color:#b69965}
.invitation-card strong,.invitation-card small{display:block;white-space:normal;overflow:visible}
.activity-people{display:flex;flex-direction:column;gap:6px;margin-bottom:12px}
.invitation-from{color:#e4c58f}

.home-event-card small{font-size:.78rem;line-height:1.4}.home-event-card>span{font-size:.7rem}.home-event-card strong{font-size:1rem;line-height:1.3}

/* La agenda del día puede mostrar varios eventos sin cortar la lista. */
.calendar-screen .day-agenda{justify-content:flex-start;gap:7px;overflow-y:auto;min-height:0}
.calendar-screen .day-agenda h2{font-size:.95rem;margin:4px 0}
.calendar-screen .event-preview{flex:none}
