.jag-dialog {
    width: 740px;
    max-width: 90vw;
    /* Centering: the UA stylesheet centers top-layer dialogs via `margin: auto`,
       but base.css' `* { margin: 0 }` reset overrides it — re-assert it here
       (inset 0 + margin auto centers on both axes). */
    top: 0;
    bottom: 0;
    margin: auto;
    border: none;
    border-radius: 6px;
    box-shadow: 0 4px 24px rgba(0,0,0,.3);
    padding: 0;
}
.jag-dialog::backdrop {
    background: rgba(0,0,0,.5);
}
.jag-dialog__title {
    margin: 0;
    padding: 16px 20px;
    font-size: 1.1em;
    border-bottom: 1px solid #e0e0e0;
}
.jag-dialog__footer {
    padding: 12px 20px;
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    border-top: 1px solid #e0e0e0;
}
.jag-dialog__footer button {
    padding: 6px 16px;
    cursor: pointer;
    border: 1px solid #ccc;
    border-radius: 3px;
    background: #f5f5f5;
}
.jag-dialog__footer button:hover {
    background: #e8e8e8;
}
.jag-dialog__footer .jag-dialog__confirm {
    background: #4a90d9;
    color: #fff;
    border-color: #4a90d9;
}
.jag-dialog__footer .jag-dialog__confirm:hover {
    background: #357abd;
}
.jag-dialog select,
.jag-dialog input[type="text"] {
    padding: 4px 8px;
    border: 1px solid #ccc;
    border-radius: 3px;
}
