.time-modal[hidden] { display: none !important; }
.time-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
}
.time-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 30, 50, 0.58);
    backdrop-filter: blur(4px);
}
.time-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(520px, 100%);
    padding: 38px 40px 40px;
    background: #fff;
    border-radius: 28px;
    box-shadow: 0 24px 70px rgba(15, 40, 65, 0.25);
    box-sizing: border-box;
}
.time-modal-close {
    position: absolute;
    top: 16px;
    right: 18px;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: #f1f4f7;
    font-size: 28px;
    line-height: 1;
    color: #16324f;
    cursor: pointer;
}
.time-modal-close:hover { background: #e6ebf0; }
.time-modal-dialog h2 {
    margin: 8px 0 12px;
    font-size: 38px;
    line-height: 1.05;
    color: #102b46;
}
.time-modal-text {
    margin: 0 0 28px;
    color: #526b84;
    font-size: 17px;
    line-height: 1.5;
}
.time-input-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: #16324f;
}
.time-input {
    width: 100%;
    box-sizing: border-box;
    padding: 15px 18px;
    border: 2px solid #dce5ed;
    border-radius: 14px;
    background: #fff;
    color: #102b46;
    font-size: 28px;
    font-weight: 700;
    outline: none;
}
.time-input:focus {
    border-color: #1478bd;
    box-shadow: 0 0 0 4px rgba(20, 120, 189, 0.12);
}
.time-hint {
    margin: 8px 0 0;
    font-size: 13px;
    line-height: 1.45;
    color: #6b7280;
}

.time-preview {
    min-height: 24px;
    margin: 10px 0 0;
    color: #1478bd;
    font-weight: 700;
    opacity: 0;
}
.time-preview.visible { opacity: 1; }
.time-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 28px;
}
.time-modal-actions .action-button { min-width: 120px; }
body.modal-open { overflow: hidden; }
@media (max-width: 600px) {
    .time-modal { padding: 16px; }
    .time-modal-dialog { padding: 32px 24px 26px; border-radius: 22px; }
    .time-modal-dialog h2 { font-size: 30px; }
    .time-modal-text { font-size: 16px; }
    .time-input { font-size: 25px; }
    .time-modal-actions { flex-direction: column-reverse; }
    .time-modal-actions .action-button { width: 100%; }
}
