.ace-ts-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    z-index: 2147483647;
    align-items: center;
    justify-content: center;
}
.ace-ts-modal.open {
    display: flex !important;
}
.ace-ts-panel {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    width: 480px;
    max-width: 94vw;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.ace-ts-panel h3 {
    margin: 0 0 20px;
    color: #c40000;
    font-size: 22px;
}
.ace-ts-close {
    position: absolute;
    top: 12px; right: 16px;
    background: none; border: none;
    font-size: 28px; color: #999;
    cursor: pointer; line-height: 1;
}
#ace-ts-form input {
    display: block;
    width: 100%;
    padding: 10px 14px;
    margin-bottom: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 15px;
    box-sizing: border-box;
}
#ace-ts-form button[type=submit] {
    background: #c40000;
    color: #fff;
    border: none;
    padding: 12px 28px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
}
#ace-ts-form button[type=submit]:disabled {
    opacity: 0.6;
}
.ace-ts-msg { margin-top: 12px; font-weight: 600; }
.ace-ts-msg.ok  { color: #2a7a2a; }
.ace-ts-msg.err { color: #c40000; }
