.date-picker {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 42px;
    padding: 4px 8px;
    border: 1px solid #dce1e8;
    border-radius: 8px;
    background: #fff;
    color: #3a4454;
    font-size: 14px;
}

.date-picker:focus-within { border-color: #165dff; box-shadow: 0 0 0 2px rgb(22 93 255 / 12%); }
.date-search-button,
.news-date-search > button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 92px;
    height: 42px;
    padding: 0 12px;
    border: 1px solid #e1e5eb;
    border-radius: 9px;
    background: linear-gradient(180deg, #fff 0%, #f8f9fb 100%);
    box-shadow: 0 3px 0 #d9dde4, 0 5px 12px rgb(31 39 51 / 10%);
    color: #3a4454;
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
}

.news-date-search > button:hover { border-color: #b9c9ee; color: #165dff; }
.date-picker .date-picker-year,
.date-picker .date-picker-month,
.date-picker .date-picker-day {
    width: 38px;
    min-width: 0;
    padding: 6px 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: center;
}

.date-picker .date-picker-year { width: 52px; }
.date-picker input::placeholder { color: #929baa; opacity: 1; }
.date-picker-toggle,
.date-picker-calendar-header button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #596579;
    cursor: pointer;
}

.date-picker-toggle { width: 30px; height: 30px; margin-left: 2px; font-size: 18px; }
.date-picker-toggle:hover,
.date-picker-calendar-header button:hover { background: #e8f3ff; color: #165dff; }
.date-picker-calendar {
    position: absolute;
    z-index: 20;
    top: calc(100% + 6px);
    left: 0;
    width: 272px;
    padding: 12px;
    border: 1px solid #e4e0eb;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 12px 32px rgb(31 39 51 / 16%);
}

.date-picker-calendar[hidden] { display: none; }
.date-picker-calendar-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.date-picker-calendar-header strong { color: #1f2733; font-size: 14px; }
.date-picker-calendar-header button { width: 30px; height: 30px; font-size: 22px; }
.date-picker-weekdays,
.date-picker-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.date-picker-weekdays { margin-bottom: 4px; color: #929baa; font-size: 12px; }
.date-picker-days button,
.date-picker-days span { width: 32px; height: 32px; }
.date-picker-days button { border: 0; border-radius: 50%; background: transparent; color: #3a4454; cursor: pointer; font: inherit; }
.date-picker-days button:hover { background: #e8f3ff; color: #165dff; }
.date-picker-days button.is-today { outline: 1px solid #8ab8ff; }
.date-picker-days button.is-selected { background: #165dff; color: #fff; }
@media (max-width: 480px) { .date-picker-calendar { width: 260px; } }
