.cal-box { padding: .75rem; margin-bottom: 1rem; }
.cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .5rem; }
.cal-title { font-weight: 600; text-transform: capitalize; }
.cal-nav { padding: 0 .5rem; color: inherit; text-decoration: none; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal-dow {
    font-size: .7rem;
    text-align: center;
    color: #888;
    padding-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cal-empty { min-height: 38px; }
.cal-day {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    border: 1px solid #eee;
    border-radius: 4px;
    text-decoration: none;
    color: inherit;
}
.cal-day.has-events { background: #fff3e0; font-weight: 600; }
.cal-day.cal-sel { outline: 2px solid #ff9800; }
.cal-day.empty-day { color: #bbb; background: transparent; }
.cal-num { font-size: .85rem; }
.cal-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    font-size: .6rem;
    line-height: 1;
    background: #ff9800;
    color: #fff;
    border-radius: 8px;
    padding: 1px 4px;
}
.cal-clear { margin-top: .5rem; font-size: .8rem; }

/* Mobile: 7 columns stay readable on narrow screens with short day labels. */
@media (max-width: 480px) {
    .cal-grid { gap: 1px; }
    .cal-dow { font-size: .62rem; }
    .cal-empty,
    .cal-day { min-height: 34px; }
    .cal-num { font-size: .8rem; }
    .cal-badge { font-size: .55rem; top: 1px; right: 1px; padding: 1px 3px; }
}
