/* Admin page + section mover. Scope: staff shell (.tskin). */
.tsk-admin-btn{display:inline-flex;align-items:center;min-height:40px;padding:0 1rem;border-radius:8px;background:#D4AF37;color:#10264a !important;font-weight:700;letter-spacing:.04em;text-decoration:none;border:1px solid #D4AF37;cursor:pointer;font-size:.95rem}
.tsk-admin-btn:hover{background:#e6c75c}
.tsk-admin-btn:disabled{opacity:.6;cursor:default}
.tsk-admin-btn.tsk-admin-back{background:transparent;color:#ecd78f !important;border-color:rgba(212,175,55,.6);font-weight:600}
.tsk-admin-btn.tsk-admin-back:hover{background:rgba(255,255,255,.1)}
.tsk-adm-sub{margin-top:.6rem;color:rgba(255,255,255,.78)}
.sec-tabs{display:flex;flex-wrap:wrap;gap:.4rem;margin-top:1.4rem}
.sec-tab{min-height:40px;padding:0 1rem;border-radius:8px;border:1px solid rgba(212,175,55,.5);background:transparent;color:#fff;cursor:pointer;font-size:.95rem}
.sec-tab:hover{background:rgba(255,255,255,.1)}
.sec-tab-on{background:#D4AF37;color:#10264a;font-weight:700;border-color:#D4AF37}
.sec-note{margin-top:1rem;font-size:.9rem;color:rgba(255,255,255,.78)}
.sec-ok{margin-top:1rem;padding:.6rem .9rem;border:1px solid #7ee2a8;color:#7ee2a8;background:rgba(126,226,168,.08)}
.sec-err{margin-top:1rem;padding:.6rem .9rem;border:1px solid #ffb9b9;color:#ffb9b9;background:rgba(255,185,185,.08)}
.sec-flagbar{margin-top:.8rem;padding:.6rem .9rem;border:1px solid #f0c15a;color:#f6d98f;background:rgba(240,193,90,.08);font-size:.9rem}
.sec-bar{position:sticky;top:0;z-index:20;display:flex;flex-wrap:wrap;align-items:center;gap:.75rem;margin-top:1rem;padding:.6rem .9rem;background:#10264a;border:1px solid rgba(212,175,55,.6);border-top:2px solid #D4AF37}
.sec-grid{display:grid;gap:1rem;margin-top:1.25rem;grid-template-columns:repeat(auto-fit,minmax(min(100%,17rem),1fr));align-items:start}
.sec-col{background:rgba(255,255,255,.05);border:1px solid rgba(201,162,39,.4);border-top:2px solid #D4AF37;min-height:6rem}
.sec-over{background:rgba(212,175,55,.18);outline:2px dashed #D4AF37}
.sec-unp{border-top-color:#A6192E}
.sec-ch{padding:.8rem .9rem .6rem;border-bottom:1px solid rgba(212,175,55,.3)}
.sec-ct{font-family:Oswald,Inter,sans-serif;font-weight:600;font-size:1.25rem;letter-spacing:.03em;text-transform:uppercase;line-height:1.1}
.sec-cs{margin-top:.25rem;font-size:.82rem;color:#D4AF37}
.sec-list{list-style:none;margin:0;padding:.4rem}
.sec-row{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem;padding:.45rem .5rem;border-radius:6px;cursor:grab}
.sec-row:hover{background:rgba(255,255,255,.07)}
.sec-sel{background:rgba(212,175,55,.2)}
.sec-box{flex:none;width:1.4rem;height:1.4rem;border-radius:4px;border:1px solid rgba(212,175,55,.8);background:transparent;color:#10264a;font-size:.85rem;line-height:1;cursor:pointer;padding:0}
.sec-sel .sec-box{background:#D4AF37}
.sec-nm{flex:1 1 8rem;min-width:0;font-size:.95rem}
.sec-gr{color:rgba(255,255,255,.7);font-size:.85rem}
.sec-flag{display:block;margin-top:.15rem;font-size:.75rem;color:#f6d98f}
.sec-sel-dd{flex:none;max-width:9.5rem;height:2rem;border-radius:6px;font-size:.8rem;padding:0 .3rem}
.sec-bar select{height:2.25rem;border-radius:6px;padding:0 .5rem}
.sec-modal{position:fixed;inset:0;z-index:60;display:flex;align-items:center;justify-content:center;padding:1rem;background:rgba(3,10,25,.72)}
.sec-dlg{width:100%;max-width:34rem;max-height:90vh;overflow:auto;padding:1.25rem;background:#10264a;border:1px solid rgba(212,175,55,.7);border-top:3px solid #D4AF37;box-shadow:0 18px 50px rgba(0,0,0,.5)}
.sec-dt{font-family:Oswald,Inter,sans-serif;font-weight:600;font-size:1.5rem;letter-spacing:.03em;text-transform:uppercase}
.sec-ml{list-style:none;margin:.9rem 0 0;padding:0}
.sec-ml li{padding:.5rem 0;border-bottom:1px solid rgba(255,255,255,.12);font-size:1rem}
.sec-warn{margin-top:.3rem;font-size:.82rem;color:#f6d98f}
.sec-fine{margin-top:1rem;font-size:.85rem;color:rgba(255,255,255,.78)}
.sec-btns{display:flex;justify-content:flex-end;gap:.6rem;margin-top:1.1rem}
@media(max-width:640px){.sec-sel-dd{max-width:100%;flex:1 1 100%}.tsk-nav-row{gap:.15rem}}
/* ---- Students master list, profile, forms ---- */
.stu-top{display:flex;flex-wrap:wrap;gap:.6rem;margin-top:1.25rem}
.stu-bar{display:flex;flex-wrap:wrap;gap:.75rem;align-items:flex-end;margin-top:1rem}
.stu-f{display:flex;flex-direction:column;gap:.2rem;font-size:.78rem;color:#ecd78f;letter-spacing:.04em;text-transform:uppercase}
.stu-chk{display:flex;align-items:center;gap:.4rem;min-height:40px;font-size:.95rem}
.stu-in{min-height:40px;border-radius:6px;padding:.3rem .6rem;border:1px solid rgba(212,175,55,.6);background:#fff;color:#10264a;font-size:.95rem;max-width:100%}
.stu-in:focus{outline:2px solid #D4AF37}
textarea.stu-in{width:100%;resize:vertical}
.stu-q{flex:1 1 18rem;min-width:12rem}
.stu-wrap{margin-top:.6rem;overflow:auto;max-height:72vh;border:1px solid rgba(212,175,55,.4);background:rgba(255,255,255,.04)}
.stu-t{border-collapse:separate;border-spacing:0;font-size:.88rem;white-space:nowrap;min-width:100%}
.stu-t th{position:sticky;top:0;z-index:3;background:#10264a;border-bottom:2px solid #D4AF37;text-align:left;padding:0}
.stu-th{display:block;width:100%;padding:.55rem .7rem;background:transparent;color:#ecd78f;font-weight:600;text-align:left;cursor:pointer;border:0;font-size:.82rem;letter-spacing:.03em}
.stu-th:hover{background:rgba(255,255,255,.1)}
.stu-t td{padding:.45rem .7rem;border-bottom:1px solid rgba(255,255,255,.1);vertical-align:top;max-width:22rem;overflow:hidden;text-overflow:ellipsis}
.stu-t tbody tr:hover td{background:rgba(255,255,255,.07)}
.stu-s1{position:sticky;left:0;z-index:2;background:#10264a}
.stu-t th.stu-s1{z-index:4}
.stu-t td.stu-s1{background:#13305c}
.stu-n{text-align:right}
.stu-wd td{color:rgba(255,255,255,.62)}
.stu-link{color:#fff;text-decoration:underline;text-decoration-color:rgba(212,175,55,.8);text-underline-offset:3px;background:transparent;border:0;padding:0;cursor:pointer;font:inherit}
.stu-link:hover{color:#ecd78f}
.stu-badge{display:inline-block;padding:.1rem .55rem;border-radius:999px;font-size:.78rem;font-weight:700}
.stu-b-en{background:rgba(126,226,168,.16);color:#7ee2a8;border:1px solid #7ee2a8}
.stu-b-wd{background:rgba(255,185,185,.14);color:#ffb9b9;border:1px solid #ffb9b9}
.stu-flags{white-space:normal;min-width:12rem}
.stu-flag{display:block;font-size:.76rem;color:#f6d98f}
.stu-danger{background:#A6192E !important;border-color:#A6192E !important;color:#fff !important}
.stu-danger:hover{background:#c0213a !important}
.stu-head{display:flex;flex-wrap:wrap;gap:1.2rem;align-items:center;margin-top:1.2rem}
.stu-head>div:first-of-type{flex:1 1 16rem}
.stu-photo{width:5.5rem;height:5.5rem;object-fit:cover;border-radius:8px;border:2px solid #D4AF37}
.stu-actions{display:flex;flex-wrap:wrap;gap:.6rem}
.stu-cols{display:grid;gap:1rem;grid-template-columns:repeat(auto-fit,minmax(min(100%,22rem),1fr));align-items:start}
.stu-card{margin-top:1rem;padding:1rem 1.1rem;background:rgba(255,255,255,.05);border:1px solid rgba(201,162,39,.4);border-top:2px solid #D4AF37}
.stu-h2{font-family:Oswald,Inter,sans-serif;font-weight:600;font-size:1.2rem;letter-spacing:.04em;text-transform:uppercase;margin:0 0 .6rem}
.stu-h3{margin:1rem 0 .3rem;font-weight:700;font-size:.95rem;color:#ecd78f}
.stu-kv{margin:0}
.stu-kvr{display:flex;flex-wrap:wrap;gap:.2rem .8rem;padding:.3rem 0;border-bottom:1px solid rgba(255,255,255,.1);font-size:.9rem}
.stu-kvr dt{flex:0 0 11rem;color:#ecd78f}
.stu-kvr dd{flex:1 1 10rem;margin:0;min-width:0;overflow-wrap:anywhere}
.stu-t2{width:100%;border-collapse:collapse;font-size:.9rem}
.stu-t2 th{text-align:left;color:#ecd78f;padding:.35rem .5rem;border-bottom:1px solid rgba(212,175,55,.5)}
.stu-t2 td{padding:.35rem .5rem;border-bottom:1px solid rgba(255,255,255,.1)}
.stu-list{list-style:none;margin:0;padding:0;font-size:.9rem}
.stu-list li{padding:.3rem 0;border-bottom:1px solid rgba(255,255,255,.1)}
.stu-hint{font-size:.78rem;color:rgba(255,255,255,.7)}
.stu-cardview{margin-top:.8rem;padding:1rem;background:#fff;color:#10264a;border-radius:6px;overflow:auto}
.stu-row{display:flex;gap:.7rem;align-items:center;flex-wrap:wrap}
.stu-wide{max-width:50rem}
.stu-form{display:flex;flex-direction:column;gap:.7rem;margin-top:.9rem}
.stu-fld{display:flex;flex-direction:column;gap:.2rem;min-width:0}
.stu-fl{font-size:.78rem;letter-spacing:.04em;color:#ecd78f;text-transform:uppercase}
.stu-grid2,.stu-grid3,.stu-secs{display:grid;gap:.7rem}
.stu-grid2{grid-template-columns:repeat(auto-fit,minmax(min(100%,12rem),1fr))}
.stu-grid3{grid-template-columns:repeat(auto-fit,minmax(min(100%,11rem),1fr));margin-top:.4rem}
.stu-secs{grid-template-columns:repeat(auto-fit,minmax(min(100%,13rem),1fr));margin-top:.6rem}
.stu-sect{display:flex;justify-content:space-between;align-items:center;margin-top:1rem;padding-bottom:.3rem;border-bottom:1px solid rgba(212,175,55,.5);font-weight:700;color:#ecd78f;text-transform:uppercase;letter-spacing:.05em;font-size:.85rem}
.stu-seg{display:flex;gap:.4rem;margin-top:.6rem}
.stu-boy{margin-top:.4rem;padding:.2rem .8rem .8rem;border:1px solid rgba(212,175,55,.35);background:rgba(255,255,255,.04)}
.stu-id{margin:.6rem 0 0;font-size:1rem}
.stu-x{background:transparent;border:0;color:#ffb9b9;cursor:pointer;text-transform:none;font-size:.85rem;text-decoration:underline}
.stu-hits{list-style:none;margin:0;padding:0;border:1px solid rgba(212,175,55,.5)}
.stu-hit{display:block;width:100%;text-align:left;padding:.5rem .7rem;background:transparent;color:#fff;border:0;border-bottom:1px solid rgba(255,255,255,.1);cursor:pointer;min-height:40px}
.stu-hit:hover{background:rgba(255,255,255,.12)}
.stu-pick{color:#7ee2a8;font-size:.9rem}
@media(max-width:640px){.stu-kvr dt{flex-basis:100%}.stu-wrap{max-height:none}}
.stu-acts{display:inline-flex;gap:.4rem}
.stu-mini{min-height:34px;padding:.2rem .7rem !important;font-size:.82rem !important}
.stu-card,.stu-cols>*,.stu-head>*{min-width:0}
.stu-cardview{max-width:100%}
.stu-card{overflow-x:auto}
.stu-f{min-width:0;max-width:100%}
@media(max-width:640px){.stu-f{flex:1 1 100%}.stu-f .stu-in{width:100%}.stu-t2 td,.stu-t2 th{padding:.3rem .3rem}}
@media(max-width:640px){[data-testid=students-page] .tsk-banner,[data-testid=student-profile] .tsk-banner{flex-wrap:wrap}[data-testid=students-page] .tsk-h1,[data-testid=student-profile] .tsk-h1{font-size:1.7rem;overflow-wrap:anywhere}}
