.date-control {
    display: flex;
    align-items: center;
    border: 1px solid var(--line, #dbe3ef);
    border-radius: 7px;
    background: white;
    min-width: 0;
}
.date-control:focus-within {
    outline: 2px solid var(--primary, #0757ff);
    outline-offset: 2px;
}
.date-control .month-trigger {
    flex: 1;
    width: auto;
    font-size: 13px;
    white-space: nowrap;
}
.date-control .date-input {
    border: 0;
    background: transparent;
    min-width: 0;
    width: 100%;
    flex: 1;
    box-shadow: none;
    outline: 0;
}
.date-control .icon-btn {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border: 0;
    background: transparent;
    border-radius: 7px;
    color: var(--ink, #10245a);
    font-size: 18px;
    cursor: pointer;
}
.date-control .icon-btn.month-trigger {
    flex: 1;
    width: auto;
    font-size: 13px;
    white-space: nowrap;
}
.date-range {
    flex-basis: 290px;
    max-width: 360px;
}
.range-fallback {
    display: flex;
    gap: 11px;
}
.range-fallback label {
    min-width: 0;
}
.date-error {
    color: #b42318;
    display: block;
    font-size: 13px;
    margin-top: 7px;
}
.date-error:empty {
    display: none;
}
.dp-backdrop {
    position: fixed;
    inset: 0;
    z-index: 299;
    background: transparent;
}
.dp-dialog {
    --primary: #0757ff;
    --primary-soft: #edf3ff;
    --ink: #10245a;
    position: fixed;
    z-index: 300;
    max-width: calc(100vw - 14px);
    max-height: calc(100dvh - 14px);
    overflow: auto;
    background: white;
    color: var(--ink);
    padding: 14px;
    border: 1px solid var(--line, #dbe3ef);
    border-radius: 13px;
    box-shadow: 0 12px 40px #10245a20;
    font-family: "Pretendard Variable", sans-serif;
    font-size: 13px;
    box-sizing: border-box;
}
body.profile-warm .dp-dialog {
    --primary: #356347;
    --primary-soft: #e8eedf;
}
body.profile-modern .dp-dialog {
    --primary: #e84e0b;
    --primary-soft: #fff1e8;
}
.dp-body,
.dp-calendars {
    display: flex;
    gap: 14px;
}
.dp-calendar {
    width: 252px;
}
.dp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 11px;
}
.dp-dialog .dp-header > button:nth-child(2) {
    flex: 1;
    width: auto;
    white-space: nowrap;
}
.dp-dialog .dp-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 8px;
    min-width: 36px;
    min-height: 36px;
    padding: 4px 7px;
    cursor: pointer;
    font: inherit;
    color: var(--ink);
    background: transparent;
}
.dp-button:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: -2px;
}
.dp-button:disabled {
    opacity: 0.3;
    cursor: default;
}
.dp-dialog .dp-button:hover:not(:disabled),
.dp-dialog .dp-in-range {
    background: var(--primary-soft);
}
.dp-weekdays,
.dp-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}
.dp-weekdays span {
    text-align: center;
    padding-block: 7px;
}
.dp-weekdays span:first-child {
    color: #bf374c;
}
.dp-weekdays span:last-child {
    color: #235ad2;
}
.dp-day {
    font-variant-numeric: tabular-nums;
}
.dp-outside {
    opacity: 0.5;
}
.dp-dialog .dp-button[aria-current="date"] {
    box-shadow: inset 0 0 0 1.5px var(--primary);
}
.dp-dialog .dp-button[aria-selected="true"] {
    background: var(--primary);
    color: white;
    opacity: 1;
}
.dp-presets {
    display: flex;
    flex-direction: column;
    border-right: 1px solid #dbe3ef;
    padding-right: 14px;
    min-width: 90px;
}
.dp-presets .dp-button {
    min-height: 34px;
    width: auto;
    white-space: nowrap;
    justify-content: flex-start;
}
.dp-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
}
.dp-footer {
    display: flex;
    align-items: center;
    gap: 7px;
    border-top: 1px solid #dbe3ef;
    padding-top: 11px;
    margin-top: 11px;
}
.dp-summary {
    margin-right: auto;
}
.dp-dialog .dp-close {
    display: flex;
    margin-left: auto;
    margin-bottom: 7px;
}
@media (max-width: 767px) {
    body.date-sheet-open {
        overflow: hidden;
    }
    .dp-backdrop {
        background: #0c204880;
    }
    .dp-dialog {
        inset: auto 0 0 !important;
        border-radius: 13px 13px 0 0;
        max-width: 100%;
        max-height: 94dvh;
        padding: 14px 18px;
        padding-bottom: max(18px, env(safe-area-inset-bottom));
    }
    .dp-dialog .dp-button,
    .date-control .icon-btn {
        min-height: 44px;
        min-width: 44px;
    }
    .date-control .date-input {
        font-size: 16px;
        min-height: 44px;
    }
    .date-control .month-trigger {
        font-size: 16px;
    }
    .dp-body,
    .dp-calendars {
        flex-direction: column;
    }
    .dp-calendar {
        width: 100%;
    }
    .dp-presets {
        flex-direction: row;
        flex-wrap: wrap;
        border: 0;
        border-bottom: 1px solid #dbe3ef;
        padding: 0 0 11px;
        gap: 7px;
    }
    .dp-footer {
        flex-wrap: wrap;
    }
    .dp-summary {
        width: 100%;
    }
}
