.date-control{display:block;position:relative;width:100%;margin-top:6px}
.date-source{position:absolute!important;width:1px!important;height:1px!important;opacity:0;pointer-events:none;padding:0!important;border:0!important}
.date-trigger{display:flex;align-items:center;justify-content:space-between;gap:14px;width:100%;min-height:46px;padding:12px 15px;border:1px solid #d5e1f4;border-radius:12px;background:#f8faff;color:#263e63;font:inherit;font-size:13px;text-align:left;transition:border-color .18s,box-shadow .18s,background .18s}
.date-trigger::after{content:'';width:17px;height:17px;flex-shrink:0;background:currentColor;mask:url("/icons/calendar.svg") center/contain no-repeat;opacity:.65}
.date-trigger:hover,.date-trigger[aria-expanded=true]{background:#fff;border-color:#7ba5f1;box-shadow:0 0 0 3px #2563eb0c}
.date-trigger:focus-visible,.date-popup button:focus-visible{outline:2px solid #2563eb;outline-offset:2px}
.date-popup{position:fixed;z-index:10000;width:min(310px,calc(100vw - 16px));box-sizing:border-box;padding:16px;background:linear-gradient(155deg,#fff,#f7faff);border:1px solid #e0e8f5;border-radius:20px;box-shadow:0 18px 55px #213e6a26,0 3px 10px #213e6a0b;color:#263e63;animation:date-open .2s ease-out}
.date-header{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:14px}
.date-header strong{font-size:14px;font-weight:650;text-transform:capitalize}
.date-popup button{font:inherit;cursor:pointer;border:0;box-shadow:none;min-height:36px;border-radius:10px;background:transparent;color:inherit;transition:background .15s,transform .15s;color:#334d70;padding:6px}
.date-popup button:hover{background:#e8f0ff;color:#1d54c4}
.date-popup button:active{transform:scale(.93)}
.date-header button{width:34px;font-size:24px;line-height:1}
.date-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px}
.date-weekday{text-align:center;font-size:11px;color:#8b9bb2;padding:4px 0 9px}
.date-days button{font-size:12px;aspect-ratio:1}
.date-popup .date-muted{color:#b1bdce}
.date-popup .date-today{box-shadow:inset 0 0 0 1px #9dbaf1;color:#1957c8;font-weight:700}
.date-popup button[aria-pressed=true]{background:#205bdb;color:#fff;box-shadow:0 4px 10px #205bdb30;font-weight:700}
.date-months{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.date-months button{min-height:46px;text-transform:capitalize;font-size:13px}
.date-footer{display:flex;justify-content:space-between;margin-top:12px;padding-top:10px;border-top:1px solid #e5ebf5}
.date-footer button{font-size:12px;color:#205bdb;padding:6px 12px}
.date-popup button:disabled,.date-trigger:disabled{opacity:.4;cursor:default}
@keyframes date-open{from{opacity:0;transform:translateY(-7px) scale(.97)}to{opacity:1;transform:translateY(0) scale(1)}}
@media(prefers-reduced-motion:reduce){.date-popup{animation:none}.date-popup button,.date-trigger{transition:none}}

.date-time-popup{width:min(340px,calc(100vw - 16px));max-height:calc(100dvh - 16px);overflow-y:auto;overscroll-behavior:contain}.date-time-controls{border-top:1px solid #e0e8f5;margin-top:12px;padding-top:12px}.date-time-controls>p{font-size:12px;line-height:1.5;margin:0 0 10px;color:#637b9a}.date-time-inputs{display:grid;grid-template-columns:1fr 1fr;gap:12px}.date-time-inputs label{display:grid;gap:6px;font-size:12px;font-weight:650;margin:0}.date-time-inputs select{width:100%;min-height:44px;padding:10px 12px;border:1px solid #cfddf2;border-radius:10px;background:#f4f8ff;color:#203e69;font:inherit;font-size:16px;box-sizing:border-box}.date-time-controls .date-time-selection{margin:12px 0;font-weight:600;color:#2056a9}.date-time-popup button.date-time-apply{width:100%;min-height:44px;background:#2467ec;color:white;font-weight:650;border-radius:11px}.date-time-popup button.date-time-apply:hover{background:#1856d0}.date-time-popup button.date-time-apply:disabled{background:#edf1f8;color:#8291a8;cursor:default}.date-time-popup select:focus-visible{outline:2px solid #2467ec;outline-offset:2px}
