.curae-error-page {
    box-sizing: border-box;
    min-height: 100vh;
    margin: 0;
    padding: 32px 20px;
    display: grid;
    place-items: center;
    background: #f3f7fa;
    color: #34445b;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 15px;
    line-height: 1.6;
}
.curae-error-fallback {
    box-sizing: border-box;
    width: min(100%, 580px);
    padding: 40px;
    border: 1px solid #dbe7ec;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 12px 50px rgb(6 39 82 / 7%);
}
.curae-error-fallback img { display: block; max-width: 100%; height: auto; margin-bottom: 28px; }
.curae-error-fallback h1 { margin: 8px 0 18px; color: #07346e; font-size: 28px; line-height: 1.3; }
.curae-error-fallback p { margin: 0 0 18px; }
.curae-error-fallback .curae-error-eyebrow { margin: 0; color: #007e79; font-size: 11px; font-weight: 700; letter-spacing: .09em; }
.curae-error-fallback a { color: #07346e; font-weight: 600; text-underline-offset: 3px; }
.curae-error-fallback .curae-error-home { display: inline-flex; min-height: 44px; align-items: center; margin-right: 16px; }
.curae-error-fallback a:focus-visible { outline: 3px solid #00a79f; outline-offset: 3px; }
#curae-error-dialog {
    box-sizing: border-box;
    width: min(480px, calc(100vw - 32px));
    max-width: 480px;
    max-height: calc(100dvh - 32px);
    margin: auto;
    padding: 0;
    overflow: auto;
    border: 1px solid #dbe7ec;
    border-radius: 20px;
    background: #fff;
    color: #34445b;
    box-shadow: 0 24px 90px rgb(6 39 82 / 24%);
    font-family: inherit;
    font-size: 15px;
    line-height: 1.6;
    text-align: left;
    z-index: 2147483646;
}
#curae-error-dialog::backdrop { background: rgb(6 26 48 / 54%); }
#curae-error-dialog .curae-error-content { padding: 28px; }
#curae-error-dialog .curae-error-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
#curae-error-dialog .curae-error-icon {
    display: grid;
    place-items: center;
    flex: 0 0 44px;
    height: 44px;
    border-radius: 14px;
    background: #e4f5f2;
    color: #007e79;
    font-size: 24px;
    font-weight: 700;
}
#curae-error-dialog .curae-error-brand { color: #007e79; font-size: 12px; font-weight: 700; letter-spacing: .08em; }
#curae-error-title { margin: 0; color: #07346e; font-size: 22px; line-height: 1.3; font-weight: 700; }
#curae-error-message { margin: 0 0 16px; overflow-wrap: anywhere; }
#curae-error-hint { margin: 0; padding: 12px 14px; border-radius: 10px; background: #f3f7fa; color: #4b5d70; font-size: 13px; }
#curae-error-dialog .curae-error-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; padding: 20px 28px; border-top: 1px solid #e3eaf0; }
#curae-error-dialog .curae-error-button {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 16px;
    border: 1px solid #c6d5e1;
    border-radius: 10px;
    background: #fff;
    color: #07346e;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}
#curae-error-dialog .curae-error-button:hover { background: #edf4f8; }
#curae-error-dialog .curae-error-button-primary { border-color: #07346e; background: #07346e; color: #fff; }
#curae-error-dialog .curae-error-button-primary:hover { background: #062752; }
#curae-error-dialog .curae-error-button:focus-visible { outline: 3px solid #00a79f; outline-offset: 3px; }
#curae-error-dialog [hidden] { display: none !important; }
body.curae-error-feedback-active [data-curae-error-fallback] { visibility: hidden; }
@media (max-width: 480px) {
    .curae-error-page { padding: 20px 16px; }
    .curae-error-fallback { padding: 28px 22px; }
    .curae-error-fallback h1 { font-size: 24px; }
    #curae-error-dialog .curae-error-content { padding: 24px 20px; }
    #curae-error-dialog .curae-error-actions { padding: 18px 20px; }
    #curae-error-dialog .curae-error-button { flex: 1 1 100%; }
    #curae-error-title { font-size: 20px; }
}
