#student-record-dialog {width:min(960px,calc(100vw - 32px));max-height:calc(100dvh - 48px);border:1px solid #dce4dd;border-radius:18px;padding:28px;background:#fff;color:#183328;box-shadow:0 20px 70px #102c2438;}
#student-record-dialog::backdrop {background:#10231dcc;}
.record-heading {display:flex;align-items:flex-start;justify-content:space-between;gap:20px;}
.record-heading h2 {margin:.2rem 0;font-size:1.65rem;}
.record-tabs {display:flex;gap:8px;border-bottom:1px solid #dce4dd;padding-bottom:12px;margin:20px 0;flex-wrap:wrap;}
.record-tabs button[aria-pressed=true] {background:#204d39;color:#fff;}
.record-form {display:grid;grid-template-columns:1fr 1fr;gap:18px;}
.record-form>div {display:flex;flex-direction:column;gap:7px;}
.record-form input,.record-form select,.record-form textarea {width:100%;box-sizing:border-box;}
.record-form .wide {grid-column:1 / -1;}
.record-form input[type=checkbox] {width:auto;margin-right:8px;}
.record-form label {font-weight:600;}
.record-review {padding:20px;border:1px solid #bcd0c2;border-radius:10px;background:#f2f7f2;}
.record-review button {display:block;margin-top:16px;}
.record-change {padding:16px 0;border-bottom:1px solid #dce4dd;}
.record-change summary {cursor:pointer;font-weight:600;}
.record-change td {white-space:normal;overflow-wrap:anywhere;}
.student-open-button {padding:0!important;background:none!important;border:0!important;color:#1e6245!important;text-align:left;font:inherit;text-decoration:underline;text-underline-offset:3px;}
#student-record-message {min-height:24px;}
@media(max-width:640px){#student-record-dialog{padding:18px;max-height:calc(100dvh - 24px);} .record-form{grid-template-columns:1fr}.record-heading h2{font-size:1.3rem;}}
#student-record-dialog button {appearance:none;border:1px solid #d9e3da;border-radius:8px;background:#f4f7f3;color:#203e2e;padding:10px 16px;font:600 14px/1.4 "Open Sans",sans-serif;cursor:pointer;min-height:42px;}
#student-record-dialog button:hover {background:#e8efe7;}
#student-record-dialog button:disabled {opacity:.55;cursor:wait;}
#student-record-dialog button.primary-button,#student-record-dialog .record-tabs button[aria-pressed=true] {background:#24563e;color:white;border-color:#24563e;}
#student-record-dialog input,#student-record-dialog select,#student-record-dialog textarea {appearance:auto;border:1px solid #cfdbd0;border-radius:8px;background:#fbfcfa;color:#183328;padding:11px 12px;font:400 14px/1.5 "Open Sans",sans-serif;min-height:44px;}
#student-record-dialog textarea {resize:vertical;}
#student-record-dialog input[type=checkbox] {min-height:0;accent-color:#24563e;}
#student-record-dialog :is(button,input,select,textarea):focus-visible {outline:3px solid #9ebca9;outline-offset:2px;}
#student-record-dialog::backdrop {backdrop-filter:blur(2px);}
