.web-dialog {
    width: min(420px, calc(100vw - 32px));
    padding: 0;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    color: #111827;
    box-shadow: 0 20px 50px rgba(17, 24, 39, .18);
}

.web-dialog::backdrop {
    background: rgba(17, 24, 39, .56);
}

.web-dialog-panel {
    padding: 16px;
}

.web-dialog-copy strong {
    display: block;
    font-size: 16px;
    font-weight: 700;
}

.web-dialog-copy p {
    margin: 10px 0 0;
    color: #667085;
    font-size: 14px;
    line-height: 1.6;
    white-space: pre-wrap;
}

.web-dialog-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 16px;
}

.web-dialog-choice-actions {
    display: flex;
    flex: 1 1 auto;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.web-dialog-choice-actions[hidden] {
    display: none;
}

.web-dialog-choice {
    border: 1px solid #cbd5e1;
    background: #e5e7eb;
    color: #111827;
}

.web-dialog-choice:first-child {
    border-color: #111827;
    background: #111827;
    color: #ffffff;
}

.web-dialog-choice.is-danger {
    border-color: #fecaca;
    background: #fef2f2;
    color: #b91c1c;
}

.web-dialog-button {
    min-width: 72px;
    height: 36px;
    padding: 0 16px;
    border-radius: 6px;
    font: inherit;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
}

.web-dialog-cancel {
    border: 1px solid #d0d5dd;
    background: #fff;
    color: #344054;
}

.web-dialog-confirm {
    border: 1px solid #111827;
    background: #111827;
    color: #fff;
}

.web-dialog-confirm.is-danger {
    border-color: #b42318;
    background: #b42318;
}

.web-dialog-button:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}
