.lms-dialog-host[hidden] {
    display: none !important;
}

.lms-dialog-host {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: grid;
    place-items: center;
    padding: 1rem;
}

.lms-dialog-host__backdrop {
    position: absolute;
    inset: 0;
    background: rgb(15 23 42 / 0.58);
    backdrop-filter: blur(2px);
}

.lms-dialog-host__panel {
    position: relative;
    z-index: 1;
    width: min(420px, 100%);
    padding: 1.15rem 1.2rem 1.05rem;
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 24px 60px rgb(0 0 0 / 0.28);
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.lms-dialog-host__kicker {
    margin: 0;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--brand-primary, #7c3aed);
}

.lms-dialog-host__title {
    margin: 0;
    font-size: 1.12rem;
    font-weight: 800;
    color: #111827;
    line-height: 1.25;
}

.lms-dialog-host__message {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.45;
    color: #4b5563;
}

.lms-dialog-host__field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-top: 0.15rem;
}

.lms-dialog-host__field-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #374151;
}

.lms-dialog-host__input {
    width: 100%;
    padding: 0.55rem 0.65rem;
    border: 1px solid #d1d5db;
    border-radius: 0.55rem;
    font: inherit;
    color: #111827;
}

.lms-dialog-host__input:focus {
    outline: 2px solid color-mix(in srgb, var(--brand-primary, #7c3aed) 35%, transparent);
    border-color: var(--brand-primary, #7c3aed);
}

.lms-dialog-host__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 0.35rem;
}

.lms-dialog-host__btn {
    border: 0;
    border-radius: 999px;
    padding: 0.45rem 1rem;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
}

.lms-dialog-host__btn--ghost {
    background: #f3f4f6;
    color: #374151;
}

.lms-dialog-host__btn--ghost:hover {
    background: #e5e7eb;
}

.lms-dialog-host__btn--primary {
    background: var(--brand-primary, #7c3aed);
    color: var(--brand-button-text, #fff);
}

.lms-dialog-host__btn--primary:hover {
    filter: brightness(1.05);
}

.lms-dialog-host__btn--danger {
    background: #dc2626;
    color: #fff;
}

.lms-dialog-host__btn--danger:hover {
    background: #b91c1c;
}
