.class-roster{margin-top:16px;border:1px solid #d2e5df;border-radius:14px;padding:14px;background:#f8fcfa}.class-roster summary{cursor:pointer;font-weight:800;color:#17695f}.roster-body{display:grid;gap:14px;margin-top:14px}.roster-note{font-size:13px;line-height:1.5;margin:0}.roster-scroll{overflow:auto;max-width:100%}.roster-table{border-collapse:collapse;width:100%;font-size:13px}.roster-table td,.roster-table th{text-align:left;vertical-align:top;padding:10px 8px;border-bottom:1px solid #d2e5df}.roster-table th{white-space:nowrap}.roster-table td:nth-child(2){min-width:150px;overflow-wrap:anywhere}.roster-table td:last-child{min-width:135px}.roster-table button{margin:0 5px 5px 0}.roster-table small{display:block;margin:3px 0 8px;color:#637f77}.roster-table [data-roster-joined=true]{color:#19714f;font-weight:700}.roster-table tr[data-conflict=true]{background:#fff0e9;color:#9a3928}.roster-import{border-top:1px solid #d2e5df;padding-top:14px}.roster-import label{display:grid;gap:7px;margin:14px 0;font-size:13px;font-weight:700}.roster-import textarea{width:100%;box-sizing:border-box;border:1px solid #b9d5ce;border-radius:10px;padding:10px;font:inherit;line-height:1.5;resize:vertical}.roster-import input{max-width:100%;font:inherit}.roster-import [data-roster-import]{margin-top:14px}.roster-message{font-size:13px;line-height:1.5;margin:0;min-height:20px;color:#19695c}.roster-message[data-error=true]{color:#a23f32}.roster-invite-result:empty{display:none}.roster-invite-result{display:grid;gap:8px;border:1px solid #b9d5ce;border-radius:12px;background:#eef9f1;padding:14px;font-size:13px;overflow-wrap:anywhere}.roster-invite-result p{margin:0}.roster-invite-result a{font-weight:800}.class-roster button:disabled{opacity:.55}.class-roster button[hidden]{display:none}@media(max-width:540px){.class-roster{padding:10px}.roster-table td,.roster-table th{padding:8px 6px}.roster-table{font-size:12px}}

/* The account dialog is narrow even on a large screen. Keep each pupil's
   invitation beside their details without requiring horizontal scrolling. */
.roster-body,.roster-scroll,.roster-import{min-width:0}
.roster-scroll{overflow:visible}
.roster-table{display:block;max-width:100%;border-collapse:separate}
.roster-table thead{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.roster-table tbody{display:grid;gap:12px}
.roster-table tbody tr{display:grid;grid-template-columns:minmax(0,1fr);gap:7px;border:1px solid #d2e5df;border-radius:12px;background:white;padding:12px;min-width:0}
.roster-table tbody td,.roster-table tbody td:nth-child(2),.roster-table tbody td:last-child{display:block;min-width:0;max-width:100%;padding:0;border:0;overflow-wrap:anywhere}
.roster-table tbody td:first-child{font-size:12px;color:#637f77}
.roster-table tbody td:first-child::before{content:'No: ';font-weight:700}
.roster-table tbody td:nth-child(2){font-weight:800;font-size:14px}
.roster-table tbody td:nth-child(4){padding-top:3px}
.roster-table button{max-width:100%;white-space:normal;margin:0 5px 5px 0}
.roster-table tr[data-conflict=true]{background:#fff0e9}

/* Student cards stay readable inside the profile dialog on every screen. */
.class-roster{padding:0;margin-top:14px;border:1px solid #cfe4db;border-radius:16px;background:#f4faf5;overflow:hidden}
.class-roster>summary,.roster-import>summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:50px;padding:12px 14px;box-sizing:border-box;font-size:14px;line-height:1.5;color:#20675f;cursor:pointer}
.class-roster>summary::-webkit-details-marker,.roster-import>summary::-webkit-details-marker{display:none}
.class-roster>summary::after,.roster-import>summary::after{content:'+';font-size:23px;font-weight:400;line-height:1}
.class-roster[open]>summary::after,.roster-import[open]>summary::after{content:'−'}
.class-roster[open]>summary{border-bottom:1px solid #dce9df;background:#edf7ef}
.roster-body{gap:16px;margin-top:0;padding:16px;min-width:0}.roster-note{color:#53766b;font-size:12px;line-height:1.75}
.roster-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.roster-toolbar [data-roster-count]{font-family:Nunito,sans-serif;font-size:17px;color:#20675f}
#account-dialog .roster-toolbar>button{flex:0 1 auto}.roster-empty{padding:18px;border:1px dashed #bdd8cb;border-radius:14px;background:#fffdf7;margin:0;color:#5b796e;font-size:13px;line-height:1.7}
.roster-table tbody{gap:12px}.roster-table tbody tr{padding:16px;border:1px solid #d6e7de;border-radius:16px;box-shadow:0 3px 12px #174e4604;gap:8px}
.roster-table tbody td:first-child{font-variant-numeric:tabular-nums;color:#698278;font-size:12px}.roster-table tbody td:nth-child(2){font-family:Nunito,sans-serif;font-size:16px;line-height:1.4;color:#204f50;font-weight:800}
.roster-table tbody td:nth-child(3){font-size:12px;color:#688077;line-height:1.6}.roster-table [data-roster-joined=true]{color:#24745e}
.roster-table tbody td:last-child{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.roster-table tbody td:last-child small{flex-basis:100%;font-weight:400;margin:0;font-size:11px;line-height:1.65}
#account-dialog .roster-table button{margin:0;flex:1 1 125px;font-size:12px;padding:10px 12px;min-height:44px}
.roster-table tr[data-conflict=true]{border-color:#e3bba8;background:#fff0e7}.roster-import{padding:0;border:1px solid #cfe2d7;border-radius:15px;background:#fff;overflow:hidden}.roster-import>summary{padding:13px 14px;font-weight:800}
.roster-import> :not(summary){margin-left:14px;margin-right:14px;max-width:calc(100% - 28px)}.roster-import>button:last-child{margin-bottom:14px}
.roster-import textarea{min-height:150px;border-radius:12px;line-height:1.65}.roster-import [type=file]{padding:8px!important;border-style:dashed!important;font-size:12px!important;background:#fbfdf9!important}
.roster-import [type=file]::file-selector-button{min-height:40px;border:1px solid #bcdacf;border-radius:10px;padding:9px 12px;margin-right:10px;background:#e6f5ed;color:#205e58;font:inherit;font-weight:800;cursor:pointer}
.roster-import [data-roster-preview]{margin-top:16px;margin-bottom:16px}.roster-import h4{font-family:Nunito,sans-serif;font-size:16px;margin:0 0 12px;color:#235d56}
.roster-message{line-height:1.7;min-height:0}.roster-message:empty{display:none}.roster-invite-result{padding:16px;border-color:#b8dcca;border-radius:16px;background:#ebf7ee;line-height:1.7}.roster-invite-result a{display:block;min-height:44px;box-sizing:border-box;padding:10px 13px;border-radius:11px;background:white;border:1px solid #b8dcca;color:#097a7f;text-decoration:none;text-align:center}
.class-roster [aria-busy=true]{cursor:progress}.class-roster :focus-visible{outline:3px solid #f9bb4d;outline-offset:3px}
@media(max-width:540px){.roster-body{padding:12px;gap:14px}.roster-table tbody tr{padding:13px}.roster-import> :not(summary){margin-left:12px;margin-right:12px;max-width:calc(100% - 24px)}}
