.sr-dialog{--sr-blue:#1447ff;width:min(1320px,96vw);height:94vh;height:94dvh;max-width:none;max-height:none;margin:auto;border:0;padding:0;color:#101113;background:#f5f6fa;overflow:clip}
.sr-dialog[open]{display:flex;flex-direction:column}.sr-dialog::backdrop{background:#080c1cd9;backdrop-filter:blur(8px)}
.sr-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 28px;border-bottom:1px solid #d9dbe2;background:#fff;flex-shrink:0}.sr-header h2{font-size:22px;letter-spacing:-.045em}.sr-header-actions{display:flex;align-items:center;gap:12px}.sr-header button{padding:12px 15px;font-size:14px;font-weight:650;min-height:44px}.sr-print-open{background:#1447ff;color:white}.sr-close{background:#101113!important;color:#fff;font-size:27px!important;width:44px;padding:0!important}
.sr-scroll{overflow:auto;overscroll-behavior:contain;min-height:0;flex:1;padding:32px}.sr-login{max-width:480px;margin:clamp(20px,7vh,90px) auto}.sr-eyebrow{font-size:12px;letter-spacing:.1em;font-weight:700;color:#1447ff;margin-bottom:16px}.sr-login h3{font-size:clamp(28px,4vw,40px);letter-spacing:-.05em;line-height:1.35}.sr-login>p:not(.sr-eyebrow){font-size:15px;color:#626670;line-height:1.8;margin:20px 0 28px}.sr-login label{display:block;font-size:14px;font-weight:600;margin-bottom:10px}.sr-login input{width:100%;border:1px solid #bcc2d0;background:#fff;padding:17px 16px;font-size:18px;min-width:0}.sr-login button{width:100%;background:#1447ff;color:white;padding:18px 20px;margin-top:14px;font-size:16px;font-weight:700;display:flex;justify-content:space-between}.sr-message{min-height:28px;margin-top:15px;font-size:14px;line-height:1.6;color:#ba223b}.sr-message[role=status]{color:#626670}
.sr-profile-head{display:flex;align-items:flex-end;justify-content:space-between;gap:28px;padding-bottom:28px;border-bottom:2px solid #101113;margin-bottom:28px}.sr-profile-head h3{font-size:clamp(32px,4vw,56px);line-height:1.15;letter-spacing:-.06em}.sr-intro{margin-top:14px;color:#626670;font-size:16px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere}.sr-score{padding:17px 24px;background:#1447ff;color:white;text-align:right;min-width:170px}.sr-score small{display:block;font-size:12px;margin-bottom:5px}.sr-score strong{font-size:36px;line-height:1.1;letter-spacing:-.07em}.sr-score span{font-size:17px;margin-left:6px}.sr-layout{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:32px}.sr-portrait{aspect-ratio:4/5;background:#e5e9f2;display:grid;place-items:center;border:1px solid #d9dbe2;overflow:hidden}.sr-portrait img{width:100%;height:100%;object-fit:contain;max-height:520px}.sr-placeholder{color:#858d9e;font-size:14px}.sr-meta{display:grid;grid-template-columns:1fr 1fr;gap:0;margin:20px 0 30px;border-top:1px solid #cbd0dc}.sr-meta>div{padding:15px 0;border-bottom:1px solid #cbd0dc}.sr-meta dt{font-size:12px;color:#626670;margin-bottom:8px}.sr-meta dd{font-size:16px;margin:0;min-height:24px;white-space:pre-wrap;overflow-wrap:anywhere}.sr-section{margin-bottom:28px}.sr-section h4{font-size:21px;letter-spacing:-.04em;padding-bottom:13px;border-bottom:2px solid #101113;margin:0 0 12px}.sr-note{font-size:12px;color:#626670;line-height:1.7;margin:12px 0}.sr-table-wrap{overflow-x:auto}.sr-table{border-collapse:collapse;table-layout:fixed;width:100%;font-size:14px;background:#fff}.sr-table th,.sr-table td{padding:11px 10px;text-align:left;border:1px solid #d9dbe2;vertical-align:top;overflow-wrap:anywhere;white-space:pre-wrap;min-height:36px;line-height:1.6}.sr-table th{font-weight:600;background:#eef1f8;font-size:12px}.sr-table td:empty:after{content:'\00a0'}.sr-gallery-stage{aspect-ratio:4/3;background:white;border:1px solid #d9dbe2;display:grid;place-items:center;overflow:hidden}.sr-gallery-stage img{width:100%;height:100%;object-fit:contain}.sr-gallery-controls{display:flex;align-items:center;justify-content:space-between;margin-top:12px}.sr-gallery-controls button{width:44px;height:44px;background:white;border:1px solid #cbd0dc;font-size:23px}.sr-gallery-controls p{font-size:13px;color:#626670}.sr-gallery-caption{font-size:14px;line-height:1.7;min-height:46px;margin-top:14px;white-space:pre-wrap}.sr-photo-warning{font-size:12px;color:#856119;margin-top:10px;line-height:1.6}
/* The preview and print use the same physical page, typography and table geometry. */
.sr-print-preview{--sr-preview-scale:1;min-width:0;width:100%}
.sr-print-toolbar{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;margin:0 0 24px}
.sr-print-toolbar button{padding:12px 20px;background:#101113;color:#fff;font-size:14px;min-height:44px}.sr-print-toolbar button:last-child{background:#1447ff}
.sr-page-slot{overflow:clip;position:relative;width:calc(210mm * var(--sr-preview-scale));height:calc(297mm * var(--sr-preview-scale));margin:0 auto 24px}
.sr-paper{box-sizing:border-box;width:210mm;height:297mm;padding:13mm 12mm 10mm;background:#fff;color:#101113;box-shadow:0 3px 20px #10111312;display:flex;flex-direction:column;font-family:Arial,'Apple SD Gothic Neo','Malgun Gothic',sans-serif;font-size:12px;line-height:1.5;transform:scale(var(--sr-preview-scale));transform-origin:top left;text-size-adjust:100%;-webkit-text-size-adjust:100%}
.sr-paper-header{display:flex;justify-content:space-between;align-items:flex-end;gap:8mm;border-bottom:2px solid #1447ff;padding:0 0 5mm;margin:0 0 6mm;flex:none}
.sr-paper-header h3{font-size:23px;font-weight:800;letter-spacing:-.045em;line-height:1.35;max-width:104mm;word-break:keep-all;margin:0}
.sr-paper-header p{flex:0 0 69mm;font-size:10px;line-height:1.7;white-space:pre-line;text-align:right;margin:0;color:#414855;word-break:keep-all}
.sr-paper-content{flex:1;min-height:0;display:flow-root;padding-bottom:2mm}
.sr-paper .sr-section{margin:0 0 5mm}.sr-paper .sr-section h4{font-size:14px;line-height:1.5;font-weight:700;letter-spacing:-.03em;border:0;padding:0;margin:0 0 2mm;break-after:avoid}
.sr-paper .sr-table-wrap{overflow:visible}.sr-paper .sr-table{width:100%;font-size:11.5px;line-height:1.5;table-layout:fixed;border-collapse:collapse}
.sr-paper .sr-table th,.sr-paper .sr-table td{border:1px solid #c9ced8;padding:2mm 2.3mm;min-height:0;height:8mm;font-size:inherit;line-height:1.5;vertical-align:middle;overflow-wrap:anywhere;white-space:pre-wrap}
.sr-paper .sr-table th{background:#edf1f8;color:#333c4b;font-weight:700}.sr-paper .sr-table th:first-child{width:26%}.sr-paper .sr-table:has(th:nth-child(6)) th:first-child{width:auto}
.sr-paper .sr-note{font-size:10px;line-height:1.5;margin:0 0 2mm;color:#586271}
.sr-paper .sr-identity-table th:first-child{width:auto}.sr-paper .sr-identity-table th{font-size:10.5px;white-space:normal}.sr-paper .sr-identity-table td{white-space:normal}.sr-paper .sr-identity-table tr{height:15mm}
.sr-paper .sr-identity-table .sr-identity-photo{padding:2.5mm;vertical-align:middle;background:#fff}
.sr-paper-photo{width:100%;height:39mm;display:flex;align-items:center;justify-content:center;background:#fff}.sr-paper-photo img{width:100%;height:100%;object-fit:contain}
.sr-paper-footer{display:flex;justify-content:space-between;align-items:center;gap:5mm;flex:none;background:transparent;color:#647080;border-top:1px solid #c9ced8;margin:4mm 0 0;padding:3mm 0 0;font-size:9px;line-height:1.5}
.sr-page-number{width:24mm;flex:none;text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
@media(max-width:800px){.sr-dialog{width:100%;height:100vh;height:100dvh;margin:0}.sr-header{padding:15px 18px}.sr-header h2{font-size:18px}.sr-header-actions{gap:8px}.sr-header button{padding:10px;font-size:12px}.sr-scroll{padding:22px 18px}.sr-layout{grid-template-columns:1fr;gap:24px}.sr-portrait{max-height:460px;aspect-ratio:4/4.3}.sr-profile-head{gap:14px}.sr-score{min-width:120px;padding:14px}.sr-score strong{font-size:27px}.sr-score small{font-size:10px}.sr-profile-head h3{font-size:34px}.sr-table{font-size:13px}.sr-table th,.sr-table td{padding:9px 7px}}
@media print{
  @page{size:A4 portrait;margin:0}
  html.sr-printing,html.sr-printing body{overflow:visible!important;height:auto!important;position:static!important;background:white!important;padding:0!important;margin:0!important}
  .sr-printing body>*:not(#student-report){display:none!important}
  .sr-printing #student-report{display:block!important;position:static!important;inset:auto!important;transform:none!important;opacity:1!important;width:auto!important;height:auto!important;max-height:none!important;max-width:none!important;margin:0!important;padding:0!important;overflow:visible!important;background:white!important}
  .sr-printing #student-report::backdrop{display:none!important}
  .sr-printing .sr-header,.sr-printing .sr-login,.sr-printing .sr-profile,.sr-printing .sr-print-toolbar{display:none!important}
  .sr-printing .sr-scroll{padding:0!important;overflow:visible!important;display:block!important}
  .sr-printing .sr-print-preview{display:block!important;width:auto!important}
  .sr-printing .sr-page-slot{overflow:visible!important;width:210mm!important;height:297mm!important;margin:0!important;break-inside:avoid;break-after:page}
  .sr-printing .sr-page-slot:last-child{break-after:auto}
  .sr-printing .sr-paper{transform:none!important;margin:0!important;box-shadow:none!important}
  .sr-printing .sr-table thead{display:table-header-group}.sr-printing .sr-table tr{break-inside:avoid}
  .sr-printing .sr-paper,.sr-printing img{print-color-adjust:exact;-webkit-print-color-adjust:exact}
}

/* Private, authenticated teacher-facing directory. No student entries are shipped in HTML. */
.sr-directory{max-width:1100px;margin:16px auto 40px}
.sr-directory-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:24px;padding-bottom:28px;border-bottom:2px solid #101113}
.sr-directory-heading h3{font-size:clamp(30px,4vw,44px);letter-spacing:-.055em;line-height:1.25}
.sr-directory-intro{font-size:15px;color:#626670;line-height:1.8;margin-top:14px}
.sr-directory-exit{padding:10px 14px;border:1px solid #cbd0dc;min-height:44px;background:#fff;font-size:13px;white-space:nowrap}
.sr-directory-back{border:1px solid #cbd0dc;background:#fff}
.sr-directory-search{margin:28px 0 18px}.sr-directory-search label{display:block;font-size:14px;font-weight:600;margin-bottom:10px}
.sr-directory-search input{display:block;width:100%;background:#fff;border:1px solid #bbc3d4;border-radius:0;min-height:56px;padding:15px 18px;font-size:17px}
.sr-directory-count{font-size:13px;color:#626670;margin-bottom:14px;min-height:20px}
.sr-student-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;list-style:none;margin:0;padding:0}
.sr-student-item{min-width:0}.sr-student-card{display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;padding:24px;text-align:left;background:#fff;border:1px solid #d9dbe2;min-height:110px;transition:border-color .2s,background .2s}
.sr-student-card:hover,.sr-student-card:focus-visible{border-color:#1447ff;background:#edf2ff}
.sr-student-card[aria-busy=true]{border-color:#1447ff;background:#edf2ff}
.sr-student-summary{min-width:0}.sr-student-summary strong{display:block;font-size:23px;font-weight:700;letter-spacing:-.035em;overflow-wrap:anywhere}
.sr-student-number{display:block;margin-top:9px;font-size:13px;letter-spacing:.025em;color:#626670;overflow-wrap:anywhere}.sr-student-arrow{font-size:29px;color:#1447ff;flex:none}
.sr-directory-empty{grid-column:1/-1;padding:42px 20px;text-align:center;color:#626670;background:#fff;border:1px solid #d9dbe2;line-height:1.7}
.sr-directory-message{font-size:14px;line-height:1.7;margin-top:18px;min-height:24px;color:#626670}.sr-directory-message[role=alert]{color:#ba223b}
@media(max-width:600px){.sr-header{flex-wrap:wrap}.sr-header h2{font-size:17px}.sr-header-actions{margin-left:auto;gap:6px}.sr-directory{margin-top:4px}.sr-directory-heading{gap:16px;flex-wrap:wrap;padding-bottom:22px}.sr-directory-exit{padding:8px 12px}.sr-directory-search{margin-top:22px}.sr-student-list{grid-template-columns:1fr}.sr-student-card{padding:20px;min-height:100px}.sr-student-summary strong{font-size:22px}}
@media(prefers-reduced-motion:reduce){.sr-student-card{transition:none}}
@media print{.sr-printing .sr-directory{display:none!important}}
