.shared-error-dialog {
    box-sizing: border-box;
    width: min(440px, calc(100vw - 32px));
    max-height: calc(100dvh - 32px);
    margin: auto;
    padding: 28px;
    border: 1px solid #fecaca;
    border-radius: 18px;
    background: #ffffff;
    color: #1e293b;
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.22);
    font-family: inherit;
    overflow: auto;
}

.shared-error-dialog::backdrop {
    background: rgba(15, 23, 42, 0.48);
}

.shared-error-dialog__header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.shared-error-dialog__icon {
    display: flex;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #fee2e2;
    color: #b91c1c;
    font-size: 24px;
    font-weight: 700;
}

.shared-error-dialog__title {
    margin: 0;
    color: #b91c1c;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.5;
}

.shared-error-dialog__content {
    display: grid;
    gap: 20px;
}

.shared-error-dialog__section {
    display: grid;
    gap: 8px;
}

.shared-error-dialog__label {
    color: #334155;
    font-size: 13px;
    font-weight: 700;
}

.shared-error-dialog__text {
    margin: 0;
    color: #475569;
    font-size: 14px;
    line-height: 1.8;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.shared-error-dialog__footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 28px;
}

.shared-error-dialog__button {
    min-width: 120px;
    min-height: 44px;
    padding: 10px 24px;
    border: none;
    border-radius: 10px;
    background: #b91c1c;
    color: #ffffff;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.shared-error-dialog__button:hover {
    background: #991b1b;
}

.shared-error-dialog__button:focus-visible {
    outline: 3px solid #fca5a5;
    outline-offset: 3px;
}

@media (max-width: 480px) {
    .shared-error-dialog {
        padding: 22px 18px;
        border-radius: 14px;
    }

    .shared-error-dialog__title {
        font-size: 17px;
    }

    .shared-error-dialog__button {
        width: 100%;
    }
}