html,
body
{
    min-height:100%;
}

body
{
    margin:0;
    color:#17243a;
    background:
        linear-gradient(135deg, rgba(237,245,249,.97), rgba(238,248,243,.96)),
        repeating-linear-gradient(45deg, transparent 0 18px, rgba(23,79,124,.035) 18px 19px);
    font-family:"Segoe UI", Arial, sans-serif;
}

.error-shell
{
    min-height:100vh;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:24px;
    box-sizing:border-box;
}

.error-panel
{
    width:100%;
    max-width:620px;
    box-sizing:border-box;
    padding:30px 34px;
    border:1px solid #cfdae3;
    border-top:4px solid #176f58;
    border-radius:8px;
    background:#ffffff;
    box-shadow:0 18px 42px rgba(21,59,97,.13);
    text-align:center;
}

.error-brand
{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    margin-bottom:24px;
}

.error-brand img
{
    width:52px;
    height:52px;
    object-fit:contain;
}

.error-brand span
{
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    line-height:1.2;
}

.error-brand strong
{
    color:#174f7c;
    font-size:20px;
}

.error-brand small
{
    margin-top:3px;
    color:#617488;
    font-size:11px;
}

.error-code
{
    width:56px;
    height:56px;
    display:flex;
    align-items:center;
    justify-content:center;
    margin:0 auto 14px;
    border-radius:50%;
    color:#9b2c2c;
    background:#fff1f1;
    border:1px solid #f5bcbc;
    font-size:30px;
    font-weight:700;
}

.error-kicker
{
    margin:0 0 7px;
    color:#176f58;
    font-size:12px;
    font-weight:700;
    text-transform:uppercase;
}

.error-panel h1
{
    margin:0;
    color:#17243a;
    font-size:30px;
    line-height:1.2;
}

.error-message
{
    max-width:490px;
    margin:14px auto 0;
    color:#607287;
    font-size:15px;
    line-height:1.6;
}

.error-trace
{
    display:grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:8px;
    margin:20px 0 0;
    text-align:left;
}

.error-trace > div
{
    min-width:0;
    padding:10px 12px;
    border:1px solid #d8e3ea;
    border-radius:6px;
    background:#f7fafb;
}

.error-trace .error-trace-cause
{
    grid-column:1 / -1;
    border-color:#efc3c3;
    background:#fff7f7;
}

.error-trace dt
{
    margin:0 0 4px;
    color:#617488;
    font-size:10px;
    font-weight:700;
    text-transform:uppercase;
}

.error-trace dd
{
    overflow-wrap:anywhere;
    margin:0;
    color:#263b50;
    font-family:Consolas, "Courier New", monospace;
    font-size:12px;
    line-height:1.45;
}

.error-trace-cause dd
{
    color:#8c2424;
}

.error-actions
{
    display:flex;
    justify-content:center;
    gap:10px;
    margin-top:24px;
}

.error-actions a,
.error-actions button
{
    min-height:42px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    box-sizing:border-box;
    border-radius:6px;
    padding:9px 17px;
    font:700 13px "Segoe UI", Arial, sans-serif;
    cursor:pointer;
    text-decoration:none;
}

.error-primary
{
    border:1px solid #176f58;
    color:#ffffff;
    background:#176f58;
}

.error-secondary
{
    border:1px solid #b9c9d5;
    color:#294963;
    background:#ffffff;
}

.error-primary:hover,
.error-primary:focus
{
    color:#ffffff;
    background:#105b48;
}

.error-secondary:hover,
.error-secondary:focus
{
    border-color:#2678b8;
    color:#174f7c;
    background:#f2f7fa;
}

.error-reference
{
    margin:24px 0 0;
    padding-top:16px;
    border-top:1px solid #e1e8ed;
    color:#748496;
    font-size:11px;
    line-height:1.5;
}

@media (max-width: 520px)
{
    .error-shell
    {
        align-items:flex-start;
        padding:12px;
    }

    .error-panel
    {
        padding:24px 18px;
    }

    .error-brand small
    {
        max-width:210px;
    }

    .error-panel h1
    {
        font-size:24px;
    }

    .error-actions
    {
        flex-direction:column;
    }

    .error-trace
    {
        grid-template-columns:1fr;
    }

    .error-trace .error-trace-cause
    {
        grid-column:auto;
    }
}
