.profile-calendar-card {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border, #dbe2ea);
}

.profile-calendar-card__header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text, #1f2937);
}

.profile-calendar-card__header p {
    margin: 4px 0 0;
    font-size: 0.84rem;
    color: var(--color-text-soft, #64748b);
    line-height: 1.45;
}

.profile-calendar-nav {
    margin-top: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.profile-calendar-nav__btn {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid var(--color-border, #dbe2ea);
    background: #fff;
    color: var(--color-text, #1f2937);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    transition: 0.2s ease;
}

.profile-calendar-nav__btn:hover {
    background: #f8fafc;
}

.profile-calendar-nav__btn.is-disabled {
    opacity: 0.45;
    pointer-events: none;
}

.profile-calendar-nav__label {
    flex: 1;
    text-align: center;
    font-weight: 700;
    color: var(--color-text, #1f2937);
    font-size: 0.95rem;
    line-height: 1.4;
}

.profile-calendar-wrap {
    margin-top: 14px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.profile-calendar-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 4px;
    table-layout: fixed;
}

.profile-calendar-table th {
    font-size: 0.72rem;
    font-weight: 700;
    text-align: center;
    color: var(--color-text-soft, #64748b);
    padding-bottom: 4px;
}

.profile-calendar-day {
    height: 52px;
    vertical-align: top;
    border: 1px solid var(--color-border, #dbe2ea);
    border-radius: 12px;
    padding: 6px 5px;
    background: #fff;
}

.profile-calendar-day__top {
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-calendar-day__number {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1;
    color: #111827;
}

.profile-calendar-day__note {
    margin-top: 5px;
    font-size: 0.64rem;
    line-height: 1.15;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #64748b;
}

.profile-calendar-day.is-workday .profile-calendar-day__number {
    color: #111827;
}

.profile-calendar-day.is-holiday {
    border-color: rgba(220, 38, 38, 0.22);
    background: rgba(254, 242, 242, 0.72);
}

.profile-calendar-day.is-holiday .profile-calendar-day__number {
    color: #dc2626 !important;
    font-weight: 700;
}

.profile-calendar-day.is-holiday .profile-calendar-day__note {
    color: #dc2626 !important;
    font-weight: 600;
}

.profile-calendar-day.is-outside-period {
    opacity: 0.32;
}

.profile-calendar-day.is-holiday.is-outside-period {
    opacity: 0.38;
}

.profile-calendar-day.is-today .profile-calendar-day__number {
    background: #dbeafe;
    color: #1d4ed8 !important;
    border: 1px solid #93c5fd;
    box-shadow: 0 0 0 2px rgba(147, 197, 253, 0.18);
    font-weight: 700;
}

.profile-calendar-legend {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.76rem;
    color: var(--color-text-soft, #64748b);
}

.profile-calendar-legend__item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.profile-calendar-legend__dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    display: inline-block;
}

.profile-calendar-legend__dot.is-workday {
    background: #111827;
}

.profile-calendar-legend__dot.is-holiday {
    background: #dc2626;
}

.profile-calendar-legend__dot.is-today {
    background: #93c5fd;
    border: 1px solid #60a5fa;
}

@media (max-width: 1024px) {
    .profile-calendar-day {
        height: 48px;
        padding: 5px 4px;
    }

    .profile-calendar-day__number {
        width: 22px;
        height: 22px;
        font-size: 0.84rem;
    }

    .profile-calendar-day__note {
        font-size: 0.6rem;
    }
}