.wr-sun-calendar,
.wr-sun-overview,
.wr-sun-today {
    width: 100%;
    box-sizing: border-box;
}

.wr-sun-yearnav {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 14px;
    margin: 0 0 24px;
    padding: 14px 16px;
    border: 1px solid #e4e8ee;
    border-radius: 12px;
    background: #fff;
}

.wr-sun-yearnav a {
    text-decoration: none;
    font-weight: 700;
}

.wr-sun-yearnav__next { text-align: right; }
.wr-sun-yearnav__current { font-size: 1.15rem; }

.wr-sun-table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.wr-sun-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.wr-sun-table caption {
    text-align: left;
    font-weight: 800;
    font-size: 1.15rem;
    padding: 0 0 14px;
}

.wr-sun-table th,
.wr-sun-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #e8ecf1;
    text-align: left;
    white-space: nowrap;
}

.wr-sun-table thead th {
    background: #f5f7fa;
    font-weight: 800;
}

.wr-sun-table tbody tr:hover {
    background: #fafbfc;
}

.wr-sun-note {
    margin: 14px 0 0;
    font-size: .92rem;
    color: #5c6673;
}

.wr-sun-month-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.wr-sun-month-card {
    display: flex;
    flex-direction: column;
    min-height: 180px;
    padding: 20px;
    border: 1px solid #e2e7ed;
    border-radius: 14px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(20, 35, 50, .05);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.wr-sun-month-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(20, 35, 50, .09);
}

.wr-sun-month-card__name {
    font-size: 1.2rem;
    font-weight: 800;
}

.wr-sun-month-card__year {
    margin-top: 2px;
    color: #687382;
    font-size: .92rem;
}

.wr-sun-month-card__meta {
    margin-top: 12px;
    font-size: .92rem;
    line-height: 1.45;
}

.wr-sun-month-card__cta {
    margin-top: auto;
    padding-top: 18px;
    font-weight: 800;
}

.wr-sun-today {
    padding: 20px;
    border: 1px solid #e2e7ed;
    border-radius: 14px;
    background: #fff;
}

.wr-sun-today__date {
    margin-bottom: 14px;
    font-weight: 800;
}

.wr-sun-today__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.wr-sun-stat {
    padding: 16px;
    border-radius: 10px;
    background: #f6f8fa;
}

.wr-sun-stat__label {
    display: block;
    margin-bottom: 6px;
    font-size: .88rem;
    color: #66707c;
}

.wr-sun-stat strong {
    font-size: 1.08rem;
}

.wr-sun-error {
    padding: 12px 14px;
    border: 1px solid #e4b7b7;
    background: #fff7f7;
    border-radius: 8px;
}

@media (max-width: 900px) {
    .wr-sun-month-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .wr-sun-yearnav {
        grid-template-columns: 1fr auto 1fr;
        gap: 8px;
        padding: 12px;
    }

    .wr-sun-yearnav a,
    .wr-sun-yearnav__current {
        font-size: .95rem;
    }

    .wr-sun-month-grid,
    .wr-sun-today__grid {
        grid-template-columns: 1fr;
    }

    .wr-sun-month-card {
        min-height: 0;
    }

    .wr-sun-table th,
    .wr-sun-table td {
        padding: 10px 12px;
        font-size: .92rem;
    }
}
