/* Calendario compacto + modal de eventos (20261018e) */
.cal-grid .cal-day { min-height: 0; height: 72px; padding: 0; overflow: hidden; display: flex; box-sizing: border-box; }
.cal-grid .cal-day > .cal-day__num { padding: 6px 8px; font-weight: 700; color: #999; }
.cal-day--empty { height: 72px; }
.cal-day__btn { all: unset; box-sizing: border-box; cursor: pointer; width: 100%; height: 100%; padding: 6px 8px; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; }
.cal-day__btn:hover, .cal-day__btn:focus-visible { background: #fff2f4; }
.cal-day__btn:focus-visible { outline: 2px solid var(--red, #c41e3a); outline-offset: -2px; }
.cal-day__num { display: block; font-weight: 700; font-size: 15px; margin: 0; }
.cal-day__badge { display: inline-block; background: var(--red, #c41e3a); color: #fff; font-size: 11px; font-weight: 700; line-height: 1; padding: 4px 6px; border-radius: 10px; white-space: nowrap; }
.cal-day a { display: none; }
.cal-modal[hidden] { display: none; }
.cal-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.cal-modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.55); }
.cal-modal__card { position: relative; background: #fff; color: var(--ink, #111); width: min(560px, 100%); max-height: min(80vh, 720px); display: flex; flex-direction: column; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.35); outline: none; }
.cal-modal__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line, #e5e5e5); }
.cal-modal__title { margin: 0; font-size: 20px; }
.cal-modal__x { border: 0; background: #f1f1f1; border-radius: 50%; width: 44px; height: 44px; font-size: 26px; line-height: 1; cursor: pointer; flex: none; }
.cal-modal__x:hover, .cal-modal__x:focus-visible { background: var(--red, #c41e3a); color: #fff; }
.cal-modal__list { list-style: none; margin: 0; padding: 8px; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.cal-modal__list li + li { border-top: 1px solid var(--line, #e5e5e5); }
.cal-ev { display: flex; gap: 12px; align-items: center; min-height: 56px; padding: 10px 8px; color: inherit; text-decoration: none; border-radius: 6px; }
.cal-ev:hover, .cal-ev:focus-visible { background: #fff2f4; }
.cal-ev:active { background: #ffe0e6; }
.cal-ev:focus-visible { outline: 2px solid var(--red, #c41e3a); }
.cal-ev__img { width: 56px; height: 56px; object-fit: cover; border-radius: 4px; flex: none; background: #eee; }
.cal-ev__txt { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cal-ev__title { font-weight: 700; color: var(--red, #c41e3a); line-height: 1.3; }
.cal-ev__meta { font-size: 13px; color: var(--muted, #666); }
.cal-ev__time { font-weight: 700; color: var(--ink, #111); }
body.cal-modal-open { overflow: hidden; }
@media (max-width: 640px) {
  .cal-grid .cal-day, .cal-day--empty { height: 56px; }
  .cal-day__btn { padding: 4px; }
  .cal-day__num { font-size: 13px; }
  .cal-day__badge { font-size: 9px; padding: 3px 3px; letter-spacing: -.02em; max-width: 100%; overflow: hidden; text-overflow: clip; }
  .cal-modal { align-items: flex-end; padding: 0; }
  .cal-modal__card { width: 100%; max-height: 85vh; border-radius: 14px 14px 0 0; }
  .cal-ev { min-height: 64px; }
}
