.student-photo-box{margin:24px 0 0;padding:20px;border:1px dashed var(--border);border-radius:12px}.student-photo-box.dragover{outline:2px solid var(--accent,#7dda00);outline-offset:3px}.student-photo-box h3{margin:0 0 12px}.student-photo-layout{display:flex;align-items:flex-start;gap:24px;flex-wrap:wrap}.student-photo-preview{width:120px;height:150px;object-fit:contain;border:1px solid var(--border);border-radius:8px;background:#fff}.student-photo-placeholder{width:120px;min-height:150px;display:grid;place-items:center;border:1px solid var(--border);border-radius:8px}.student-photo-box [data-photo-controls]{flex:1;min-width:220px}.student-photo-box .expedient-actions{margin:12px 0}.student-photo-box [data-photo-message]{margin-top:16px}.student-medical-card .field-grid{margin:20px 0}.student-medical-card .info-note{margin-top:16px}.student-expiry-note{margin:8px 0;color:var(--text-muted)}.student-expiry-note[data-expired=true]{color:#b34222}.student-photo-box [hidden]{display:none!important}.record-banner .student-photo-preview{width:80px;height:100px}.student-profile-extra .data-grid{margin-top:16px}
.id-photo-launch{margin-bottom:16px}.id-photo-dialog{width:min(920px,94vw);max-height:90vh;overflow:auto;padding:24px}.id-photo-editor{display:grid;grid-template-columns:minmax(0,3fr) minmax(150px,1fr);gap:24px;align-items:start}.id-photo-editor [data-id-photo-canvas]{display:block;width:100%;height:auto;touch-action:none;cursor:crosshair;border-radius:8px;border:1px solid var(--border)}.id-photo-result canvas{display:block;max-width:100%;height:auto;max-height:270px;object-fit:contain;border:1px solid var(--border);background:white}.id-photo-adjust{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:20px;border:1px solid var(--border);border-radius:8px;padding:12px}.id-photo-adjust input{width:100%;box-sizing:border-box}.id-photo-adjust label{font-size:13px}.id-photo-dialog [hidden]{display:none!important}.id-photo-result h3{margin-top:0}@media(max-width:650px){.id-photo-editor{grid-template-columns:1fr}.id-photo-adjust{grid-template-columns:repeat(2,minmax(0,1fr))}.id-photo-dialog{padding:16px}}
/* Compact contact card; real form controls remain in their original form. */
.student-contact-card{padding:20px!important}.student-contact-card>.section-title{margin-bottom:16px}.student-contact-card>.section-title p,.student-contact-card .required-note{display:none}.student-contact-card>[hidden]{display:none!important}
.student-contact-layout{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:24px;align-items:stretch}
.student-contact-fields{display:grid;grid-template-columns:minmax(130px,.8fr) minmax(0,1.3fr);gap:12px 16px}.student-contact-fields label{margin:0;min-width:0}.student-contact-fields input{width:100%;min-width:0}
.student-contact-card .student-photo-box{display:flex;flex-direction:column;gap:8px;padding:0;margin:0;border:0;min-width:0}
.student-photo-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:22px}.student-contact-card .student-photo-heading h3{font-size:13px;margin:0}
.student-contact-card .student-photo-layout{display:grid;grid-template-columns:minmax(0,1fr);align-items:center;flex:1;gap:12px;padding:10px 12px;min-height:108px;border:2px dashed var(--accent,#81d500);border-radius:12px;background:var(--surface-soft)}
.student-contact-card .student-photo-layout:has([data-photo-preview]:not([hidden])){grid-template-columns:68px minmax(0,1fr)}
.student-contact-card .student-photo-preview{width:68px;height:84px;min-height:0;object-fit:contain;object-position:center;background:transparent}
.student-contact-card .student-photo-box.dragover{outline:0}.student-contact-card .student-photo-box.dragover .student-photo-layout{background:var(--selection);border-style:solid}
.student-photo-layout:focus-visible,.student-photo-picker:focus-within{outline:2px solid var(--accent,#81d500);outline-offset:3px}
.student-contact-card [data-photo-controls]{min-width:0;text-align:center}.student-contact-card .student-photo-prompt{font-size:13px;line-height:1.4;margin:0 0 8px}
.student-contact-card .student-photo-picker{position:relative;display:inline-flex;align-items:center;justify-content:center;min-height:30px;padding:5px 12px;margin:0;border:1px solid var(--line);border-radius:7px;font-size:12px;font-weight:650;cursor:pointer;background:var(--surface-raised);color:var(--ink)}
.student-photo-picker input.sr-only{position:absolute;width:1px!important;height:1px!important;min-height:0;min-width:0;padding:0!important;border:0;overflow:hidden;clip:rect(0,0,0,0)}
.student-contact-card .id-photo-launch{margin:0}.student-photo-heading .id-photo-launch:has(button:disabled){display:none}.student-photo-heading .id-photo-launch button{min-height:26px;font-size:11px;padding:3px 8px}.student-photo-heading .id-photo-launch p{margin:0}
.student-contact-card .expedient-actions{justify-content:center;gap:6px;margin:6px 0 0}.student-contact-card .expedient-actions:not(:has(button:not([hidden]))){display:none}.student-contact-card [data-photo-controls] button{font-size:11px;min-height:26px;padding:3px 8px}
.student-contact-card [data-photo-message]:not(.sr-only){font-size:12px;margin:0;color:var(--error);line-height:1.4}
.student-contact-info{margin-top:12px;font-size:12px}.student-contact-info summary{cursor:pointer}.student-contact-info p{margin:8px 0}
@media(max-width:850px){.student-contact-layout{grid-template-columns:1fr}}
@media(max-width:480px){.student-contact-fields{grid-template-columns:1fr}.student-contact-card{padding:16px!important}}


.student-photo-box .student-photo-layout,
.student-contact-card .student-photo-layout,
.student-contact-card .student-photo-layout:has([data-photo-preview]:not([hidden])){
 display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;align-items:stretch;
}
.student-photo-upload{display:flex;align-items:center;justify-content:center;gap:10px;min-width:0}
.student-photo-box .student-photo-upload [data-photo-controls]{min-width:0}
.student-photo-box .student-photo-layout>.id-photo-launch{
 display:flex;flex-direction:column;justify-content:center;gap:8px;min-width:0;margin:0;
 border-left:1px solid var(--border,#48543e);padding-left:12px;
}
.student-photo-layout>.id-photo-launch button{width:100%;min-height:36px;padding:6px 8px;font-size:12px;line-height:1.25;white-space:normal}
.student-photo-layout [data-id-photo-status]{margin:0;font-size:11px;line-height:1.35}
.student-photo-layout [data-id-photo-status]:empty{display:none}
.id-photo-document-choice{max-width:min(480px,92vw)}
.id-photo-document-choice select{display:block;width:100%;margin:16px 0}
.id-photo-document-choice button{margin-right:8px}
@media(max-width:650px){.student-photo-upload{flex-direction:column}.student-photo-box .student-photo-layout{gap:8px}.student-photo-box .student-photo-layout>.id-photo-launch{padding-left:8px}}
