#time-dialog{width:360px;padding:20px;max-height:min(600px,calc(100dvh - 24px));overflow-y:auto;overscroll-behavior:contain}
#time-dialog #time-form{height:100%;min-height:0;display:flex;flex-direction:column}
#time-dialog .edit-heading{flex:none;margin-bottom:12px}
#time-dialog .edit-fields{flex:1 1 240px;min-height:48px;max-height:240px;align-items:stretch;gap:12px}
#time-dialog .time-value-input{display:none!important}
.time-wheels{--time-wheel-row:48px;--time-wheel-padding:96px;--time-wheel-guide-inset:3px;position:relative;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));flex:1;min-width:0;min-height:48px;height:100%;max-height:240px;isolation:isolate}
.time-wheels.is-24h{grid-template-columns:repeat(2,minmax(0,1fr))}
.time-wheels::before{content:'';position:absolute;left:var(--time-wheel-guide-inset);right:var(--time-wheel-guide-inset);top:calc(50% - var(--time-wheel-row)/2);height:var(--time-wheel-row);border-top:1px solid #ffffff19;border-bottom:1px solid #ffffff19;pointer-events:none;z-index:-1}
.time-wheel{height:100%;min-height:0;min-width:0;overflow-x:hidden;overflow-y:auto;overflow-anchor:none;scrollbar-width:none;overscroll-behavior:contain;touch-action:pan-y;scroll-behavior:auto;padding-block:var(--time-wheel-padding);mask-image:linear-gradient(transparent,#0005 12%,#000 34%,#000 66%,#0005 88%,transparent);-webkit-mask-image:linear-gradient(transparent,#0005 12%,#000 34%,#000 66%,#0005 88%,transparent);cursor:ns-resize;outline-offset:-3px}
.time-wheel::-webkit-scrollbar{display:none}
.time-wheel-item{height:var(--time-wheel-row);display:flex;align-items:center;justify-content:center;color:#737373;font-size:29px;font-weight:400;line-height:1;letter-spacing:-1px;font-variant-numeric:tabular-nums;user-select:none;transition:color .22s ease;cursor:pointer}
.time-wheel-item.is-selected{color:#ededed}
#time-dialog .confirm-time{flex:none;display:flex;align-items:center;justify-content:center;width:100%;min-height:44px;height:auto;padding:11px 16px;margin-top:16px;border:1px solid #464646;border-radius:9px;background:#282828;color:#dedede;font-size:14px;line-height:1.35;transition:background .3s ease,border-color .3s ease,transform .3s cubic-bezier(.22,1,.36,1)}
#time-dialog .confirm-time:hover{background:#333;border-color:#666;color:#fff}
#time-dialog #time-error{flex:none;padding-top:4px}
@media(max-width:360px){#time-dialog{padding:16px}#time-dialog .edit-fields{gap:8px}.time-wheel-item{font-size:27px}}
@media(prefers-reduced-motion:reduce){.time-wheel-item{transition:none}}
.time-wheel:focus{outline:none}
.time-wheel:focus-visible{outline:1px solid #ffffff24;outline-offset:calc(-1 * var(--time-wheel-guide-inset))}

#time-dialog .confirm-time:active{transform:scale(.985)}
