/* Keep the site's existing .whatsapp-wall positions and card styling. */
#student-results .student-proof-profile {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    margin: 0 0 11px;
    text-align: left;
}

#student-results .student-proof-avatar {
    display: block;
    width: clamp(28px, 6vw, 40px);
    height: auto;
    aspect-ratio: 1;
    border-radius: 50%;
    object-fit: cover;
}

#student-results .student-proof-identity {
    min-width: 0;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

#student-results .student-proof-identity strong {
    display: block;
    color: #171922;
    font-size: clamp(11px, 2.6vw, 14px);
    font-weight: 700;
}

#student-results .student-proof-identity > span {
    display: block;
    margin-top: 3px;
    color: #596276;
    font-size: clamp(9px, 2.3vw, 11px);
    font-weight: 500;
}

#student-results .student-proof-link {
    display: block;
    margin-inline: auto;
    text-align: center;
}

#student-results .student-proof-screenshot {
    display: block;
    width: auto;
    max-width: min(100%, 259px);
    height: auto;
    max-height: 405px;
    margin-inline: auto;
    border-radius: 5px;
    object-fit: contain;
}

#student-results .student-proof-open {
    display: block;
    margin-top: 8px;
    color: #222f7a;
    font-size: clamp(9px, 2.2vw, 11px);
    font-weight: 650;
    line-height: 1.45;
}

#student-results .student-proof-link:hover .student-proof-open {
    text-decoration: underline;
}

#student-results .whatsapp-proof:focus-within {
    z-index: 5;
}

#student-results :is(a, button, summary):focus-visible {
    outline: 2px solid #222f7a;
    outline-offset: 3px;
}

#student-results .student-proof-dialog {
    position: fixed;
    inset: 0;
    width: min(540px, calc(100vw - 22px));
    max-height: 90vh;
    max-height: 90dvh;
    margin: auto;
    padding: 0;
    overflow: auto;
    overscroll-behavior: contain;
    border: 1px solid #e1e6ef;
    border-radius: 12px;
    background: #fff;
    color: #171922;
    text-align: left;
}

#student-results .student-proof-dialog:not([open]) {
    display: none;
}

#student-results .student-proof-dialog::backdrop {
    background: #11172bc7;
}

#student-results .student-proof-dialog-head {
    position: sticky;
    z-index: 1;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-bottom: 1px solid #e1e6ef;
    background: #fff;
}

#student-results .student-proof-dialog-head h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    text-transform: none;
}

#student-results .student-proof-dialog-head form {
    margin: 0;
}

#student-results .student-proof-dialog-head button {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 10px;
    border: 0;
    border-radius: 8px;
    background: #edf0fa;
    color: #222f7a;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

#student-results .student-proof-dialog-body {
    display: grid;
    justify-items: center;
    gap: 12px;
    padding: 12px;
    background: #f6f6f8;
}

#student-results .student-proof-dialog-body img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

#student-results .student-proof-original {
    color: #222f7a;
    font-size: 12px;
    font-weight: 650;
    text-decoration: underline;
}

#student-results .student-proof-details {
    width: 100%;
    max-width: 430px;
    padding: 12px;
    border: 1px solid #e1e6ef;
    border-radius: 8px;
    background: #fff;
    font-size: 13px;
    line-height: 1.6;
}

#student-results .student-proof-details summary {
    color: #222f7a;
    font-weight: 700;
    cursor: pointer;
}

#student-results .student-proof-text p {
    margin: 8px 0 0;
    white-space: pre-line;
}
