.aca-calendar {
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    background: #ffffff;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    max-width: 100%;
}

.aca-title {
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 16px;
}

.aca-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.aca-month-label {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    text-align: center;
    flex: 1;
}

.aca-nav {
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #334155;
    border-radius: 14px;
    padding: 10px 14px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.aca-nav:hover {
    background: #f8fafc;
}

.aca-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 16px;
    font-size: 14px;
    color: #334155;
}

.aca-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.aca-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    display: inline-block;
}

.aca-dot-free {
    background: #10b981;
}

.aca-dot-reserved {
    background: #f43f5e;
}

.aca-message {
    margin-bottom: 16px;
    border-radius: 16px;
    padding: 12px 14px;
    font-size: 14px;
}

.aca-loading {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
}

.aca-error-message,
.aca-error {
    background: #fff1f2;
    border: 1px solid #fecdd3;
    color: #be123c;
    border-radius: 16px;
    padding: 12px 14px;
}

.aca-grid-wrapper {
    margin-top: 8px;
}

.aca-weekdays,
.aca-days {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
}

.aca-weekdays {
    margin-bottom: 8px;
}

.aca-weekday {
    background: #f1f5f9;
    border-radius: 14px;
    text-align: center;
    padding: 10px 6px;
    font-size: 12px;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
}

.aca-day {
    min-height: 96px;
    border-radius: 18px;
    border: 1px solid #e2e8f0;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.aca-day-free {
    background: #ecfdf5;
    border-color: #a7f3d0;
}

.aca-day-reserved {
    background: #fff1f2;
    border-color: #fecdd3;
}

.aca-blank {
    border: 1px solid transparent;
    background: transparent;
    min-height: 96px;
}

.aca-day-weekday {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #64748b;
}

.aca-day-number {
    margin-top: 8px;
    font-size: 24px;
    line-height: 1;
    font-weight: 700;
    color: #0f172a;
}

.aca-day-status {
    margin-top: auto;
    font-size: 13px;
    font-weight: 700;
    color: #334155;
}

.aca-day-free .aca-day-status {
    color: #047857;
}

.aca-day-reserved .aca-day-status {
    color: #be123c;
}

.aca-ranges {
    margin-top: 20px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    border-radius: 20px;
    padding: 16px;
}

.aca-ranges-title {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 12px;
}

.aca-ranges-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.aca-range-item,
.aca-range-empty {
    border: 1px solid #e2e8f0;
    background: #ffffff;
    border-radius: 16px;
    padding: 12px 14px;
    font-size: 14px;
    color: #334155;
}

@media (max-width: 640px) {
    .aca-calendar {
        padding: 14px;
    }

    .aca-day {
        min-height: 78px;
        padding: 8px;
    }

    .aca-day-number {
        font-size: 20px;
    }

    .aca-day-status {
        font-size: 11px;
    }

    .aca-toolbar {
        gap: 8px;
    }

    .aca-month-label {
        font-size: 16px;
    }

    .aca-nav {
        padding: 8px 12px;
    }
}