.calendar {
    flex: 0 1 17rem;
    width: 100%;
    min-width: 0;
    max-width: 17rem;
    margin-left: auto;
    background-color: rgb(242, 241, 239);
    padding: 0.5rem 0.625rem;
    border: 1px solid #6A117C;
    border-radius: 8px;
}

.main-box {
    background-color: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
}

.buttons {
    background-color: var(--accent);
    color: #ffffff;
}

.calendar .calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.625rem;
    width: 100%;
    min-height: 0;
    margin: 0 0 0.5rem;
    padding: 0;
}

.calendar h2 {
    color: black;
    font-family: "Jaro", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-size: 1.25rem;
    line-height: 1.2;
    margin: 0;
}

.calendar button {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 2.5rem;
    min-height: 1.5rem;
    padding: 0.125rem 0.25rem;
    background-color: whitesmoke;
    color: black;
    border: 1px solid #6A117C;
    border-radius: 8px;
    font-family: "Jaro", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-size: 1.125rem;
    line-height: 1;
    cursor: pointer;
}

.calendar .weekdays,
.calendar .days {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.1875rem;
}

.calendar .weekdays {
    margin-bottom: 0.25rem;
}

.calendar .weekdays span,
.calendar .days li {
    display: grid;
    place-items: center;
    min-width: 0;
    aspect-ratio: 1;
    color: black;
    font-family: "Jaro", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-size: 1.25rem;
    line-height: 1;
    margin: 0;
}

.days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-template-rows: repeat(6, 2rem);
    gap: 0.25rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.calendar .days li {
    border-radius: 50%;
}

.days li.today {
    background-color: #f9a8d4;
    border-radius: 50%;
}