.cal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}
.cal-title h2 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}
.cal-title p {
    font-size: 13px;
    color: var(--text-tertiary);
    margin: 4px 0 0;
}
.cal-nav {
    display: flex;
    gap: 8px;
}
.cal-nav-btn {
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg);
    cursor: pointer;
    font-size: 13px;
    color: var(--text-secondary);
    transition: all .15s;
    font-family: inherit;
}
.cal-nav-btn:hover {
    background: var(--bg-hover);
    border-color: var(--border-hover);
}
.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
}
.cal-weekday {
    background: var(--bg-elevated);
    padding: 10px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-tertiary);
}
.cal-day {
    background: var(--bg);
    min-height: 80px;
    padding: 6px;
    cursor: pointer;
    transition: background .15s;
    position: relative;
}
.cal-day:hover {
    background: var(--bg-hover);
}
.cal-day.other-month {
    background: var(--bg-elevated);
    opacity: 0.5;
}
.cal-day.today {
    background: rgba(94, 92, 230, 0.05);
}
.cal-day.today .cal-day-num {
    background: var(--accent);
    color: #fff;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cal-day-num {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 4px;
}
.cal-dots {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
}
.cal-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}
.cal-dot.birthday { background: #ec4899; }
.cal-dot.anniversary { background: #f59e0b; }
.cal-dot.other { background: #6b7280; }
.cal-event-chip {
    font-size: 9px;
    padding: 2px 4px;
    border-radius: 3px;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cal-event-chip.birthday { background: rgba(236, 72, 153, 0.15); color: #ec4899; }
.cal-event-chip.anniversary { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.cal-event-chip.other { background: rgba(107, 114, 128, 0.15); color: #6b7280; }

.cal-sidebar {
    width: 280px;
    flex-shrink: 0;
}
.cal-upcoming {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px;
}
.cal-upcoming-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: .3px;
}
.cal-upcoming-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: background .15s;
    margin-bottom: 4px;
}
.cal-upcoming-item:hover {
    background: var(--bg-hover);
}
.cal-upcoming-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.cal-upcoming-dot.birthday { background: #ec4899; }
.cal-upcoming-dot.anniversary { background: #f59e0b; }
.cal-upcoming-dot.other { background: #6b7280; }
.cal-upcoming-info {
    flex: 1;
    min-width: 0;
}
.cal-upcoming-name {
    font-size: 13px;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cal-upcoming-date {
    font-size: 11px;
    color: var(--text-tertiary);
}
.cal-layout {
    display: flex;
    gap: 24px;
}
.cal-main {
    flex: 1;
    min-width: 0;
}

@media (max-width: 1024px) {
    .cal-layout {
        flex-direction: column;
    }
    .cal-sidebar {
        width: 100%;
    }
}
@media (max-width: 768px) {
    .cal-header {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    .cal-nav {
        justify-content: center;
    }
    .cal-main {
        overflow-x: auto;
    }
    .cal-grid {
        grid-template-columns: repeat(7, minmax(42px, 1fr));
        min-width: 320px;
    }
    .cal-day {
        min-height: 50px;
        padding: 4px;
    }
    .cal-day-num {
        font-size: 11px;
    }
    .cal-event-chip {
        display: none;
    }
    .cal-dots {
        display: flex;
    }
}

@media (max-width: 480px) {
    .cal-header {
        margin-bottom: 14px;
        gap: 8px;
    }
    .cal-title h2 {
        font-size: 16px;
    }
    .cal-title p {
        font-size: 12px;
    }
    .cal-nav {
        width: 100%;
    }
    .cal-nav-btn {
        flex: 1;
        padding: 8px 10px;
        font-size: 12px;
    }
    .cal-day {
        min-height: 44px;
    }
    .cal-day-num {
        font-size: 10px;
    }
    .cal-upcoming {
        padding: 12px;
    }
}
