/* ================================================== */
/* DIALOGS / MODALES                                  */
/* ================================================== */

dialog {
    width: min(980px, calc(100vw - 42px));
    max-height: 88vh;
    padding: 0;
    color: var(--text);
    border-radius: 26px;
    background:
        linear-gradient(180deg, rgba(12, 30, 58, 0.98), rgba(5, 15, 32, 0.98));
}

dialog::backdrop {
    background: rgba(0, 4, 12, 0.82);
    backdrop-filter: blur(8px);
}

.dialog-form {
    max-height: 88vh;
    padding: 28px;
    overflow: auto;
}

.dialog-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 16px;
    margin-bottom: 18px;
    border-bottom: 1px solid rgba(100,165,255,.22);
}

.dialog-head h3 {
    margin: 0 0 4px;
    color: var(--text);
}

.grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.checks {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin: 8px 0 14px;
}

.checks label {
    margin: 0;
    font-weight: 600;
}

.checks input {
    width: auto;
}

.actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 18px;
}
