/* HF9: class management, shared visual system; scoped to preserve student and public UI. */
#view-students{--cm-ink:#344e60;--cm-muted:#617786;--cm-line:#d3e0e7;--cm-soft:#eef3f6;--cm-panel:#fff;--cm-accent:#b74f23;--cm-radius:12px}
#view-students .sc31513-tabs{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:0 0 16px;padding:0;overflow:visible}
#view-students .sc31513-tabs button{width:100%!important;min-height:64px!important;padding:12px 14px!important;justify-content:flex-start!important;gap:10px;border-radius:var(--cm-radius)!important;background:var(--cm-panel);border:1px solid var(--cm-line);color:var(--cm-ink);font-size:calc(14px * var(--site-font-scale,1));font-weight:700;white-space:normal;text-align:left;box-shadow:none}
#view-students .sc31513-tabs button small{display:block!important;font-size:11px;font-weight:500;color:var(--cm-muted)}
#view-students .sc31513-tabs button .line-icon{width:21px;height:21px;flex:0 0 21px;color:#507887}
#view-students .sc31513-tabs button.active{background:var(--cm-ink)!important;color:#fff!important;border-color:var(--cm-ink)!important}
#view-students .sc31513-tabs button.active small,#view-students .sc31513-tabs button.active .line-icon{color:#e1edf2!important}
#view-students .panel,#view-students .sc31513-section>.panel{background:var(--cm-panel);border:1px solid var(--cm-line);border-radius:var(--cm-radius);box-shadow:none;padding:16px;margin-bottom:14px;min-width:0}
#view-students :is(.panel-title-row,.score-auto-head,.sc348-heading){display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;padding:0 0 12px;border-bottom:1px solid var(--cm-line);margin:0 0 12px;background:none}
#view-students :is(.panel-title-row,.score-auto-head,.sc348-heading) h3{font-size:calc(17px * var(--site-font-scale,1));color:var(--cm-ink);margin:0;line-height:1.4}
#view-students :is(.panel-title-row,.score-auto-head) small{color:var(--cm-muted)}
#view-students :is(.sc31813-kpi,.sc348-metric,.student-admin-tip,.score-auto-step,.student-batch-help){background:var(--cm-soft);border-color:var(--cm-line);border-radius:10px;color:var(--cm-ink);box-shadow:none}
#view-students :is(.btn,select,input:not([type=checkbox]):not([type=radio])){min-height:44px;border-radius:10px}
#view-students .btn{font-size:calc(13px * var(--site-font-scale,1));padding:9px 14px}
#view-students .btn.primary{background:var(--cm-accent);border-color:var(--cm-accent);color:white}
#view-students .btn.soft{background:white;color:var(--cm-ink);border-color:var(--cm-line)}
#view-students table th{background:var(--cm-soft);color:var(--cm-ink)}
#view-students .sc349-legacy{border:1px solid var(--cm-line);border-radius:10px;padding:12px;margin-top:12px}
#view-students .sc349-legacy summary{cursor:pointer;font-weight:700;color:var(--cm-ink)}
#view-students .sc348-group{border-radius:var(--cm-radius);box-shadow:none}
.sc349-sync{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.sc349-sync-msg{color:#526c7c;max-width:400px;overflow-wrap:anywhere}.sc341-save{justify-content:flex-start}
@media(max-width:850px){#view-students .sc31513-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){#view-students .sc31513-tabs button{min-height:62px!important;padding:8px 10px!important}#view-students .panel{padding:12px}#view-students :is(.panel-title-row,.score-auto-head){align-items:flex-start}#view-students .sc31513-tabs{gap:7px}}
#view-students .sc31513-tabs button:focus-visible,#view-students .btn:focus-visible{outline:2px solid #527e9a;outline-offset:2px}
#view-students .sc31513-tabs button>span:last-child{min-width:0;overflow-wrap:anywhere}
#view-students .sc31513-section>.panel h3,#view-students .panel h3{line-height:1.4}
#view-students .sc31513-tabs button:hover:not(.active):not(:disabled){background:var(--cm-soft);border-color:#a2b9c8}
