.hpes-page {
    background: #f6f7f4;
    min-height: 58vh;
    padding: 64px 20px;
}

.hpes-wrap {
    margin: 0 auto;
    max-width: 880px;
}

.hpes-card {
    background: #ffffff;
    border: 1px solid #e1e4de;
    border-radius: 6px;
    box-shadow: 0 12px 32px rgba(16, 24, 40, 0.08);
    padding: clamp(28px, 5vw, 56px);
}

.hpes-eyebrow {
    color: #566052;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0;
    margin: 0 0 10px;
    text-transform: uppercase;
}

.hpes-card h1 {
    color: #1d2a22;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.12;
    margin: 0 0 28px;
}

.hpes-status-row {
    align-items: center;
    border-top: 1px solid #e6e8e3;
    border-bottom: 1px solid #e6e8e3;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin: 0 0 28px;
    padding: 18px 0;
}

.hpes-status-label {
    color: #4f5b50;
    font-weight: 700;
}

.hpes-status-pill {
    background: #eef2ea;
    border-radius: 999px;
    color: #263324;
    display: inline-flex;
    font-weight: 700;
    min-height: 38px;
    padding: 7px 16px;
}

.hpes-status-completed_sent .hpes-status-pill {
    background: #e4f6e8;
    color: #166534;
}

.hpes-status-pending .hpes-status-pill {
    background: #fff3cd;
    color: #7a4d00;
}

.hpes-status-on_hold .hpes-status-pill {
    background: #eef2ff;
    color: #3730a3;
}

.hpes-status-copy {
    color: #263324;
    font-size: 1.12rem;
    margin: 0 0 24px;
}

.hpes-message {
    background: #f8faf7;
    border-left: 4px solid #74866d;
    color: #263324;
    margin: 24px 0;
    padding: 18px 20px;
}

.hpes-message p:last-child,
.hpes-footer p:last-child {
    margin-bottom: 0;
}

.hpes-footer {
    color: #566052;
    font-size: 0.98rem;
    margin-top: 28px;
}

@media (max-width: 640px) {
    .hpes-page {
        padding: 36px 16px;
    }

    .hpes-status-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }
}
