.ql-modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    padding: 2rem;
    background: rgba(10, 18, 28, 0.58);
    backdrop-filter: blur(10px);
    display: flex; align-items: center; justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.25s ease;
}
.ql-modal-overlay.is-active { opacity: 1; }

.ql-modal-container {
    background: color-mix(in srgb, var(--bs-body-bg, #fff) 92%, #f3f7ff 8%);
    border: 1px solid color-mix(in srgb, var(--bs-border-color, #dee2e6) 85%, #0d6efd 15%);
    border-radius: 1.2rem;
    width: min(1040px, 100%);
    max-width: calc(100vw - 2rem);
    max-height: calc(100vh - 2rem);
    overflow: auto;
    box-shadow: 0 28px 80px rgba(8, 15, 30, 0.28);
    color: var(--bs-body-color, #212529);
}

.ql-modal-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid color-mix(in srgb, var(--bs-border-color, #dee2e6) 82%, transparent);
    display: flex; justify-content: space-between; align-items: center;
}
.ql-modal-title { font-weight: 700; color: #0b57c0; font-size: 0.95rem; letter-spacing: 0.02em; }
.ql-modal-close {
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    background: transparent;
    border: 0;
    color: color-mix(in srgb, var(--bs-body-color, #212529) 55%, transparent);
    font-size: 1.25rem;
    cursor: pointer;
}
.ql-modal-close:hover,
.ql-modal-close:focus {
    background: rgba(13, 110, 253, 0.08);
    color: #0b57c0;
}

.ql-modal-body { padding: 16px; }

.ql-modal-overlay--fullscreen {
    padding: 0.75rem;
}

.ql-modal-container--fullscreen {
    width: calc(100vw - 1.5rem);
    max-width: calc(100vw - 1.5rem);
    max-height: calc(100vh - 1.5rem);
    height: calc(100vh - 1.5rem);
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.ql-modal-body--fullscreen {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    padding: 0;
}

.ql-modal-input {
    background: var(--bs-body-bg, #fff) !important;
    border-color: color-mix(in srgb, var(--bs-border-color, #dee2e6) 88%, #0d6efd 12%) !important;
    color: var(--bs-body-color, #212529) !important;
}
