.student-photo-backdrop {
    position: fixed;
    z-index: 1000000;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, .72);
    font-family: Arial, sans-serif;
}
.student-photo-dialog {
    box-sizing: border-box;
    width: 92vw;
    max-width: 520px;
    max-height: 94vh;
    overflow: auto;
    padding: 20px;
    border-radius: 8px;
    background: white;
    color: #17212e;
    box-shadow: 0 12px 36px rgba(0, 0, 0, .3);
}
.student-photo-dialog h2 { margin: 0 0 8px; font-size: 21px; }
.student-photo-dialog p { line-height: 1.4; }
.student-photo-preview {
    position: relative;
    width: 100%;
    max-width: 300px;
    margin: 12px auto;
    background: #eef1f5;
}
.student-photo-preview canvas {
    display: block;
    width: 100%;
    height: auto;
    cursor: move;
}
.student-photo-preview video {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.student-photo-zoom {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 8px 0 14px;
}
.student-photo-zoom input { flex: 1; }
.student-photo-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.student-photo-actions button,
.student-photo-button {
    box-sizing: border-box;
    padding: 9px 12px;
    border: 1px solid #96a3b3;
    border-radius: 5px;
    background: #f7f9fc;
    color: #17212e;
    font: inherit;
    cursor: pointer;
}
.student-photo-button input { display: none; }
.student-photo-actions button:disabled { cursor: not-allowed; opacity: .55; }
.student-photo-status { min-height: 22px; color: #874400; }
.student-photo-footer { justify-content: flex-end; }
.student-photo-footer .student-photo-save { background: #126142; color: white; }
