:root{
    --bg:#f4f6fa; --surface:#fff; --sidebar:#182238; --sidebar2:#23304b;
    --text:#1f2937; --muted:#667085; --line:#e4e7ec;
    --primary:#4c648d; --primary2:#385078; --pink:#f07b92;
    --danger:#d92d20; --success:#067647; --warning:#b54708;
}
*{box-sizing:border-box}
body{margin:0;font-family:"Malgun Gothic","Apple SD Gothic Neo",Arial,sans-serif;background:var(--bg);color:var(--text)}
a{text-decoration:none;color:inherit}
.app{min-height:100vh;display:flex}
.sidebar{position:fixed;inset:0 auto 0 0;width:220px;background:var(--sidebar);color:#d4dbea;padding:15px 12px;overflow-y:auto;z-index:30}
.brand{height:74px;display:flex;align-items:center;justify-content:center;margin-bottom:6px}
.brand img{max-width:175px;max-height:65px;object-fit:contain}
.sidebar nav{display:flex;flex-direction:column;gap:3px}
.sidebar nav a{padding:9px 12px;border-radius:8px;font-size:13px}
.sidebar nav a:hover,.sidebar nav a.active{background:rgba(255,255,255,.11);color:white}
.nav-title{font-size:10px;text-transform:uppercase;letter-spacing:.08em;color:#8996ad;margin:13px 10px 3px}
.main{margin-left:220px;width:calc(100% - 220px)}
.topbar{height:62px;background:white;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:16px;padding:0 24px;position:sticky;top:0;z-index:20}
.topbar strong{font-size:17px}
.class-selector{margin-left:auto;display:flex;align-items:center;gap:8px}
.class-selector label{font-size:12px;color:var(--muted)}
.class-selector select{min-width:145px}
.menu-btn{display:none;border:0;background:transparent;font-size:24px;cursor:pointer}
.content{padding:22px 24px 45px}
.flash{padding:11px 14px;border-radius:9px;margin-bottom:14px;background:#eef2ff;border:1px solid #c7d2fe}
.flash.success{background:#ecfdf3;border-color:#abefc6;color:#067647}
.flash.error{background:#fef3f2;border-color:#fecdca;color:#b42318}
.card{background:white;border:1px solid var(--line);border-radius:13px;padding:18px;box-shadow:0 3px 12px rgba(16,24,40,.035)}
.card h2,.card h3{margin-top:0}
.cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:18px}
.stat .label{font-size:12px;color:var(--muted)}
.stat .value{font-size:27px;font-weight:800;margin-top:8px}
.grid-2{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(320px,.7fr);gap:18px}
.grid-3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.stack{display:flex;flex-direction:column;gap:14px}
.toolbar{display:flex;gap:9px;align-items:center;justify-content:space-between;margin-bottom:14px;flex-wrap:wrap}
.filters{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
input,select,textarea{font:inherit;padding:9px 10px;border:1px solid #d0d5dd;border-radius:8px;background:white;outline:none}
input:focus,select:focus,textarea:focus{border-color:var(--primary);box-shadow:0 0 0 3px rgba(76,100,141,.1)}
input[type="checkbox"],input[type="radio"]{width:auto}
textarea{width:100%;resize:vertical}
.button,button.button{display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:8px;background:var(--primary);color:white;padding:9px 13px;min-height:38px;font-weight:700;cursor:pointer;white-space:nowrap}
.button:hover{background:var(--primary2)}
.button.secondary{background:#eef2f6;color:#344054}
.button.pink{background:var(--pink)}
.button.danger{background:var(--danger)}
.button.small{padding:5px 8px;min-height:28px;font-size:11px}
.table-wrap{overflow:auto;border-radius:8px}
table{border-collapse:collapse;width:100%;min-width:720px}
th,td{padding:10px 9px;border-bottom:1px solid var(--line);text-align:left;font-size:12px;vertical-align:top}
th{background:#fafbfc;color:var(--muted);font-weight:800;position:sticky;top:0}
tr:hover td{background:#fbfcfe}
.badge{display:inline-block;border-radius:999px;padding:4px 8px;font-size:10px;font-weight:800;background:#eef2f6;color:#475467}
.badge.green{background:#ecfdf3;color:#067647}
.badge.red{background:#fef3f2;color:#b42318}
.badge.blue{background:#eef4ff;color:#3538cd}
.form-grid{display:grid;grid-template-columns:repeat(4,minmax(150px,1fr));gap:10px}
.field label{display:block;font-size:11px;font-weight:800;color:#475467;margin-bottom:5px}
.field input,.field select,.field textarea{width:100%}
.muted{color:var(--muted)}
.empty{text-align:center;color:var(--muted);padding:30px!important}
.student-list{display:flex;flex-direction:column;gap:4px;max-height:590px;overflow:auto}
.student-list a{padding:9px 10px;border-radius:7px;background:#f8fafc;font-size:12px}
.student-list a.current{background:#e9eef7;color:#233c68;font-weight:800}
.log-box{max-height:560px;overflow:auto;background:#fafafa;border:1px solid var(--line);border-radius:9px;padding:12px}
.log-day{padding:9px 0;border-bottom:1px solid var(--line)}
.split{display:grid;grid-template-columns:250px minmax(0,1fr);gap:16px}
.message-layout{display:grid;grid-template-columns:260px minmax(0,1fr);gap:18px}
.message-paper{background:white;border:1px solid #cfd4dc;border-radius:8px;padding:25px;min-height:650px}
.message-title{text-align:center;font-size:20px;font-weight:800;margin-bottom:7px}
.message-sub{text-align:center;color:#475467;margin-bottom:20px}
.bar-row{display:grid;grid-template-columns:145px minmax(150px,1fr) 55px;gap:8px;align-items:center;margin:8px 0;font-size:12px}
.bar-bg{height:12px;background:#e7e9ee;border-radius:99px;overflow:hidden}
.bar{height:100%;background:var(--primary);border-radius:99px}
.score-row{display:grid;grid-template-columns:minmax(120px,1fr) 100px 120px;gap:10px;padding:7px 0;border-bottom:1px solid #f0f1f3;font-size:12px}
.logo-footer{text-align:center;margin-top:30px}
.logo-footer img{max-width:270px;max-height:90px}
.calendar-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}
.calendar{display:grid;grid-template-columns:repeat(7,1fr);gap:1px;background:#dfe3ea;border:1px solid #dfe3ea}
.cal-label,.cal-day{background:white;min-height:72px;padding:7px;font-size:11px}
.cal-label{min-height:32px;text-align:center;font-weight:800;background:#f8fafc}
.cal-day.empty-day{background:#fafafa}
.cal-day.event{background:#fff9e8}
.cal-day.holiday .day-num{color:#d92d20}
.cal-day.selected{outline:3px solid #91a4c5;outline-offset:-3px}
.day-num{font-weight:800}
.event-dot{width:6px;height:6px;border-radius:50%;background:var(--pink);display:inline-block;margin-left:4px}
.chart-scroll{overflow-x:auto;border:1px solid var(--line);border-radius:10px;background:white}
.chart-legend{display:flex;gap:18px;font-size:11px;margin-bottom:8px}
.legend-line{display:inline-block;width:26px;height:3px;vertical-align:middle;margin-right:5px;background:#315efb}
.legend-line.avg{background:#e0a000}
.small-note{font-size:11px;color:var(--muted)}
.inline{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.section-title{font-size:14px;font-weight:800;margin:3px 0 12px}
.danger-zone{border:1px solid #fecdca;background:#fffafa}
@media(max-width:1000px){
    .sidebar{transform:translateX(-100%);transition:.2s}
    .sidebar.open{transform:translateX(0)}
    .main{margin-left:0;width:100%}
    .menu-btn{display:block}
    .cards{grid-template-columns:repeat(2,1fr)}
    .grid-2,.grid-3,.split,.message-layout{grid-template-columns:1fr}
    .form-grid{grid-template-columns:repeat(2,1fr)}
    .content{padding:15px}
}
@media(max-width:620px){
    .cards,.form-grid{grid-template-columns:1fr}
    .class-selector label{display:none}
    .class-selector select{min-width:110px}
}


/* ─────────────────────────────────────────
   로그인 화면
   ───────────────────────────────────────── */
.auth-body{
    min-height:100vh;
    background:#f4f6fa;
}
.auth-shell{
    min-height:100vh;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:24px;
}
.auth-card{
    width:min(440px,100%);
    background:white;
    border:1px solid var(--line);
    border-radius:18px;
    padding:34px;
    box-shadow:0 14px 40px rgba(16,24,40,.09);
}
.auth-logo{
    display:flex;
    justify-content:center;
    margin-bottom:22px;
}
.auth-logo img{
    width:190px;
    max-height:85px;
    object-fit:contain;
}
.auth-title{
    margin:0;
    text-align:center;
    font-size:23px;
}
.auth-desc{
    margin:8px 0 24px;
    text-align:center;
    color:var(--muted);
    font-size:13px;
    line-height:1.6;
}
.auth-form{
    display:flex;
    flex-direction:column;
    gap:15px;
}
.auth-button{
    width:100%;
    margin-top:5px;
    min-height:44px;
}

/* ─────────────────────────────────────────
   상단 로그인 사용자
   ───────────────────────────────────────── */
.user-menu{
    display:flex;
    align-items:center;
    gap:8px;
    margin-left:4px;
    padding-left:12px;
    border-left:1px solid var(--line);
}
.user-name{
    font-size:12px;
    font-weight:800;
    color:#475467;
}
.user-menu form{
    margin:0;
}
.logout-button{
    border:1px solid #d0d5dd;
    border-radius:7px;
    background:white;
    color:#475467;
    padding:6px 8px;
    font-size:11px;
    cursor:pointer;
}
.logout-button:hover{
    background:#f8fafc;
}


/* ===== 문자전송 v5: 웹 3단 레이아웃 ===== */
.msg3{
  display:grid;
  grid-template-columns:230px minmax(520px,1fr) 350px;
  gap:16px;
  align-items:start;
}
.msg3-left,.msg3-center,.msg3-right{
  background:#fff;
  border:1px solid var(--line);
  border-radius:14px;
  box-shadow:0 3px 12px rgba(16,24,40,.035);
}
.msg3-left,.msg3-right{
  padding:14px;
  position:sticky;
  top:78px;
}
.msg3-center{padding:18px;min-width:0}

.msg3-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:8px;
  padding-bottom:12px;
  border-bottom:1px solid var(--line)
}
.msg3-head strong{display:block;font-size:16px}
.msg3-head small{display:block;color:var(--muted);font-size:10px;margin-top:3px}
.msg3-head>span{
  background:#eef2ff;color:#3448a5;border-radius:999px;
  padding:5px 9px;font-size:10px;font-weight:800
}

.msg3-students{
  margin-top:10px;
  display:flex;
  flex-direction:column;
  gap:4px;
  max-height:calc(100vh - 185px);
  overflow:auto
}
.msg3-student{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:8px;
  padding:9px 10px;
  background:#f8fafc;
  border:1px solid transparent;
  border-radius:8px
}
.msg3-student:hover{background:#f0f4fa;border-color:#d8e0ec}
.msg3-student.active{background:#e7edf7;border-color:#b9c8df;color:#233c68}
.msg3-student b{font-size:12px}
.msg3-student small{
  font-size:9px;color:var(--muted);max-width:80px;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap
}

.msg3-weekbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:13px
}
.msg3-weeknav{display:flex;gap:5px}
.msg3-weeknav a{
  display:flex;align-items:center;justify-content:center;
  height:34px;min-width:34px;padding:0 10px;
  background:#eef2f6;border-radius:8px;
  font-size:12px;font-weight:800
}
.msg3-weeknav .today{min-width:68px}
.msg3-period{font-size:11px;color:var(--muted);font-weight:700}

.msg3-titlebox{
  padding:16px 17px;
  margin-bottom:11px;
  border-radius:11px;
  background:linear-gradient(135deg,#f4f7fb,#eef2f8)
}
.msg3-titlebox h2{
  font-size:19px;
  margin:0 0 8px;
  letter-spacing:-.03em
}
.msg3-titlebox>div{
  display:flex;gap:8px;align-items:center;
  flex-wrap:wrap;font-size:11px;color:#475467
}
.msg3-titlebox span{
  padding-left:8px;
  border-left:1px solid #cfd6df
}

.msg3-card{
  border:1px solid var(--line);
  border-radius:11px;
  padding:14px;
  margin-top:10px
}
.msg3-cardhead{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:12px
}
.msg3-cardhead h3{font-size:14px;margin:0}
.msg3-cardhead small{font-size:10px;color:var(--muted)}

.msg3-attendance{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:7px
}
.msg3-attendance>div{
  padding:9px 6px;border-radius:8px;text-align:center;
  display:flex;flex-direction:column;gap:3px
}
.msg3-attendance span{font-size:9px}
.msg3-attendance b{font-size:13px}
.msg3-attendance .present{background:#ecfdf3;color:#067647}
.msg3-attendance .late{background:#fffaeb;color:#b54708}
.msg3-attendance .absent{background:#fef3f2;color:#b42318}
.msg3-attendance .early{background:#eff8ff;color:#175cd3}

.msg3-assignment{
  display:grid;
  grid-template-columns:92px minmax(150px,1fr) 42px;
  gap:8px;
  align-items:center;
  margin:8px 0
}
.msg3-assignment>span{font-size:10px;color:#475467}
.msg3-assignment>b{font-size:10px;text-align:right}
.msg3-assignment .track{
  height:10px;background:#eaecf0;border-radius:999px;overflow:hidden
}
.msg3-assignment .track i{
  display:block;height:100%;background:#4c648d;border-radius:999px
}

.msg3-tablewrap{overflow-x:auto}
.msg3-table{min-width:540px}
.msg3-table th,.msg3-table td{font-size:10px;padding:8px 7px}
.msg3-table th{position:static}
.msg3-table .testname{white-space:normal;line-height:1.35;max-width:240px}
.msg3-table .blue{color:#315efb}
.msg3-table .diff{
  display:inline-block;padding:3px 6px;
  border-radius:999px;font-weight:800
}
.msg3-table .diff.plus{background:#ecfdf3;color:#067647}
.msg3-table .diff.minus{background:#fef3f2;color:#b42318}

.msg3-progress{
  background:#f8fafc;border-radius:8px;
  padding:12px;line-height:1.7;font-size:11px
}

.msg3-ment{
  width:100%;
  min-height:500px;
  margin-top:12px;
  padding:13px;
  line-height:1.75;
  font-size:12px;
  border-radius:9px;
  resize:vertical
}
.msg3-actions{
  display:grid;
  grid-template-columns:1fr 82px;
  gap:7px;
  margin-top:9px
}
.msg3-help{
  margin-top:12px;
  background:#f8fafc;
  border-radius:8px;
  padding:11px;
  color:#667085;
  font-size:10px;
  line-height:1.6
}
.msg3-empty{
  padding:20px;
  text-align:center;
  color:var(--muted);
  font-size:11px
}
.msg3-empty.large{padding:100px 20px}

@media(max-width:1300px){
  .msg3{grid-template-columns:200px minmax(460px,1fr) 310px}
}
@media(max-width:1080px){
  .msg3{grid-template-columns:200px minmax(0,1fr)}
  .msg3-right{grid-column:1/-1;position:static}
  .msg3-ment{min-height:260px}
}
@media(max-width:720px){
  .msg3{grid-template-columns:1fr}
  .msg3-left,.msg3-right{position:static}
  .msg3-students{max-height:240px}
  .msg3-attendance{grid-template-columns:repeat(2,1fr)}
}

.app-version{
    margin:18px 10px 4px;
    padding-top:10px;
    border-top:1px solid rgba(255,255,255,.08);
    color:#71809a;
    font-size:9px;
    text-align:center;
}


/* v5.2 문자전송 이미지 복사 */
.msg3-weektools{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap}
.button.compact{padding:7px 10px;font-size:11px;min-height:auto}
.msg3-image-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:2px 2px 0}
.msg3-image-actions small{color:var(--muted);font-size:10px;margin-left:2px}
@media(max-width:900px){
  .msg3-weekbar{align-items:flex-start;gap:8px}
  .msg3-weektools{justify-content:flex-start}
}

/* v5.2.5 - 문자전송 멘트 이미지 포함 체크 */
.msg3-include-ment{
  display:flex;
  align-items:flex-start;
  gap:9px;
  margin-top:10px;
  padding:10px 11px;
  border:1px solid #dbe2ea;
  border-radius:9px;
  background:#f8fafc;
  cursor:pointer;
}
.msg3-include-ment input{
  width:16px;
  height:16px;
  margin:2px 0 0;
  accent-color:#4c648d;
}
.msg3-include-ment span{display:flex;flex-direction:column;gap:2px;line-height:1.35}
.msg3-include-ment b{font-size:11px;color:#172033}
.msg3-include-ment small{font-size:9px;color:#667085;font-weight:400}

/* v5.2.6 - 이미지 추가내용을 항목별 체크/입력 */
.msg-extra-list{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-top:12px;
}
.msg-extra-item{
  border:1px solid #dbe2ea;
  border-radius:10px;
  background:#f8fafc;
  padding:10px;
}
.msg-extra-check{
  display:flex;
  align-items:center;
  gap:8px;
  cursor:pointer;
  margin-bottom:7px;
}
.msg-extra-check input{
  width:16px;
  height:16px;
  margin:0;
  accent-color:#4c648d;
}
.msg-extra-check b{
  font-size:11px;
  color:#172033;
}
.msg-extra-text{
  width:100%;
  min-height:68px;
  padding:9px 10px;
  border:1px solid #d0d7e2;
  border-radius:8px;
  background:#fff;
  color:#172033;
  font-size:11px;
  line-height:1.55;
  resize:vertical;
}
.msg-extra-text:focus{
  outline:none;
  border-color:#7188ad;
  box-shadow:0 0 0 2px rgba(76,100,141,.10);
}
.msg3-actions.single{
  grid-template-columns:1fr;
}

/* ===== v5.3.5 대시보드 일정 / 보충일정 ===== */
.dashboard-schedule-grid{
    display:grid;
    grid-template-columns:minmax(360px,.85fr) minmax(520px,1.4fr);
    gap:18px;
    align-items:start;
}
.dash-events{display:flex;flex-direction:column;gap:7px}
.dash-events.upcoming{max-height:520px;overflow:auto;padding-right:4px}
.dash-event-row{
    display:grid;
    grid-template-columns:82px minmax(0,1fr);
    gap:10px;
    align-items:center;
    padding:10px 0;
    border-bottom:1px solid var(--line);
}
.dash-event-row.future{grid-template-columns:54px 82px minmax(0,1fr)}
.dash-event-date{display:flex;flex-direction:column;align-items:center;justify-content:center;line-height:1.15}
.dash-event-date strong{font-size:13px}
.dash-event-date span{font-size:10px;color:var(--muted);margin-top:3px}
.dash-event-type{
    display:inline-flex;align-items:center;justify-content:center;
    min-height:28px;padding:4px 7px;border-radius:8px;
    font-size:10px;font-weight:800;background:#eef2f6;color:#475467;
}
.dash-event-type.makeup{background:#eef4ff;color:#3538cd}
.dash-event-type.fixed{background:#ecfdf3;color:#067647}
.dash-event-type.schedule{background:#fff4e8;color:#b54708}
.dash-event-main{min-width:0;font-size:12px;line-height:1.55}
.dash-event-time{display:inline-block;margin-right:7px;color:#344054}
.dash-event-memo{margin-top:2px;color:var(--muted);font-size:11px;white-space:pre-wrap}
.dash-empty{padding:35px 10px!important}

.makeup-grid{
    display:grid;
    grid-template-columns:330px minmax(0,1fr);
    gap:18px;
    align-items:start;
}
.makeup-form-card{position:sticky;top:78px}
.makeup-time-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px}
.makeup-duration-box{
    margin-top:10px;padding:11px 12px;border-radius:9px;
    background:#f7f9fc;border:1px solid var(--line);
    display:flex;align-items:center;justify-content:space-between;
    font-size:12px;
}
.makeup-duration-box strong{font-size:15px;color:#233c68}
.fixed-clinic-toggle{
    margin-top:12px;padding:12px;border:1px solid #cfd8e8;border-radius:10px;
    background:#f7f9ff;display:flex;gap:10px;align-items:flex-start;cursor:pointer;
}
.fixed-clinic-toggle input{margin-top:3px}
.fixed-clinic-toggle span{display:flex;flex-direction:column;gap:3px}
.fixed-clinic-toggle strong{font-size:12px}
.fixed-clinic-toggle small{font-size:10px;line-height:1.45;color:var(--muted)}
.makeup-table{min-width:760px}
.makeup-actions{white-space:nowrap}
.makeup-actions form{display:inline;margin-left:4px}

@media(max-width:1100px){
    .dashboard-schedule-grid,.makeup-grid{grid-template-columns:1fr}
    .makeup-form-card{position:static}
}

/* ===== v5.3.6 대시보드 전체 통합 / 반별 재원생 ===== */
.dashboard-class-section{margin-top:20px}
.dashboard-class-head{margin-bottom:10px}
.dashboard-class-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(240px,1fr));
    gap:14px;
}
.dash-class-card{padding:15px 16px}
.dash-class-title{
    display:flex;align-items:center;justify-content:space-between;gap:10px;
    padding-bottom:10px;margin-bottom:10px;border-bottom:1px solid var(--line);
}
.dash-class-title>strong{font-size:14px;color:#233c68}
.dash-class-students{display:flex;flex-wrap:wrap;gap:7px}
.dash-student-chip{
    display:inline-flex;align-items:center;gap:5px;
    padding:6px 9px;border-radius:8px;background:#f7f9fc;border:1px solid #e6eaf0;
    font-size:11px;
}
.dash-student-chip small{color:var(--muted);font-size:9px}
@media(max-width:1200px){.dashboard-class-grid{grid-template-columns:repeat(2,minmax(240px,1fr))}}
@media(max-width:700px){.dashboard-class-grid{grid-template-columns:1fr}}

/* ===== v5.4.0 시험관리 / 학생 전용 자동채점 ===== */
.exam-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px}
.exam-toolbar h2{font-size:18px;color:#172033}
.muted{color:var(--muted)}
.exam-table{min-width:980px}
.exam-actions{white-space:nowrap}
.exam-actions form{display:inline-block;margin-left:4px}
.exam-info-card{margin-top:14px;background:#f8fafc;border:1px solid #e4e9f0}
.exam-info-card p{margin:7px 0 0;font-size:11px;line-height:1.65;color:#667085}
.exam-info-card code{background:#eef2f6;border-radius:5px;padding:2px 5px}
.exam-basic-card{max-width:980px}
.exam-basic-grid{display:grid;grid-template-columns:180px 180px minmax(280px,1fr) 150px;gap:12px}
.exam-unit-field{min-width:0}
.exam-form-note{margin-top:14px;padding:11px 12px;border-radius:9px;background:#f7f9fc;color:#667085;font-size:11px;line-height:1.6}
.exam-summary-bar{display:grid;grid-template-columns:150px 120px minmax(260px,1fr) 120px 120px;gap:12px;margin-bottom:14px}
.exam-summary-bar>div{display:flex;flex-direction:column;gap:4px}
.exam-summary-bar small{color:var(--muted);font-size:9px}
.exam-summary-bar strong{font-size:13px;color:#233c68}
.exam-question-list{display:flex;flex-direction:column;gap:12px;padding-bottom:110px}
.exam-question-card{padding:14px 16px}
.exam-q-head{display:flex;align-items:flex-end;gap:14px;padding-bottom:12px;margin-bottom:12px;border-bottom:1px solid var(--line)}
.exam-q-no{font-size:17px;font-weight:800;color:#233c68;min-width:54px}
.compact-field{width:150px}
.exam-q-body{display:grid;grid-template-columns:160px 180px 220px;gap:12px;align-items:end}
.short-box{display:block}
.short-single{display:grid;grid-template-columns:160px minmax(280px,1fr);gap:12px;align-items:end}
.subpart-toggle,.publish-check{display:flex;gap:10px;align-items:flex-start;cursor:pointer}
.subpart-toggle{margin-bottom:12px;padding:10px 12px;border-radius:9px;background:#f8fafc;border:1px solid #e3e8ef;max-width:320px}
.subpart-toggle input,.publish-check input{margin-top:3px;width:16px;height:16px;accent-color:#4c648d}
.subpart-toggle span,.publish-check span{display:flex;flex-direction:column;gap:2px}
.subpart-toggle b,.publish-check b{font-size:11px;color:#172033}
.subpart-toggle small,.publish-check small{font-size:9px;color:#667085;line-height:1.45}
.short-subparts{display:none}
.sub-count{width:140px;margin-bottom:10px}
.subpart-rows{display:flex;flex-direction:column;gap:8px}
.subpart-row{display:grid;grid-template-columns:50px 140px minmax(260px,1fr);gap:10px;align-items:end;padding:9px 10px;border-radius:9px;background:#fafbfc;border:1px solid #edf0f4}
.subpart-row>strong{align-self:center;color:#344054}
.exam-savebar{position:sticky;bottom:0;z-index:5;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 16px;border:1px solid #dfe5ee;border-radius:12px;background:rgba(255,255,255,.97);box-shadow:0 -8px 24px rgba(16,24,40,.08)}
.publish-check{margin:0}

/* 학생 전용 페이지 */
.student-portal-body{margin:0;background:#f4f6f9;color:#172033;font-family:inherit}
.student-topbar{height:64px;background:#17233b;color:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 20px;box-sizing:border-box;position:sticky;top:0;z-index:10}
.student-brand{display:flex;align-items:center;gap:10px;color:#fff;text-decoration:none;font-weight:800}
.student-brand img{height:32px;width:auto}
.student-brand span{font-size:14px}
.student-user{display:flex;align-items:center;gap:12px;font-size:11px}
.student-user form{margin:0}.student-user button{border:0;background:rgba(255,255,255,.12);color:#fff;border-radius:7px;padding:7px 9px;cursor:pointer}
.student-shell{width:min(820px,calc(100% - 28px));margin:22px auto 60px}
.student-login-card{max-width:420px;margin:70px auto;background:#fff;border:1px solid #e2e7ef;border-radius:16px;padding:28px;box-shadow:0 10px 30px rgba(16,24,40,.06)}
.student-login-card h1{font-size:22px;margin:0 0 7px}.student-login-card>p{font-size:12px;color:#667085;line-height:1.55;margin:0 0 20px}
.student-login-form{display:flex;flex-direction:column;gap:8px}.student-login-form label{font-size:11px;font-weight:700;margin-top:6px}.student-login-form input{height:42px;border:1px solid #cfd7e3;border-radius:9px;padding:0 12px;font-size:14px}.student-login-form .button{margin-top:10px;height:44px}
.student-login-help{margin-top:16px;padding:11px 12px;background:#f7f9fc;border-radius:9px;font-size:10px;line-height:1.6;color:#667085}
.student-welcome{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:22px}.student-welcome small{color:#667085}.student-welcome h1{margin:2px 0 0;font-size:22px}.student-password-link{font-size:10px;color:#475467}
.student-section{margin-top:22px}.student-section-title{display:flex;align-items:center;gap:8px;margin-bottom:10px}.student-section-title h2{font-size:15px;margin:0}.student-section-title span{display:inline-flex;min-width:22px;height:22px;align-items:center;justify-content:center;border-radius:20px;background:#e8edf5;color:#475467;font-size:10px}
.student-exam-list,.student-history-list{display:flex;flex-direction:column;gap:9px}
.student-exam-card,.student-history-card{background:#fff;border:1px solid #e1e6ee;border-radius:13px;padding:14px 16px;display:flex;align-items:center;justify-content:space-between;gap:14px;text-decoration:none;color:inherit}
.student-exam-card>div,.student-history-card>div:first-child{display:flex;flex-direction:column;gap:3px;min-width:0}.student-exam-card small,.student-history-card small{font-size:9px;color:#667085}.student-exam-card strong,.student-history-card strong{font-size:13px}.student-exam-card span,.student-history-card span{font-size:10px;color:#667085}
.student-score{font-size:22px;font-weight:800;color:#233c68;white-space:nowrap}.student-score small{font-size:10px;font-weight:500;color:#98a2b3}
.student-empty{padding:34px 16px;text-align:center;color:#98a2b3;background:#fff;border:1px dashed #d8dee8;border-radius:12px;font-size:11px}
.student-exam-head{margin-bottom:16px}.student-exam-head h1{font-size:22px;margin:3px 0}.student-exam-head small,.student-exam-head p{color:#667085;font-size:11px;margin:0}
.student-question-list{display:flex;flex-direction:column;gap:10px;padding-bottom:90px}.student-question-card{background:#fff;border:1px solid #e0e6ee;border-radius:13px;padding:15px 16px}.student-q-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:13px}.student-q-header strong{font-size:15px;color:#233c68}.student-q-header span{font-size:10px;color:#667085}
.student-choice-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:8px}.student-choice-grid label{cursor:pointer}.student-choice-grid input{display:none}.student-choice-grid span{height:44px;border:1px solid #cfd7e3;border-radius:10px;display:flex;align-items:center;justify-content:center;font-size:20px;background:#fff}.student-choice-grid input:checked+span{background:#233c68;color:#fff;border-color:#233c68}
.student-short-answer{width:100%;height:44px;border:1px solid #cfd7e3;border-radius:9px;padding:0 12px;box-sizing:border-box;font-size:15px}
.student-subanswer-list{display:flex;flex-direction:column;gap:8px}.student-subanswer{display:grid;grid-template-columns:42px 1fr 50px;gap:8px;align-items:center}.student-subanswer input{height:40px;border:1px solid #cfd7e3;border-radius:8px;padding:0 10px}.student-subanswer small{text-align:right;color:#667085}
.student-submitbar{position:sticky;bottom:12px;display:flex;justify-content:flex-end;padding:10px;background:rgba(244,246,249,.94)}.student-submitbar .button{min-width:170px;height:44px}
.student-result-hero{background:#233c68;color:#fff;border-radius:16px;padding:24px;text-align:center}.student-result-hero>small{opacity:.75}.result-score{display:flex;align-items:baseline;justify-content:center;gap:5px;margin:10px 0}.result-score strong{font-size:48px}.result-score span{font-size:13px;opacity:.8}.result-wrong{display:flex;justify-content:center;gap:8px;font-size:11px}.result-wrong span{opacity:.85}.student-result-actions{margin:12px 0}.student-result-list{display:flex;flex-direction:column;gap:8px}.student-result-row{background:#fff;border:1px solid #e1e6ee;border-radius:12px;padding:12px 14px;display:grid;grid-template-columns:90px minmax(0,1fr) 90px;gap:12px;align-items:center;border-left:4px solid #d0d5dd}.student-result-row.correct{border-left-color:#12b76a}.student-result-row.wrong{border-left-color:#f04438}.student-result-q{display:flex;flex-direction:column;gap:2px}.student-result-q span{font-size:9px;color:#667085}.student-result-answer{display:flex;gap:18px;font-size:11px}.student-result-point{text-align:right;font-weight:700;font-size:11px}.student-result-subparts{display:flex;flex-direction:column;gap:5px}.student-result-subparts>div{display:grid;grid-template-columns:40px 1fr 1fr 24px;gap:8px;font-size:10px}.student-result-subparts em{font-style:normal;font-weight:800}

@media(max-width:900px){.exam-basic-grid{grid-template-columns:1fr 1fr}.exam-summary-bar{grid-template-columns:1fr 1fr}.exam-summary-bar .wide{grid-column:1/-1}.exam-q-body{grid-template-columns:1fr 1fr}.exam-savebar{align-items:flex-start;flex-direction:column}.student-choice-grid{grid-template-columns:repeat(5,1fr)}}
@media(max-width:600px){.student-topbar{padding:0 12px}.student-user span{display:none}.student-shell{width:min(100% - 18px,820px);margin-top:14px}.student-login-card{margin:30px auto;padding:20px}.student-choice-grid{gap:5px}.student-choice-grid span{height:42px;font-size:18px}.student-result-row{grid-template-columns:70px 1fr}.student-result-point{grid-column:2;text-align:left}.student-result-answer{flex-direction:column;gap:4px}.exam-basic-grid{grid-template-columns:1fr}.subpart-row{grid-template-columns:42px 100px 1fr}}


/* v5.4.1: 자동 학번 / 퇴원생 관리 / 시험 총점·복수정답 */
.withdrawn-table{min-width:1280px}
.withdrawn-actions{display:flex;align-items:center;gap:6px;white-space:nowrap}
.withdrawn-actions form{margin:0}
.withdrawn-actions select{height:30px;min-width:95px;border:1px solid #d0d7e2;border-radius:7px;background:#fff;padding:0 7px}
.choice-answer-field{display:flex;flex-direction:column;gap:6px;min-width:270px}
.choice-answer-field>label:first-child{font-size:10px;color:var(--muted);font-weight:700}
.teacher-choice-grid{display:grid;grid-template-columns:repeat(5,42px);gap:6px}
.teacher-choice-option{cursor:pointer}
.teacher-choice-option input{display:none}
.teacher-choice-option span{height:38px;border:1px solid #cfd7e3;border-radius:8px;display:flex;align-items:center;justify-content:center;font-size:18px;background:#fff;color:#344054}
.teacher-choice-option input:checked+span{background:#233c68;color:#fff;border-color:#233c68}
.multi-answer-toggle{display:flex;align-items:center;gap:6px;font-size:10px;color:#475467;cursor:pointer;width:max-content}
.multi-answer-toggle input{width:15px;height:15px;accent-color:#4c648d}
.exam-total-box{margin-left:auto;padding:8px 11px;border-radius:9px;background:#ecfdf3;color:#067647;font-size:11px;white-space:nowrap}
.exam-total-box strong{font-size:14px}
.exam-total-box.invalid{background:#fef3f2;color:#b42318}
.student-choice-help{margin-top:7px;font-size:10px;color:#667085}
@media(max-width:900px){.choice-answer-field{grid-column:1/-1}.exam-total-box{margin-left:0}}

/* v5.4.2 기존 시험 결과 입력 */
.historical-basic-grid{grid-template-columns:160px 160px minmax(260px,1fr) 120px 120px}
.historical-summary-bar{grid-template-columns:150px 120px minmax(260px,1fr) 110px 110px}
.historical-entry-help{display:flex;flex-direction:column;gap:4px;margin-bottom:12px;padding:11px 12px;border-radius:9px;background:#f7f9fc;color:#667085;font-size:11px;line-height:1.55}
.historical-entry-help strong{color:#344054;font-size:12px}
.historical-result-table{min-width:760px}
.historical-result-table td:first-child{min-width:150px}.historical-result-table td:first-child small{display:block;margin-top:3px;color:#98a2b3;font-size:9px}
.historical-result-table input[type="text"]{min-width:270px}
.score-input-wrap{display:flex;align-items:center;gap:6px;white-space:nowrap}.score-input-wrap input{width:96px}.score-input-wrap span{font-size:10px;color:#667085}
.student-history-note{display:flex;flex-direction:column;gap:6px;background:#fff;border:1px solid #e1e6ee;border-radius:13px;padding:16px}.student-history-note strong{font-size:13px;color:#233c68}.student-history-note span{font-size:11px;line-height:1.65;color:#667085}
@media(max-width:900px){.historical-basic-grid{grid-template-columns:1fr 1fr}.historical-basic-grid .exam-unit-field{grid-column:1/-1}.historical-summary-bar{grid-template-columns:1fr 1fr}.historical-summary-bar .wide{grid-column:1/-1}}
@media(max-width:600px){.historical-basic-grid{grid-template-columns:1fr}.historical-basic-grid .exam-unit-field{grid-column:auto}}

/* v5.4.3 시험 공개시간 / 수식입력 / 학생 성적그래프 */
.badge.amber{background:#fff3d6;color:#9a6700;border-color:#f6d889}
.exam-open-time{font-size:10px;white-space:nowrap;color:#475467}
.exam-basic-grid-five{grid-template-columns:140px 140px minmax(220px,1fr) 100px 210px}
.exam-summary-six{grid-template-columns:120px 110px minmax(180px,1fr) 90px 90px 190px}
.exam-open-setting{display:flex;align-items:flex-end;gap:18px;margin-bottom:12px}
.exam-open-setting .field{width:230px;margin:0}.exam-open-setting .muted{padding-bottom:9px;font-size:10px}
.short-answer-note{margin:2px 0 10px;padding:8px 10px;border-radius:8px;background:#f7f9fc;color:#667085;font-size:10px;line-height:1.55}
.math-input-row{display:flex;align-items:stretch;gap:6px}.math-input-row>input{min-width:0;flex:1}.math-tool-btn,.student-math-btn{border:1px solid #cfd7e3;background:#fff;color:#344054;border-radius:8px;padding:0 11px;font-size:10px;font-weight:700;cursor:pointer;white-space:nowrap}.math-tool-btn:hover,.student-math-btn:hover{background:#f5f7fa}
.math-palette{position:fixed;z-index:9999;right:24px;bottom:24px;width:min(430px,calc(100vw - 32px));background:#fff;border:1px solid #d8dee8;border-radius:14px;box-shadow:0 18px 50px rgba(16,24,40,.18);padding:12px;opacity:0;transform:translateY(8px);transition:.12s ease}.math-palette.open{opacity:1;transform:translateY(0)}
.math-palette-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:9px}.math-palette-head strong{font-size:12px}.math-palette-head button{border:0;background:transparent;font-size:22px;line-height:1;color:#667085;cursor:pointer}
.math-palette-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:6px}.math-palette-grid button{height:36px;border:1px solid #d8dee8;background:#f8fafc;border-radius:8px;font-size:11px;cursor:pointer}.math-palette-grid button:hover{background:#eef2f7}.math-palette-help{margin-top:9px;font-size:9px;line-height:1.55;color:#667085}
.student-math-row{display:flex;align-items:stretch;gap:6px;min-width:0}.student-math-row>input{flex:1;min-width:0}.student-math-btn{min-width:48px}.student-subanswer .student-math-row input{height:40px;border:1px solid #cfd7e3;border-radius:8px;padding:0 10px;box-sizing:border-box;width:100%}
.student-more-btn{display:block;margin:10px auto 0;border:0;background:transparent;color:#475467;font-size:11px;font-weight:700;cursor:pointer;padding:7px 16px}.student-more-btn:hover{color:#233c68}
.student-history-card[hidden],.student-exam-card[hidden]{display:none!important}.legacy-card{cursor:default}
.student-chart-card{background:#fff;border:1px solid #e1e6ee;border-radius:14px;padding:14px 14px 10px;overflow:hidden}.student-chart-legend{display:flex;justify-content:flex-end;gap:14px;font-size:10px;color:#667085;margin-bottom:4px}.student-chart-legend span{display:flex;align-items:center;gap:5px}.student-chart-legend i{display:block;width:18px;height:3px;border-radius:2px}.legend-student i{background:#233c68}.legend-average i{background:#98a2b3}
.student-chart-scroll{overflow-x:auto;overflow-y:hidden;padding-bottom:2px}.student-chart-scroll svg{display:block;min-width:100%}.chart-grid{stroke:#edf0f4;stroke-width:1}.chart-axis-text,.chart-x-text{fill:#98a2b3;font-size:9px}.chart-line{fill:none;stroke-width:2.5;stroke-linejoin:round;stroke-linecap:round}.chart-line-student{stroke:#233c68}.chart-line-average{stroke:#98a2b3;stroke-dasharray:5 4}.chart-dot-student{fill:#233c68;stroke:#fff;stroke-width:2}.chart-dot-average{fill:#98a2b3;stroke:#fff;stroke-width:2}.chart-value{font-size:9px;font-weight:700}.chart-value-student{fill:#233c68}.chart-value-average{fill:#667085}.chart-point-group{cursor:pointer}.student-chart-note{font-size:9px;color:#98a2b3;margin:5px 2px 0}

@media(max-width:1100px){.exam-basic-grid-five{grid-template-columns:1fr 1fr 1fr}.exam-unit-field{grid-column:auto}.exam-summary-six{grid-template-columns:1fr 1fr 1fr}.exam-summary-six .wide{grid-column:auto}}
@media(max-width:700px){.exam-basic-grid-five{grid-template-columns:1fr}.exam-summary-six{grid-template-columns:1fr 1fr}.exam-summary-six .wide{grid-column:1/-1}.exam-open-setting{align-items:stretch;flex-direction:column;gap:6px}.exam-open-setting .field{width:100%}.math-palette{right:10px;bottom:10px;width:calc(100vw - 20px);box-sizing:border-box}.math-palette-grid{grid-template-columns:repeat(4,1fr)}.student-subanswer{grid-template-columns:34px minmax(0,1fr) 42px}.student-chart-card{padding-left:8px;padding-right:8px}}


/* ===== v5.4.5 학사일정 / 대시보드 시험일정 ===== */
.academic-layout{
    display:grid;
    grid-template-columns:minmax(560px,1.25fr) minmax(420px,.9fr);
    gap:18px;
    align-items:start;
}
.academic-school-panel,.academic-mock-panel{min-width:0}
.academic-school-list{display:flex;flex-wrap:wrap;gap:7px;margin:12px 0 16px}
.academic-school-chip{
    display:flex;align-items:center;gap:7px;padding:8px 10px;border:1px solid #e0e6ee;
    border-radius:9px;background:#f8fafc;color:#344054;font-size:11px
}
.academic-school-chip span{font-size:9px;color:#667085}
.academic-school-chip.active{background:#233c68;color:#fff;border-color:#233c68}
.academic-school-chip.active span{color:#d9e2f0}
.academic-form{border-top:1px solid var(--line);padding-top:14px;margin-top:4px}
.academic-form-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}
.academic-form-title strong{font-size:15px;color:#233c68}.academic-form-title span{font-size:10px;color:#667085}
.academic-basic-grid{display:grid;grid-template-columns:100px 160px 1fr 1fr;gap:10px}
.academic-subject-title{margin:14px 0 8px;font-size:11px;font-weight:800;color:#475467}
.academic-subject-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.academic-form-actions{margin-top:13px}
.academic-saved-list{margin-top:20px;border-top:1px solid var(--line);padding-top:14px}
.academic-saved-list h4{margin:0 0 8px;font-size:12px;color:#344054}
.academic-saved-row,.academic-mock-row{
    display:flex;align-items:center;gap:10px;padding:11px 0;border-bottom:1px solid var(--line)
}
.academic-saved-main{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1}
.academic-saved-main strong{font-size:12px;color:#344054}.academic-saved-main span{font-size:10px;color:#667085}
.academic-saved-main small{font-size:9px;color:#7b8492;line-height:1.55;white-space:normal}
.academic-row-actions{display:flex;align-items:center;gap:5px;white-space:nowrap}.academic-row-actions form{margin:0}
.academic-none{padding:18px 4px}
.mock-date-grid{display:grid;grid-template-columns:90px 80px 80px 100px;gap:8px;margin-bottom:10px}
.mock-form>.field{margin-top:9px}
.academic-mock-list{margin-top:18px;border-top:1px solid var(--line);padding-top:4px}
.mock-date-badge{width:48px;height:48px;border-radius:10px;background:#eef2f7;display:flex;flex-direction:column;align-items:center;justify-content:center;flex:none}
.mock-date-badge strong{font-size:13px;color:#233c68}.mock-date-badge span{font-size:8px;color:#667085;margin-top:2px}

.dashboard-exam-section{margin-top:20px}
.dashboard-exam-head{margin-bottom:10px}
.dashboard-exam-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 12px}
.dash-exam-item{display:flex;align-items:center;gap:11px;padding:10px 11px;border:1px solid #e5e9ef;border-radius:10px;background:#fbfcfd;min-width:0}
.dash-exam-item.mock{background:#fcfbff}
.dash-exam-dday{width:58px;min-height:42px;display:flex;align-items:center;justify-content:center;flex:none;border-radius:9px;background:#eef4ff;color:#3538cd;font-size:12px;font-weight:900}
.dash-exam-dday.today{background:#fff1f0;color:#b42318}
.dash-exam-body{min-width:0;flex:1}.dash-exam-title{display:flex;align-items:center;gap:7px;min-width:0}
.dash-exam-title strong{font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dash-exam-kind{font-size:9px;font-weight:800;padding:3px 6px;border-radius:6px;background:#eef2f6;color:#475467;flex:none}
.dash-exam-item.mock .dash-exam-kind{background:#f2eefe;color:#6941c6}
.dash-exam-date{font-size:10px;color:#667085;margin-left:auto;white-space:nowrap}
.dash-exam-detail{font-size:9px;color:#7b8492;margin-top:4px;line-height:1.45;white-space:normal}
.dash-exam-empty{grid-column:1/-1;padding:26px 8px!important}

@media(max-width:1200px){
    .academic-layout{grid-template-columns:1fr}
    .academic-basic-grid{grid-template-columns:110px 170px 1fr 1fr}
}
@media(max-width:900px){
    .academic-basic-grid{grid-template-columns:1fr 1fr}
    .academic-subject-grid{grid-template-columns:1fr 1fr}
    .dashboard-exam-grid{grid-template-columns:1fr}
}
@media(max-width:600px){
    .academic-basic-grid,.academic-subject-grid{grid-template-columns:1fr}
    .mock-date-grid{grid-template-columns:1fr 1fr}
    .academic-saved-row,.academic-mock-row{align-items:flex-start;flex-wrap:wrap}
    .academic-row-actions{width:100%;justify-content:flex-end}
    .dash-exam-title{flex-wrap:wrap}.dash-exam-date{margin-left:0}
}


/* ===== v5.4.7 모의고사 다중학년 / 대시보드 학교별 담당학생 ===== */
.mock-date-grid{grid-template-columns:90px 80px 80px}
.mock-grade-field{margin-top:9px}
.mock-grade-field>span{display:flex;align-items:center;gap:7px}
.mock-grade-field>span small{font-size:8px;font-weight:500;color:#98a2b3}
.mock-grade-options{display:flex;gap:7px;flex-wrap:wrap;margin-top:6px}
.mock-grade-check{
    display:flex;align-items:center;gap:6px;min-width:74px;padding:8px 11px;
    border:1px solid #dfe5ec;border-radius:9px;background:#f8fafc;
    color:#344054;font-size:11px;font-weight:700;cursor:pointer
}
.mock-grade-check input{width:15px;height:15px;margin:0;accent-color:#233c68}
.mock-grade-check:has(input:checked){border-color:#9fb3d6;background:#eef4ff;color:#233c68}

.dash-exam-student-details{min-width:0}
.dash-exam-student-details>summary{list-style:none;cursor:pointer}
.dash-exam-student-details>summary::-webkit-details-marker{display:none}
.dash-exam-click-title{text-decoration:underline;text-decoration-color:#c6d2e5;text-underline-offset:3px}
.dash-exam-student-details>summary:hover .dash-exam-click-title{color:#233c68;text-decoration-color:#233c68}
.dash-exam-expand{
    flex:none;font-size:9px;font-weight:700;color:#667085;padding:3px 6px;border-radius:6px;
    background:#f0f3f7;white-space:nowrap
}
.dash-exam-student-details[open] .dash-exam-expand{background:#e7eef9;color:#233c68}
.dash-school-student-groups{
    margin-top:8px;padding-top:8px;border-top:1px dashed #dfe5ec;display:flex;flex-direction:column;gap:7px
}
.dash-school-class-group{display:grid;grid-template-columns:92px minmax(0,1fr);gap:8px;align-items:start}
.dash-school-class-head{display:flex;align-items:center;gap:5px;min-height:26px}
.dash-school-class-head strong{font-size:10px;color:#344054}
.dash-school-class-head span{font-size:8px;color:#667085}
.dash-school-student-list{display:flex;flex-wrap:wrap;gap:5px}
.dash-school-student{
    display:inline-flex;align-items:center;min-height:26px;padding:4px 8px;border-radius:7px;
    background:#f5f7fa;border:1px solid #e8ebf0;font-size:10px;color:#344054
}
.dash-school-no-student{font-size:9px;padding:3px 0}

@media(max-width:600px){
    .mock-date-grid{grid-template-columns:1fr 1fr 1fr}
    .dash-exam-expand{width:100%;margin-top:2px}
    .dash-school-class-group{grid-template-columns:1fr}
}

/* ===== v5.5.2 학생 시험 미응답 제출 / 모바일 학생화면 개선 ===== */
@media(max-width:640px){
    .student-portal-body{background:#f2f4f7;-webkit-text-size-adjust:100%}
    .student-topbar{height:56px;padding:0 10px;gap:8px}
    .student-brand{gap:7px;min-width:0}.student-brand img{height:28px}.student-brand span{font-size:13px;white-space:nowrap}
    .student-user{gap:7px}.student-user span{display:block;max-width:108px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px}.student-user span b{font-size:11px}.student-user button{min-height:36px;padding:7px 10px;font-size:10px}
    .student-shell{width:calc(100% - 16px);margin:12px auto 34px}
    .student-welcome{margin:4px 2px 16px;align-items:flex-end}.student-welcome h1{font-size:20px}.student-welcome small{font-size:10px}.student-password-link{font-size:10px;padding:7px 0}
    .student-section{margin-top:18px}.student-section-title{margin:0 2px 8px}.student-section-title h2{font-size:15px}.student-section-title span{height:21px;min-width:21px}
    .student-exam-list,.student-history-list{gap:8px}
    .student-exam-card,.student-history-card{border-radius:12px;padding:13px 13px;gap:10px;align-items:stretch}
    .student-exam-card{flex-direction:column}.student-exam-card .button{width:100%;min-height:42px;display:flex;align-items:center;justify-content:center;box-sizing:border-box;font-size:12px}
    .student-exam-card small,.student-history-card small{font-size:10px}.student-exam-card strong,.student-history-card strong{font-size:14px;line-height:1.35}.student-exam-card span,.student-history-card span{font-size:10px;line-height:1.5}
    .student-history-card{align-items:center}.student-history-card>div:first-child{flex:1}.student-score{font-size:21px}
    .student-empty{padding:26px 12px;font-size:11px}
    .student-chart-card{border-radius:12px;padding:10px 8px 8px}.student-chart-legend{font-size:9px;gap:10px}.student-chart-note{font-size:9px;line-height:1.5}

    .student-exam-head{margin:3px 2px 12px}.student-exam-head h1{font-size:20px;line-height:1.35;margin:3px 0 4px}.student-exam-head small,.student-exam-head p{font-size:10px;line-height:1.45}
    .student-question-list{gap:8px;padding-bottom:94px}.student-question-card{padding:13px 12px;border-radius:12px}
    .student-q-header{margin-bottom:11px}.student-q-header strong{font-size:16px}.student-q-header span{font-size:10px;text-align:right}
    .student-choice-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:5px}.student-choice-grid span{height:46px;border-radius:9px;font-size:19px}
    .student-choice-help{font-size:9px;line-height:1.45}
    .student-short-answer{height:48px;font-size:16px;padding:0 11px}.student-math-row{gap:5px}.student-math-btn{min-width:50px;font-size:10px}
    .student-subanswer-list{gap:9px}.student-subanswer{grid-template-columns:34px minmax(0,1fr) 38px;gap:6px}.student-subanswer b{font-size:11px}.student-subanswer small{font-size:9px}.student-subanswer .student-math-row input{height:46px;font-size:15px}
    .student-submitbar{position:fixed;left:0;right:0;bottom:0;z-index:30;padding:8px 10px calc(8px + env(safe-area-inset-bottom));background:rgba(244,246,249,.97);border-top:1px solid #e3e7ed;backdrop-filter:blur(8px)}
    .student-submitbar .button{width:100%;height:48px;font-size:13px;border-radius:10px}

    .student-result-hero{border-radius:14px;padding:20px 14px}.result-score strong{font-size:44px}.student-result-list{gap:7px}
    .student-result-row{grid-template-columns:1fr;padding:12px 12px;gap:7px;border-radius:11px}.student-result-q{flex-direction:row;justify-content:space-between;align-items:center}.student-result-answer{flex-direction:column;gap:4px;font-size:11px}.student-result-point{grid-column:auto;text-align:left}.student-result-subparts>div{grid-template-columns:34px minmax(0,1fr);gap:4px 8px}.student-result-subparts>div>*:nth-child(n+3){grid-column:2}

    .student-login-card{margin:22px auto;padding:20px 16px;border-radius:14px}.student-login-card h1{font-size:20px}.student-login-form input{height:46px;font-size:16px}.student-login-form .button{height:48px}
    .math-palette{left:8px;right:8px;bottom:calc(8px + env(safe-area-inset-bottom));width:auto}.math-palette-grid{grid-template-columns:repeat(4,1fr)}.math-palette-grid button{height:40px}
}

@media(max-width:380px){
    .student-brand span{display:none}.student-user span{max-width:118px}
    .student-shell{width:calc(100% - 12px)}
    .student-question-card{padding-left:10px;padding-right:10px}
    .student-choice-grid{gap:4px}.student-choice-grid span{height:44px;font-size:18px}
}

/* ===== v5.5.5 기출분석 통합 ===== */
.analysis-page{display:flex;flex-direction:column;gap:14px}.analysis-page .card{margin:0}
.analysis-import-card{display:flex;flex-direction:column;gap:12px}.analysis-import-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.analysis-import-head h2{margin:0 0 4px;font-size:17px}.analysis-import-head p{margin:0;color:#667085;font-size:11px}.analysis-upload-form{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.analysis-upload-form input[type=file]{min-width:280px}.help-text{font-size:10px;color:#667085;line-height:1.6}.danger-text{color:#b42318!important}
.analysis-filter-grid{display:grid;grid-template-columns:minmax(220px,1.5fr) repeat(3,minmax(130px,1fr)) auto auto;gap:8px;align-items:center}.analysis-filter-grid input,.analysis-filter-grid select{width:100%;height:38px}
.analysis-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.analysis-exam-card{display:flex;flex-direction:column;gap:9px;padding:15px 16px;background:#fff;border:1px solid #e1e6ee;border-radius:13px;color:#344054;transition:.12s ease}.analysis-exam-card:hover{border-color:#b9c6db;box-shadow:0 5px 16px rgba(16,24,40,.06)}.analysis-exam-main h3{margin:2px 0 5px;font-size:15px;color:#233c68}.analysis-eyebrow{font-size:10px;color:#667085}.analysis-scope{margin:0;font-size:11px;color:#475467;line-height:1.5}.analysis-exam-meta{display:flex;gap:8px}.analysis-exam-meta span,.analysis-chip-row span{display:inline-flex;align-items:center;padding:4px 7px;background:#f5f7fa;border:1px solid #e8ebf0;border-radius:7px;font-size:9px;color:#475467}.analysis-chip-row{display:flex;gap:6px;flex-wrap:wrap}.analysis-top-units{font-size:9px;color:#667085;line-height:1.5}.analysis-top-units b{color:#344054}.empty-state{color:#98a2b3;text-align:center;padding:24px}
.page-actions{display:flex;justify-content:flex-start}.analysis-hero h2{margin:5px 0 10px;font-size:20px}.analysis-hero-stats{display:flex;gap:7px;margin-bottom:12px}.analysis-hero-stats span{padding:5px 8px;border-radius:7px;background:#f5f7fa;color:#475467;font-size:10px}.analysis-scope-box{display:flex;flex-direction:column;gap:4px;padding:11px 12px;border-left:4px solid #233c68;background:#f7f9fc;border-radius:8px}.analysis-scope-box small{font-size:9px;color:#667085}.analysis-scope-box strong{font-size:12px;color:#344054}.analysis-type-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.analysis-type-grid>div{display:flex;flex-direction:column;gap:3px;padding:12px;border-radius:10px;background:#f7f9fc;border:1px solid #e7ebf1}.analysis-type-grid small{font-size:9px;color:#667085}.analysis-type-grid b{font-size:16px;color:#233c68}.analysis-type-grid span{font-size:10px;color:#475467}.analysis-table{min-width:680px}.analysis-table th,.analysis-table td{font-size:10px}

.student-page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin:4px 2px 14px}.student-page-head small{font-size:10px;color:#667085}.student-page-head h1{margin:3px 0 0;font-size:21px;color:#233c68}.student-analysis-list{display:flex;flex-direction:column;gap:8px}.student-analysis-card{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 15px;background:#fff;border:1px solid #e1e6ee;border-radius:13px;color:#344054}.student-analysis-card>div:first-child{display:flex;min-width:0;flex:1;flex-direction:column;gap:3px}.student-analysis-card small{font-size:9px;color:#98a2b3}.student-analysis-card strong{font-size:13px;color:#233c68}.student-analysis-card span{font-size:10px;color:#667085;line-height:1.45}.student-analysis-meta{display:flex;flex-direction:column;align-items:flex-end;gap:2px;white-space:nowrap}.student-analysis-meta b{font-size:12px;color:#233c68}.student-analysis-meta span{font-size:9px}.student-more-btn.as-link{text-decoration:none;width:max-content}
.student-analysis-scope{display:flex;flex-direction:column;gap:5px;padding:11px 12px;border-radius:10px;background:#f7f9fc;border-left:4px solid #233c68}.student-analysis-scope small{font-size:9px;color:#667085}.student-analysis-scope strong{font-size:12px;color:#344054}.student-analysis-types{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.student-analysis-types>div{display:flex;flex-direction:column;gap:2px;padding:11px;background:#fff;border:1px solid #e1e6ee;border-radius:10px}.student-analysis-types small{font-size:9px;color:#667085}.student-analysis-types b{font-size:15px;color:#233c68}.student-analysis-types span{font-size:9px;color:#667085}.student-analysis-units,.student-analysis-question-list{display:flex;flex-direction:column;gap:7px}.student-analysis-units>div,.student-analysis-question-list>div{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 12px;background:#fff;border:1px solid #e1e6ee;border-radius:10px}.student-analysis-units>div>span{display:flex;flex-direction:column;gap:2px;min-width:0}.student-analysis-units b,.student-analysis-question-list b{font-size:11px;color:#344054}.student-analysis-units small{font-size:8px;color:#98a2b3}.student-analysis-units strong,.student-analysis-question-list span{font-size:9px;color:#667085;text-align:right}.student-analysis-question-list>div{justify-content:flex-start}.student-analysis-question-list b{width:42px;flex:none}.student-analysis-question-list span{text-align:left}

@media(max-width:980px){.analysis-list{grid-template-columns:1fr}.analysis-filter-grid{grid-template-columns:1fr 1fr 1fr}.analysis-filter-grid input{grid-column:1/-1}.analysis-type-grid{grid-template-columns:1fr 1fr 1fr}}
@media(max-width:640px){.analysis-import-head{flex-direction:column}.analysis-upload-form{align-items:stretch}.analysis-upload-form input[type=file],.analysis-upload-form .button{width:100%;min-width:0}.analysis-filter-grid{grid-template-columns:1fr 1fr}.analysis-filter-grid input{grid-column:1/-1}.analysis-filter-grid .button{width:100%}.analysis-type-grid{grid-template-columns:1fr}.student-page-head{align-items:flex-start}.student-page-head h1{font-size:19px}.student-analysis-card{padding:12px;align-items:flex-start}.student-analysis-meta{padding-top:16px}.student-analysis-types{grid-template-columns:repeat(3,1fr);gap:6px}.student-analysis-types>div{padding:9px 7px}.student-analysis-types b{font-size:13px}.student-analysis-units>div{align-items:flex-start}.student-analysis-units strong{max-width:110px}.student-analysis-question-list>div{align-items:flex-start}}

/* v5.5.6 기출분석 통합 DB 편집 */
.inline-form{display:flex;gap:8px;align-items:end;flex-wrap:wrap}
.link-button{border:0;background:transparent;padding:0;cursor:pointer;font:inherit}
.button.danger{background:#fff1f0;color:#b42318;border-color:#f2b8b5}
.analysis-page .form-grid label{display:flex;flex-direction:column;gap:6px}
.analysis-page .form-grid .full{grid-column:1/-1}
@media(max-width:700px){.analysis-page .form-grid{grid-template-columns:1fr}.inline-form>*{width:100%}}


/* ─────────────────────────────────────────
   NAS v5.5.9 전체 화면 구성
   ───────────────────────────────────────── */
.ui-sidebar-compact .sidebar{width:190px}
.ui-sidebar-compact .main{margin-left:190px;width:calc(100% - 190px)}
.ui-sidebar-wide .sidebar{width:260px}
.ui-sidebar-wide .main{margin-left:260px;width:calc(100% - 260px)}
.ui-content-normal .content{max-width:1280px;margin:0 auto}
.ui-content-wide .content{max-width:1600px;margin:0 auto}
.ui-content-full .content{max-width:none}
.layout-config-toolbar{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;margin-bottom:16px}
.layout-config-toolbar h2{margin:0 0 5px}
.layout-config-section{margin-bottom:16px}
.layout-config-section h3{margin-bottom:4px}.layout-config-section h4{margin:12px 0 8px}
.layout-config-section>p,.layout-config-head p{font-size:12px;color:var(--muted);margin:0 0 13px}
.layout-global-grid{grid-template-columns:repeat(2,minmax(180px,280px))}
.layout-global-grid label,.layout-extra-field{display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:700;color:#475467}
.layout-sort-list{display:flex;flex-direction:column;gap:7px}
.layout-sort-row{display:grid;grid-template-columns:28px 64px minmax(140px,1fr);gap:9px;align-items:center;border:1px solid #e0e5ec;border-radius:10px;padding:8px 10px;background:#fff;cursor:grab}
.layout-menu-row{grid-template-columns:28px 64px minmax(140px,1fr) minmax(120px,180px)}
.layout-sort-row.dragging{opacity:.45;border-style:dashed}
.layout-drag{font-size:21px;color:#98a2b3;text-align:center;user-select:none;cursor:grab}
.layout-check{display:flex!important;flex-direction:row!important;align-items:center!important;gap:5px!important;margin:0!important;font-size:11px!important;font-weight:700;color:#475467;white-space:nowrap}
.layout-check input{width:auto!important;margin:0}
.layout-sort-row input,.layout-sort-row select{width:100%;min-width:0}
.layout-config-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.layout-extra-field{margin-top:13px}
.layout-save-bottom{position:sticky;bottom:12px;display:flex;justify-content:flex-end;pointer-events:none;margin-top:18px}
.layout-save-bottom .button{pointer-events:auto;box-shadow:0 5px 18px rgba(16,24,40,.18)}
.dashboard-config-title{font-size:12px;font-weight:800;color:#667085;margin:3px 2px 8px}
.student-analysis-basic{display:flex;flex-direction:column;gap:4px;padding:11px 12px;border-radius:10px;background:#f7f9fc;border:1px solid #e1e6ee}
.student-analysis-basic b{font-size:13px;color:#233c68}.student-analysis-basic span{font-size:9px;color:#667085;line-height:1.5}

@media(max-width:1000px){
  .ui-sidebar-compact .main,.ui-sidebar-wide .main{margin-left:0;width:100%}
}
@media(max-width:900px){
  .layout-config-columns{grid-template-columns:1fr}
}
@media(max-width:620px){
  .layout-config-toolbar{flex-direction:column}
  .layout-config-toolbar .inline{width:100%}
  .layout-config-toolbar .button{flex:1}
  .layout-global-grid{grid-template-columns:1fr}
  .layout-menu-row,.layout-sort-row{grid-template-columns:24px 56px minmax(0,1fr)}
  .layout-menu-row select{grid-column:3}
}


/* ─────────────────────────────────────────
   NAS v5.5.14 교재비 수납
   ───────────────────────────────────────── */
.fee-page{display:flex;flex-direction:column;gap:14px}
.fee-class-tabs{display:flex;gap:7px;flex-wrap:wrap}
.fee-class-tabs a{display:inline-flex;align-items:center;padding:8px 13px;border:1px solid #d9e0ea;border-radius:999px;background:#fff;color:#475467;font-size:12px;font-weight:700}
.fee-class-tabs a.active{background:#233c68;color:#fff;border-color:#233c68}
.fee-top-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.25fr);gap:14px}
.fee-section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:12px}
.fee-section-head h3{margin:0 0 4px}
.fee-section-head p{margin:0;color:#667085;font-size:11px;line-height:1.5}
.fee-account-form,.fee-book-add-form{display:grid;grid-template-columns:minmax(120px,.6fr) minmax(220px,1.2fr) auto;gap:9px;align-items:end}
.fee-book-add-form{grid-template-columns:minmax(250px,1.5fr) minmax(150px,.6fr) auto}
.fee-account-form label,.fee-book-add-form label{display:flex;flex-direction:column;gap:5px;font-size:11px;font-weight:700;color:#475467}
.fee-money-input{position:relative;display:flex;align-items:center}
.fee-money-input input{width:100%;padding-right:32px}
.fee-money-input span{position:absolute;right:10px;font-size:11px;color:#667085;pointer-events:none}
.fee-money-input.compact{min-width:130px}
.fee-summary-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.fee-stat{display:flex;flex-direction:column;gap:5px;margin:0!important}
.fee-stat span{font-size:11px;color:#667085}.fee-stat strong{font-size:20px;color:#1d2939}
.fee-stat.warn strong{color:#b42318}
.fee-book-list{display:flex;flex-direction:column;gap:8px}
.fee-book-row{display:flex;gap:8px;align-items:center;padding:8px;border:1px solid #e3e8ef;border-radius:10px;background:#fbfcfe}
.fee-book-edit{display:grid;grid-template-columns:minmax(250px,1fr) 150px auto auto;gap:8px;align-items:center;flex:1;min-width:0}
.fee-book-count{font-size:11px;color:#667085;white-space:nowrap}
.fee-table-scroll{width:100%;overflow:auto;border:1px solid #e2e7ee;border-radius:11px}
.fee-table{min-width:820px;width:100%;border-collapse:separate;border-spacing:0}
.fee-table th,.fee-table td{padding:9px 10px;border-bottom:1px solid #edf0f4;border-right:1px solid #edf0f4;vertical-align:middle}
.fee-table th:last-child,.fee-table td:last-child{border-right:0}
.fee-table tbody tr:last-child td{border-bottom:0}
.fee-table thead th{position:sticky;top:0;background:#f7f9fc;z-index:2;color:#475467;font-size:11px;text-align:center}
.fee-name-col{width:130px;min-width:130px;text-align:left!important}
.fee-guardian-col{width:190px;min-width:190px;text-align:left!important}
.fee-book-col{min-width:155px;max-width:220px}
.fee-book-col span{display:block;color:#1d2939;font-weight:800;line-height:1.35}.fee-book-col small{display:block;margin-top:3px;color:#667085}
.fee-student{white-space:nowrap}.fee-student strong{display:block;font-size:12px}.fee-student small{display:block;font-size:9px;color:#98a2b3;margin-top:3px}
.fee-guardian-input{width:100%;min-width:150px}
.fee-check-cell{text-align:center}
.fee-check-label{display:inline-flex!important;flex-direction:row!important;align-items:center!important;justify-content:center;gap:6px!important;margin:0!important;padding:6px 9px;border-radius:999px;background:#fff0ef;color:#b42318;font-size:10px!important;font-weight:800;white-space:nowrap}
.fee-check-label.paid{background:#eaf8ef;color:#067647}
.fee-check-label input{width:auto!important;margin:0}
.fee-paid-at{display:block;margin-top:4px;font-size:8px;color:#98a2b3}
.fee-savebar{position:sticky;bottom:10px;margin-top:12px;padding:10px 12px;border:1px solid #dce3ec;background:rgba(255,255,255,.96);backdrop-filter:blur(7px);border-radius:11px;display:flex;justify-content:space-between;align-items:center;gap:12px;box-shadow:0 5px 18px rgba(16,24,40,.08)}
.button.danger{background:#fff1f0!important;color:#b42318!important;border-color:#f4c7c3!important}
@media(max-width:900px){
  .fee-top-grid{grid-template-columns:1fr}
  .fee-summary-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
  .fee-account-form,.fee-book-add-form{grid-template-columns:1fr 1fr}
  .fee-account-form .button,.fee-book-add-form .button{grid-column:1/-1}
}
@media(max-width:640px){
  .fee-summary-cards{grid-template-columns:1fr 1fr}
  .fee-account-form,.fee-book-add-form{grid-template-columns:1fr}
  .fee-book-row{align-items:stretch;flex-direction:column}
  .fee-book-edit{grid-template-columns:1fr}
  .fee-savebar{align-items:stretch;flex-direction:column}
  .fee-savebar .button{width:100%}
}


/* ===== v5.5.18 프린트 제출현황 ===== */
.print-page{display:flex;flex-direction:column;gap:14px}
.print-add-card{display:flex;align-items:flex-end;justify-content:space-between;gap:16px}.print-add-card h2{margin:0 0 5px}.print-add-card p{margin:0}.print-add-form{display:flex;gap:8px;align-items:center;min-width:min(520px,100%)}.print-add-form input[type=text]{flex:1;min-width:220px}
.print-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.print-summary-card{display:flex;flex-direction:column;gap:7px}.print-summary-card small{color:#667085}.print-summary-card strong{font-size:22px}.print-green{color:#067647}.print-red{color:#b42318}.print-amber{color:#b54708}
.print-matrix-card{padding:0;overflow:hidden}.print-matrix-help{padding:13px 15px;background:#f8fafc;border-bottom:1px solid var(--line);font-size:11px;color:#667085;line-height:1.55}.print-matrix-wrap{overflow:auto;max-height:70vh}.print-matrix-table{min-width:max-content}.print-matrix-table th,.print-matrix-table td{text-align:center;vertical-align:middle;min-width:150px}.print-matrix-table th{top:0;z-index:3}.print-matrix-table th>span{display:block;max-width:170px;white-space:normal;line-height:1.35}.print-matrix-table .print-student-col{position:sticky;left:0;z-index:2;min-width:170px;max-width:170px;text-align:left;background:#fff}.print-matrix-table th.print-student-col{z-index:4;background:#fafbfc}.print-matrix-table td.print-student-col strong{display:block;font-size:12px}.print-matrix-table td.print-student-col small{display:block;margin-top:2px;font-size:9px;color:#98a2b3}.print-mini-summary{display:flex;gap:4px;flex-wrap:wrap;margin-top:5px}.print-mini-summary span{padding:2px 5px;border-radius:5px;background:#f2f4f7;color:#667085;font-size:8px}.print-mini-summary .miss{background:#fef3f2;color:#b42318}.print-mini-summary .revise{background:#fffaeb;color:#b54708}
.print-status-select{width:116px;font-size:11px;font-weight:800;text-align:center;border-width:1px}.print-status-select.status-제출{background:#ecfdf3;border-color:#abefc6;color:#067647}.print-status-select.status-미제출{background:#fef3f2;border-color:#fecdca;color:#b42318}.print-status-select.status-첨삭{background:#fffaeb;border-color:#fedf89;color:#b54708}.print-status-select.status-미확인{background:#f2f4f7;border-color:#e4e7ec;color:#667085}.print-savebar{position:sticky;bottom:0;display:flex;justify-content:flex-end;padding:12px 15px;background:rgba(255,255,255,.96);border-top:1px solid var(--line)}
.print-manage-card h3{margin-bottom:4px}.print-manage-card>p{font-size:11px;margin:0 0 12px}.print-manage-list{display:flex;flex-direction:column;gap:7px}.print-manage-row{display:flex;align-items:center;gap:7px;padding:8px 9px;border:1px solid #e5e9ef;border-radius:9px;background:#fafbfc}.print-manage-row form{margin:0}.print-edit-form{display:flex;align-items:center;gap:7px;flex:1;min-width:0}.print-edit-form input[name=title]{flex:1;min-width:180px}.print-order-input{width:72px}.print-manage-row.archived>strong{flex:1;color:#667085}.print-archive-details{margin-top:13px;border-top:1px solid var(--line);padding-top:11px}.print-archive-details summary{cursor:pointer;font-size:11px;font-weight:800;color:#475467;margin-bottom:9px}
.student-print-summary{display:flex;gap:6px;flex-wrap:wrap;margin:0 0 8px}.student-print-summary span{display:inline-flex;align-items:center;gap:4px;padding:6px 8px;border-radius:8px;font-size:10px;background:#f2f4f7;color:#667085}.student-print-summary b{font-size:12px}.student-print-summary .submitted{background:#ecfdf3;color:#067647}.student-print-summary .missing{background:#fef3f2;color:#b42318}.student-print-summary .revision{background:#fffaeb;color:#b54708}.student-print-summary.large span{padding:9px 11px;font-size:11px}.student-print-list{display:flex;flex-direction:column;gap:7px}.student-print-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 13px;background:#fff;border:1px solid #e1e6ee;border-radius:11px}.student-print-row>div{display:flex;flex-direction:column;gap:2px;min-width:0}.student-print-row small{font-size:8px;color:#98a2b3}.student-print-row strong{font-size:12px;color:#344054;line-height:1.4}.student-print-row.archived{opacity:.78}.student-print-status{flex:none;display:inline-flex;align-items:center;justify-content:center;min-width:58px;padding:5px 7px;border-radius:7px;font-size:9px;font-weight:900}.student-print-status.status-제출{background:#ecfdf3;color:#067647}.student-print-status.status-미제출{background:#fef3f2;color:#b42318}.student-print-status.status-첨삭{background:#fffaeb;color:#b54708}.student-print-status.status-미확인{background:#f2f4f7;color:#667085}.student-print-archive summary{cursor:pointer;font-size:11px;font-weight:800;color:#475467;margin-bottom:9px}
@media(max-width:900px){.print-add-card{align-items:stretch;flex-direction:column}.print-add-form{min-width:0;width:100%}.print-summary-grid{grid-template-columns:repeat(2,1fr)}.print-manage-row{align-items:stretch;flex-wrap:wrap}.print-edit-form{width:100%;flex-basis:100%}}
@media(max-width:620px){.print-add-form{flex-direction:column;align-items:stretch}.print-add-form input[type=text],.print-add-form .button{width:100%;min-width:0}.print-summary-card strong{font-size:19px}.print-matrix-wrap{max-height:none}.print-matrix-table th,.print-matrix-table td{min-width:126px;padding:8px 6px}.print-matrix-table .print-student-col{min-width:132px;max-width:132px}.print-status-select{width:104px;font-size:10px;padding:8px 6px}.print-edit-form{flex-wrap:wrap}.print-edit-form input[name=title]{min-width:0;flex:1 1 180px}.student-print-row{padding:11px}.student-print-summary{gap:5px}.student-print-summary span{flex:1;justify-content:center;min-width:calc(50% - 3px)}}


/* ===== v5.5.19 학생 홈 프린트 제출현황 간소화 ===== */
.student-print-home-link{
  display:block;
  color:inherit;
  text-decoration:none;
  background:#fff;
  border:1px solid #e1e6ee;
  border-radius:13px;
  padding:12px 13px 10px;
  transition:border-color .12s ease, background .12s ease;
}
.student-print-home-link:hover{
  border-color:#c3cfdf;
  background:#fcfdff;
}
.student-print-home-summary{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
}
.student-print-home-summary>div{
  min-width:0;
  min-height:64px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  border-radius:10px;
  padding:10px 8px;
}
.student-print-home-summary span{
  font-size:11px;
  font-weight:800;
}
.student-print-home-summary b{
  font-size:20px;
  line-height:1;
}
.student-print-home-summary .submitted{background:#ecfdf3;color:#067647}
.student-print-home-summary .missing{background:#fef3f2;color:#b42318}
.student-print-home-summary .revision{background:#fffaeb;color:#b54708}
.student-print-home-more{
  display:block;
  margin-top:8px;
  text-align:right;
  font-size:9px;
  font-weight:700;
  color:#667085;
}
.student-print-home-link.empty-link{
  padding-top:0;
}
.student-print-home-link.empty-link .student-empty{
  border:0;
  padding:22px 10px 12px;
}

@media(max-width:640px){
  .student-print-home-link{padding:10px}
  .student-print-home-summary{gap:6px}
  .student-print-home-summary>div{
    min-height:58px;
    padding:9px 5px;
    flex-direction:column;
    gap:4px;
  }
  .student-print-home-summary span{font-size:10px}
  .student-print-home-summary b{font-size:19px}
  .student-print-home-more{font-size:9px;margin-top:7px}
}


/* ===== v5.5.20 학생 홈 지난 시험 기록 간소화 / 상세화 ===== */
.student-history-compact-list{
  display:flex;
  flex-direction:column;
  gap:8px;
}
.student-history-compact-card{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:14px;
  min-width:0;
  padding:13px 14px;
  background:#fff;
  border:1px solid #e1e6ee;
  border-radius:12px;
  color:inherit;
  text-decoration:none;
}
.student-history-compact-card:hover{
  border-color:#c3cfdf;
  background:#fcfdff;
}
.student-history-compact-main{
  display:flex;
  flex-direction:column;
  gap:3px;
  min-width:0;
}
.student-history-compact-main small{
  font-size:9px;
  color:#98a2b3;
}
.student-history-compact-main strong{
  font-size:13px;
  color:#233c68;
  line-height:1.4;
  overflow-wrap:anywhere;
}
.student-history-compact-score{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:3px;
  white-space:nowrap;
}
.student-history-compact-score small{
  font-size:9px;
  color:#98a2b3;
}
.student-history-compact-score b{
  font-size:16px;
  color:#233c68;
}
.student-history-detail-link{
  text-align:right;
  width:100%;
}

.student-exam-history-detail{
  background:#fff;
  border:1px solid #e1e6ee;
  border-radius:14px;
  padding:16px;
}
.student-exam-history-detail-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
}
.student-exam-history-detail-head small{
  font-size:10px;
  color:#667085;
}
.student-exam-history-detail-head h2{
  margin:4px 0 0;
  font-size:18px;
  color:#233c68;
  line-height:1.4;
}
.student-exam-history-bigscore{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:4px;
  white-space:nowrap;
}
.student-exam-history-bigscore small{
  font-size:9px;
  color:#98a2b3;
}
.student-exam-history-bigscore b{
  font-size:22px;
  color:#233c68;
}
.student-exam-history-info{
  display:grid;
  grid-template-columns:150px 150px minmax(0,1fr);
  gap:8px;
  margin-top:14px;
}
.student-exam-history-info>div{
  display:flex;
  flex-direction:column;
  gap:4px;
  min-width:0;
  padding:11px 12px;
  background:#f7f9fc;
  border-radius:9px;
}
.student-exam-history-info small{
  font-size:9px;
  color:#667085;
}
.student-exam-history-info strong{
  font-size:12px;
  color:#344054;
  overflow-wrap:anywhere;
}
.student-exam-history-result-button{
  width:100%;
  margin-top:12px;
}
.student-exam-history-list{
  display:flex;
  flex-direction:column;
  gap:8px;
}
.student-exam-history-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:14px;
  min-width:0;
  padding:13px 14px;
  background:#fff;
  border:1px solid #e1e6ee;
  border-radius:12px;
  color:inherit;
  text-decoration:none;
}
.student-exam-history-row.selected{
  border-color:#9fb3d6;
  background:#f5f8fd;
}
.student-exam-history-row>div:first-child{
  display:flex;
  flex-direction:column;
  gap:3px;
  min-width:0;
}
.student-exam-history-row small{
  font-size:9px;
  color:#98a2b3;
}
.student-exam-history-row strong{
  font-size:13px;
  color:#233c68;
  overflow-wrap:anywhere;
}
.student-exam-history-row span{
  font-size:10px;
  color:#667085;
  line-height:1.45;
  overflow-wrap:anywhere;
}
.student-exam-history-row>div:last-child{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:3px;
  white-space:nowrap;
}
.student-exam-history-row>div:last-child b{
  font-size:15px;
  color:#233c68;
}

@media(max-width:640px){
  .student-history-compact-card{
    padding:12px;
    gap:10px;
  }
  .student-history-compact-main strong{font-size:13px}
  .student-history-compact-score b{font-size:15px}
  .student-exam-history-detail{padding:13px}
  .student-exam-history-detail-head{
    flex-direction:column;
    gap:10px;
  }
  .student-exam-history-bigscore{
    width:100%;
    align-items:flex-start;
  }
  .student-exam-history-info{
    grid-template-columns:1fr 1fr;
  }
  .student-exam-history-info>div:last-child{
    grid-column:1/-1;
  }
  .student-exam-history-row{
    padding:12px;
    gap:10px;
  }
}

@media(max-width:390px){
  .student-history-compact-card,
  .student-exam-history-row{
    grid-template-columns:1fr;
  }
  .student-history-compact-score,
  .student-exam-history-row>div:last-child{
    align-items:flex-start;
  }
}


/* ===== v5.5.22 반 보관 / 수업시간표 ===== */
.class-manage-top{
  display:grid;
  grid-template-columns:minmax(0,1fr) 300px;
  gap:16px;
  align-items:start;
}
.class-add-card{position:sticky;top:78px}
.class-manage-list{display:flex;flex-direction:column;gap:10px}
.class-manage-card{
  border:1px solid #e1e6ee;
  border-radius:12px;
  background:#fff;
  overflow:hidden;
}
.class-manage-card-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  padding:14px 15px;
}
.class-manage-name{
  display:flex;
  align-items:center;
  gap:9px;
  flex-wrap:wrap;
}
.class-manage-name strong{font-size:14px;color:#233c68}
.class-manage-name span{font-size:10px;color:#667085}
.class-schedule-summary{margin-top:5px;font-size:10px;color:#475467;line-height:1.55}
.class-manage-actions{display:flex;gap:7px;align-items:center;flex-wrap:wrap;justify-content:flex-end}
.class-manage-actions form{margin:0}
.class-manage-actions input{width:120px}
.class-schedule-editor{border-top:1px solid #edf0f4;background:#fafbfc}
.class-schedule-editor>summary{
  cursor:pointer;
  padding:10px 15px;
  font-size:11px;
  font-weight:800;
  color:#475467;
}
.class-schedule-editor[open]>summary{border-bottom:1px solid #edf0f4}
.class-schedule-editor form{padding:12px 14px 14px}
.class-schedule-days{
  display:grid;
  grid-template-columns:repeat(2,minmax(250px,1fr));
  gap:8px;
}
.class-schedule-day{
  display:grid;
  grid-template-columns:82px 1fr 1fr;
  gap:8px;
  align-items:end;
  padding:9px 10px;
  border:1px solid #e3e8ef;
  border-radius:9px;
  background:#fff;
}
.class-schedule-enable{
  display:flex!important;
  flex-direction:row!important;
  align-items:center;
  gap:6px;
  min-height:38px;
  margin:0!important;
}
.class-schedule-enable input{width:16px;height:16px;margin:0;accent-color:#4c648d}
.class-schedule-enable b{font-size:11px}
.class-schedule-day>label:not(.class-schedule-enable){
  display:flex;
  flex-direction:column;
  gap:4px;
  font-size:9px;
  color:#667085;
}
.class-schedule-day select{width:100%}
.class-schedule-save{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-top:10px;
}
.class-archive-help{
  margin-top:16px;
  padding:11px 12px;
  border-radius:9px;
  background:#f7f9fc;
  display:flex;
  flex-direction:column;
  gap:4px;
  font-size:10px;
  line-height:1.55;
  color:#667085;
}
.class-archive-help strong{color:#344054}
.class-archive-section{margin-top:16px}
.class-archive-list{display:flex;flex-direction:column;gap:8px}
.class-archive-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:12px 13px;
  border:1px solid #e5e9ef;
  border-radius:10px;
  background:#fafbfc;
}
.class-archive-row>div:first-child{
  display:flex;
  align-items:center;
  gap:9px;
  flex-wrap:wrap;
}
.class-archive-row strong{font-size:12px;color:#344054}
.class-archive-row span,.class-archive-row small{font-size:9px;color:#667085}
.class-archive-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap;justify-content:flex-end}
.class-archive-actions form{margin:0}
.class-purge-form{display:flex;align-items:center;gap:6px}
.class-purge-form input{width:180px;font-size:10px}

.dashboard-timetable-section{margin-top:20px}
.dashboard-timetable-head{margin-bottom:10px}
.dash-timetable-scroll{overflow-x:auto;padding-bottom:3px}
.dash-timetable-grid{
  display:grid;
  grid-template-columns:repeat(7,minmax(155px,1fr));
  gap:8px;
  min-width:1120px;
}
.dash-timetable-day{
  min-width:0;
  border:1px solid #e2e7ee;
  border-radius:11px;
  background:#fbfcfd;
  overflow:hidden;
}
.dash-timetable-day.today{
  border-color:#9fb3d6;
  background:#f5f8fd;
}
.dash-timetable-day-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:6px;
  padding:9px 10px;
  border-bottom:1px solid #e8ebf0;
  background:#f7f9fc;
}
.dash-timetable-day.today .dash-timetable-day-head{background:#eaf1fb}
.dash-timetable-day-head strong{font-size:12px;color:#233c68}
.dash-timetable-day-head span{font-size:9px;color:#667085}
.dash-timetable-entries{display:flex;flex-direction:column;gap:6px;padding:7px}
.dash-timetable-entry{
  display:flex;
  flex-direction:column;
  gap:4px;
  padding:8px;
  border-radius:8px;
  border-left:3px solid #8aa0c2;
  background:#fff;
}
.dash-timetable-entry.makeup{border-left-color:#7f8cc8}
.dash-timetable-entry.fixed{border-left-color:#70a78d}
.dash-timetable-entry-top{display:flex;align-items:center;justify-content:space-between;gap:5px}
.dash-timetable-kind{
  display:inline-flex;
  padding:2px 5px;
  border-radius:5px;
  background:#eef2f6;
  color:#475467;
  font-size:8px;
  font-weight:800;
}
.dash-timetable-entry-top b{font-size:9px;color:#344054;white-space:nowrap}
.dash-timetable-entry>strong{font-size:10px;color:#233c68;line-height:1.4}
.dash-timetable-entry>small{font-size:8px;line-height:1.45;color:#667085}
.dash-timetable-empty{padding:18px 6px;text-align:center;font-size:9px;color:#98a2b3}

@media(max-width:1050px){
  .class-manage-top{grid-template-columns:1fr}
  .class-add-card{position:static}
}
@media(max-width:760px){
  .class-manage-card-head,.class-archive-row{flex-direction:column;align-items:stretch}
  .class-manage-actions,.class-archive-actions{justify-content:flex-start}
  .class-schedule-days{grid-template-columns:1fr}
  .class-schedule-save{align-items:stretch;flex-direction:column}
  .class-schedule-save .button{width:100%}
  .dash-timetable-scroll{overflow:visible}
  .dash-timetable-grid{grid-template-columns:1fr;min-width:0}
  .dash-timetable-day{display:grid;grid-template-columns:76px minmax(0,1fr)}
  .dash-timetable-day-head{border-bottom:0;border-right:1px solid #e8ebf0;flex-direction:column;justify-content:flex-start}
  .dash-timetable-entries{min-width:0}
}
@media(max-width:520px){
  .class-manage-actions form.inline{display:grid;grid-template-columns:1fr auto;width:100%}
  .class-manage-actions input{width:100%}
  .class-purge-form{display:grid;grid-template-columns:1fr auto;width:100%}
  .class-purge-form input{width:100%}
  .class-schedule-day{grid-template-columns:72px 1fr 1fr;padding:8px}
}


/* ===== v5.5.24 전 페이지 모바일 화면 안전영역 / 반응형 보강 ===== */
html,body{max-width:100%;overflow-x:hidden}
.app,.main,.content{min-width:0;max-width:100%}
.content>*{min-width:0;max-width:100%}
.card,.stack,.toolbar,.filters,.inline,.field,
.exam-toolbar,.analysis-page,.fee-page,.print-page,
.msg3-left,.msg3-center,.msg3-right{min-width:0;max-width:100%}
img,svg,canvas,video{max-width:100%;height:auto}
input,select,textarea,button{max-width:100%;min-width:0}
.table-wrap,.msg3-tablewrap,.chart-scroll,.student-chart-scroll,
.fee-table-scroll,.print-matrix-wrap{max-width:100%;-webkit-overflow-scrolling:touch}

@media(max-width:760px){
  body{font-size:14px}
  .content{padding:10px 8px 28px}
  .topbar{
    height:58px;
    padding:0 9px;
    gap:7px;
    min-width:0;
  }
  .topbar>strong{
    flex:1 1 auto;
    min-width:0;
    font-size:14px;
    overflow:hidden;
    white-space:nowrap;
    text-overflow:ellipsis;
  }
  .menu-btn{
    flex:0 0 auto;
    width:38px;
    height:38px;
    padding:0;
  }
  .class-selector{
    margin-left:0;
    flex:0 1 112px;
    min-width:0;
  }
  .class-selector select{
    width:100%;
    min-width:0;
    height:38px;
    padding:7px 26px 7px 8px;
    font-size:12px;
  }
  .user-menu{
    margin-left:0;
    padding-left:5px;
    gap:4px;
    flex:0 0 auto;
  }
  .user-name{display:none}
  .logout-button{padding:6px 7px;font-size:10px}

  .sidebar{
    width:min(82vw,280px)!important;
    padding-bottom:28px;
  }
  .ui-sidebar-compact .sidebar,.ui-sidebar-wide .sidebar{width:min(82vw,280px)!important}

  .card{
    padding:12px;
    border-radius:10px;
    overflow-x:auto;
  }
  .cards,.grid-2,.grid-3,.split,.message-layout,
  .dashboard-schedule-grid,.dashboard-class-grid,
  .academic-layout,.makeup-grid,.layout-config-columns,
  .fee-top-grid,.analysis-list,.class-manage-top{
    grid-template-columns:1fr!important;
  }
  .cards{gap:9px}
  .stat .value{font-size:22px}

  .toolbar,.filters,.inline,.exam-toolbar,.analysis-import-head,
  .fee-section-head,.calendar-head{
    align-items:stretch;
    gap:7px;
  }
  .toolbar>*{min-width:0}
  .toolbar .button,.filters .button{min-height:40px}

  .form-grid,.exam-basic-grid,.exam-basic-grid-five,
  .historical-basic-grid,.academic-basic-grid,.academic-subject-grid,
  .layout-global-grid{
    grid-template-columns:1fr!important;
  }
  .field input,.field select,.field textarea,
  .form-grid input,.form-grid select,.form-grid textarea{
    width:100%;
  }
  input,select,textarea{font-size:16px}

  table{
    width:max-content;
    min-width:100%;
  }
  th,td{white-space:normal}
  .table-wrap{width:100%;overflow-x:auto}

  .exam-summary-bar,.historical-summary-bar,.exam-summary-six{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px;
  }
  .exam-summary-bar .wide,.historical-summary-bar .wide,
  .exam-summary-six .wide{grid-column:1/-1}
  .exam-q-body,.short-single,.subpart-row{
    grid-template-columns:1fr!important;
  }
  .compact-field{width:100%}

  .msg3{
    grid-template-columns:1fr!important;
    gap:10px;
  }
  .msg3-left,.msg3-right{position:static!important;top:auto!important}
  .msg3-center{padding:11px}
  .msg3-weekbar{flex-direction:column;align-items:stretch}
  .msg3-weektools{justify-content:flex-start}

  .calendar{min-width:620px}
  .calendar-head{overflow-x:auto}

  .fee-summary-cards,.print-summary-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  .fee-account-form,.fee-book-add-form{
    grid-template-columns:1fr!important;
  }
  .fee-book-edit{grid-template-columns:1fr!important}
  .fee-book-row{flex-direction:column;align-items:stretch}
  .fee-savebar{flex-direction:column;align-items:stretch}
  .fee-savebar .button{width:100%}

  .print-add-card{flex-direction:column;align-items:stretch}
  .print-add-form{width:100%;min-width:0;flex-direction:column}
  .print-add-form input,.print-add-form .button{width:100%;min-width:0}
  .print-manage-row{align-items:stretch;flex-wrap:wrap}
  .print-edit-form{width:100%;flex-basis:100%;flex-wrap:wrap}

  .analysis-filter-grid{grid-template-columns:1fr!important}
  .analysis-filter-grid input,.analysis-filter-grid select,.analysis-filter-grid .button{width:100%}
  .analysis-type-grid{grid-template-columns:1fr!important}

  .layout-sort-row,.layout-menu-row{
    grid-template-columns:24px 54px minmax(0,1fr)!important;
  }
  .layout-menu-row select{grid-column:3}
  .layout-save-bottom{bottom:8px}

  .class-manage-card-head,.class-archive-row{
    flex-direction:column;
    align-items:stretch;
  }
  .class-manage-actions,.class-archive-actions{
    justify-content:flex-start;
    width:100%;
  }
  .class-manage-actions form.inline{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    width:100%;
  }
  .class-manage-actions input{width:100%}
  .class-schedule-days{grid-template-columns:1fr!important}
  .class-schedule-day{grid-template-columns:72px minmax(0,1fr) minmax(0,1fr)}
  .class-purge-form{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    width:100%;
  }
  .class-purge-form input{width:100%}

  .dashboard-exam-grid{grid-template-columns:1fr!important}
  .dash-timetable-scroll{overflow:visible}
  .dash-timetable-grid{grid-template-columns:1fr!important;min-width:0!important}
  .dash-timetable-day{
    display:grid;
    grid-template-columns:68px minmax(0,1fr);
  }
  .dash-timetable-day-head{
    border-bottom:0;
    border-right:1px solid #e8ebf0;
    flex-direction:column;
    justify-content:flex-start;
  }

  .student-shell{
    width:calc(100% - 12px)!important;
    max-width:100%!important;
  }
}

@media(max-width:420px){
  .content{padding-left:6px;padding-right:6px}
  .topbar{padding-left:6px;padding-right:6px}
  .class-selector{flex-basis:96px}
  .logout-button{font-size:9px;padding:6px}
  .fee-summary-cards,.print-summary-grid{grid-template-columns:1fr 1fr!important}
  .exam-summary-bar,.historical-summary-bar,.exam-summary-six{
    grid-template-columns:1fr 1fr!important;
  }
}


/* ===== v5.5.26 대시보드 세로형 주간 수업시간표 ===== */
.dash-week-scroll{
  width:100%;
  overflow-x:auto;
  padding-bottom:4px;
  -webkit-overflow-scrolling:touch;
}
.dash-week-grid{
  position:relative;
  display:grid;
  grid-template-columns:62px repeat(7,minmax(145px,1fr));
  grid-template-rows:38px repeat(var(--slot-count),30px);
  min-width:1080px;
  border:1px solid #dfe5ec;
  border-radius:10px;
  overflow:hidden;
  background:#fff;
}
.dash-week-corner{
  grid-column:1;
  grid-row:1;
  z-index:5;
  background:#f7f9fc;
  border-right:1px solid #dfe5ec;
  border-bottom:1px solid #dfe5ec;
}
.dash-week-dayhead{
  z-index:5;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  background:#f7f9fc;
  border-right:1px solid #dfe5ec;
  border-bottom:1px solid #dfe5ec;
  font-size:11px;
}
.dash-week-dayhead strong{font-size:13px;color:#182b49}
.dash-week-dayhead span{font-size:9px;color:#667085}
.dash-week-dayhead.today{background:#eaf1fb}
.dash-week-time{
  z-index:4;
  display:flex;
  align-items:flex-start;
  justify-content:center;
  padding-top:3px;
  background:#fbfcfd;
  border-right:1px solid #dfe5ec;
  border-bottom:1px solid #e8ecf1;
  color:#344054;
  font-size:10px;
  font-weight:700;
}
.dash-week-daybg{
  z-index:1;
  pointer-events:none;
  border-right:1px solid #dfe5ec;
  background:
    repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent 29px,
      #e8ecf1 29px,
      #e8ecf1 30px
    );
}
.dash-week-daybg.today{
  background:
    linear-gradient(rgba(234,241,251,.36),rgba(234,241,251,.36)),
    repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent 29px,
      #e2e8f0 29px,
      #e2e8f0 30px
    );
}
.dash-week-block{
  z-index:3;
  min-width:0;
  margin:2px 4px;
  padding:5px 6px;
  overflow:hidden;
  border-radius:7px;
  border:1px solid #dce3ec;
  background:#eef4fb;
  box-shadow:0 1px 2px rgba(16,24,40,.04);
}
.dash-week-block.regular{
  background:#e9f2fb;
  border-color:#cbdcef;
  border-left:4px solid #7f9fc8;
}
.dash-week-block.makeup{
  background:#fff1e8;
  border-color:#f0d4c1;
  border-left:4px solid #d89a70;
}
.dash-week-block.clinic{
  background:#edf7ea;
  border-color:#cfe4ca;
  border-left:4px solid #79a872;
}
.dash-week-block-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:5px;
  margin-bottom:3px;
}
.dash-week-block-top span{
  font-size:8px;
  font-weight:800;
  color:#667085;
  white-space:nowrap;
}
.dash-week-block-top b{
  font-size:8px;
  color:#344054;
  white-space:nowrap;
}
.dash-week-block>strong{
  display:block;
  font-size:10px;
  color:#18365f;
  line-height:1.3;
  overflow-wrap:anywhere;
}
.dash-week-block>small{
  display:block;
  margin-top:2px;
  font-size:8px;
  color:#667085;
  line-height:1.25;
}
.dash-week-names{
  display:flex;
  flex-wrap:wrap;
  gap:2px 5px;
  margin-top:3px;
}
.dash-week-names span{
  font-size:9px;
  font-weight:700;
  line-height:1.25;
  color:#315a38;
}

@media(max-width:760px){
  .dashboard-timetable-head{
    flex-direction:column;
    align-items:stretch;
  }
  .dash-week-grid{
    grid-template-columns:50px repeat(7,132px);
    min-width:974px;
    grid-template-rows:36px repeat(var(--slot-count),28px);
  }
  .dash-week-daybg{
    background:
      repeating-linear-gradient(
        to bottom,
        transparent 0,
        transparent 27px,
        #e8ecf1 27px,
        #e8ecf1 28px
      );
  }
  .dash-week-daybg.today{
    background:
      linear-gradient(rgba(234,241,251,.36),rgba(234,241,251,.36)),
      repeating-linear-gradient(
        to bottom,
        transparent 0,
        transparent 27px,
        #e2e8f0 27px,
        #e2e8f0 28px
      );
  }
  .dash-week-time{font-size:9px}
  .dash-week-block{margin:2px 3px;padding:4px 5px}
  .dash-week-block>strong{font-size:9px}
  .dash-week-names span{font-size:8px}
}


/* ===== v5.5.28 기출분석 시험명 표시 정리 ===== */
.student-analysis-card .student-analysis-titleline{
  display:block;
  margin:0 0 4px;
  font-size:13px;
  line-height:1.45;
  font-weight:900;
  color:#17345f;
  word-break:keep-all;
  overflow-wrap:anywhere;
}
.student-analysis-card .student-analysis-titleline + span{
  display:block;
  margin-top:2px;
}
@media(max-width:640px){
  .student-analysis-card .student-analysis-titleline{
    font-size:12px;
    line-height:1.45;
  }
}


/* ===== v5.5.29 기출분석 큰 2줄 제목 + 학생 과목군 ===== */
.student-analysis-group-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
}
.student-analysis-group-card{
  min-width:0;
  min-height:62px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  border:1px solid #e1e6ee;
  border-radius:11px;
  padding:10px 8px;
  background:#f7f9fc;
  color:#344054;
  text-decoration:none;
}
.student-analysis-group-card span{
  min-width:0;
  font-size:12px;
  line-height:1.3;
  font-weight:900;
  text-align:center;
  word-break:keep-all;
}
.student-analysis-group-card b{
  flex:0 0 auto;
  font-size:18px;
  line-height:1;
  color:#17345f;
}
.student-analysis-group-card.active{
  border-color:#7f99bf;
  background:#eef4fb;
  box-shadow:inset 0 0 0 1px #9db0cc;
}
.student-analysis-group-card.group-0{background:#eef7ff}
.student-analysis-group-card.group-1{background:#f0f8ef}
.student-analysis-group-card.group-2{background:#fff5ec}
.student-analysis-group-card.group-3{background:#f5f1ff}
.student-analysis-group-card.group-4{background:#fff8e8}
.student-analysis-group-card.group-5{background:#fdf0f3}
.student-analysis-clear{
  display:block;
  margin-top:9px;
  text-align:right;
  font-size:10px;
  font-weight:800;
  color:#667085;
  text-decoration:none;
}
.student-analysis-titleline{
  display:block;
  margin:0 0 5px;
  color:#17345f;
}
.student-analysis-titleline .student-analysis-title-top,
.student-analysis-titleline .student-analysis-title-bottom{
  display:block;
  word-break:keep-all;
  overflow-wrap:anywhere;
}
.student-analysis-titleline .student-analysis-title-top{
  font-size:14px;
  line-height:1.4;
  color:#29466f;
}
.student-analysis-titleline .student-analysis-title-bottom{
  margin-top:1px;
  font-size:16px;
  line-height:1.4;
  color:#102f5e;
}
@media(max-width:640px){
  .student-analysis-group-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:7px;
  }
  .student-analysis-group-card{
    min-height:56px;
    padding:9px 6px;
  }
  .student-analysis-group-card span{font-size:11px}
  .student-analysis-group-card b{font-size:17px}
  .student-analysis-titleline .student-analysis-title-top{font-size:13px}
  .student-analysis-titleline .student-analysis-title-bottom{font-size:15px}
}


/* ===== v5.5.30 학사일정 과목별 시험범위 ===== */
.academic-subject-scope-grid{
  grid-template-columns:repeat(3,minmax(0,1fr));
}
.academic-subject-card{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:8px;
  padding:11px;
  border:1px solid #e1e6ee;
  border-radius:10px;
  background:#fafbfc;
}
.academic-subject-card>strong{
  font-size:12px;
  color:#233c68;
}
.academic-subject-card .field{
  margin:0;
}
.academic-subject-card .field span{
  font-size:9px;
}
.academic-subject-card input{
  width:100%;
}
.academic-saved-subjects{
  display:flex;
  flex-direction:column;
  gap:4px;
  margin-top:5px;
}
.academic-saved-subjects>span{
  display:flex;
  align-items:baseline;
  gap:6px;
  flex-wrap:wrap;
  font-size:9px;
  line-height:1.45;
  color:#667085;
}
.academic-saved-subjects b{
  color:#344054;
}
.academic-saved-subjects em{
  font-style:normal;
  color:#475467;
  background:#f3f5f8;
  border-radius:5px;
  padding:2px 5px;
}

@media(max-width:900px){
  .academic-subject-scope-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}
@media(max-width:560px){
  .academic-subject-scope-grid{
    grid-template-columns:1fr!important;
  }
  .academic-subject-card{
    padding:10px;
  }
}


/* ===== v5.5.31 대시보드 동일 날짜 일정 묶음 ===== */
.dash-date-groups{
  display:flex;
  flex-direction:column;
  gap:8px;
}
.dash-date-group{
  display:grid;
  grid-template-columns:64px minmax(0,1fr);
  gap:10px;
  padding:9px 0;
  border-bottom:1px solid #e5e9ef;
}
.dash-date-group:last-child{
  border-bottom:0;
}
.dash-date-group-date{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  gap:2px;
  padding-top:7px;
}
.dash-date-group-date strong{
  font-size:12px;
  line-height:1.1;
  color:#172b4d;
}
.dash-date-group-date span{
  font-size:9px;
  color:#667085;
}
.dash-date-group-date small{
  margin-top:3px;
  padding:2px 6px;
  border-radius:999px;
  background:#eef2f6;
  color:#667085;
  font-size:8px;
  font-weight:800;
}
.dash-date-group-items{
  display:flex;
  flex-direction:column;
  gap:6px;
  min-width:0;
}
.dash-date-event-item{
  display:grid;
  grid-template-columns:72px minmax(0,1fr);
  align-items:center;
  gap:10px;
  min-width:0;
  padding:9px 10px;
  border:1px solid #e3e8ef;
  border-radius:9px;
  background:#fff;
}
.dash-date-event-item.schedule{
  border-left:4px solid #d6a36f;
  background:#fffaf5;
}
.dash-date-event-item.makeup{
  border-left:4px solid #7c9ed2;
  background:#f7faff;
}
.dash-date-event-item .dash-event-type{
  width:100%;
  min-width:0;
  margin:0;
}
.dash-date-event-item .dash-event-main{
  min-width:0;
}
.dash-date-event-item .dash-event-main>div:first-child{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  min-width:0;
}
.dash-date-event-item .dash-event-main strong:not(.dash-event-time){
  min-width:0;
  overflow-wrap:anywhere;
}

@media(max-width:760px){
  .dash-date-group{
    grid-template-columns:50px minmax(0,1fr);
    gap:7px;
    padding:7px 0;
  }
  .dash-date-group-date{
    padding-top:6px;
  }
  .dash-date-group-date strong{
    font-size:11px;
  }
  .dash-date-event-item{
    grid-template-columns:58px minmax(0,1fr);
    gap:7px;
    padding:8px;
  }
  .dash-date-event-item .dash-event-type{
    font-size:8px;
    padding-left:4px;
    padding-right:4px;
  }
}


/* ===== v5.5.32 대시보드 시험일정 동일 날짜 묶음 ===== */
.dash-exam-date-groups{
  display:flex;
  flex-direction:column;
  gap:9px;
}
.dash-exam-date-group{
  display:grid;
  grid-template-columns:88px minmax(0,1fr);
  gap:10px;
  padding:10px;
  border:1px solid #e1e6ee;
  border-radius:12px;
  background:#fbfcfe;
}
.dash-exam-group-side{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:6px;
  padding-top:1px;
}
.dash-exam-group-side .dash-exam-dday{
  width:100%;
  min-width:0;
  min-height:42px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:9px;
}
.dash-exam-group-date{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:4px;
  flex-wrap:wrap;
  color:#667085;
  text-align:center;
}
.dash-exam-group-date strong{
  font-size:10px;
  color:#344054;
}
.dash-exam-group-date span{
  font-size:8px;
}
.dash-exam-group-date small{
  padding:2px 5px;
  border-radius:999px;
  background:#eef2f6;
  font-size:8px;
  font-weight:800;
}
.dash-exam-group-items{
  min-width:0;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:7px;
}
.dash-exam-group-item{
  min-width:0;
  padding:10px 11px;
  border:1px solid #e1e6ee;
  border-radius:10px;
  background:#fff;
}
.dash-exam-group-item.school{
  border-left:4px solid #8aa3ca;
  background:#f8faff;
}
.dash-exam-group-item.mock{
  border-left:4px solid #9b80cf;
  background:#fbf9ff;
}
.dash-exam-group-item .dash-exam-title{
  min-width:0;
}
.dash-exam-group-item .dash-exam-click-title,
.dash-exam-group-item .dash-exam-title>strong{
  min-width:0;
  overflow-wrap:anywhere;
}
.dash-exam-group-item .dash-exam-detail{
  margin-top:5px;
}

@media(max-width:900px){
  .dash-exam-group-items{
    grid-template-columns:1fr;
  }
}
@media(max-width:640px){
  .dash-exam-date-group{
    grid-template-columns:68px minmax(0,1fr);
    gap:7px;
    padding:8px;
  }
  .dash-exam-group-side .dash-exam-dday{
    min-height:38px;
    font-size:11px;
  }
  .dash-exam-group-item{
    padding:9px;
  }
}


/* ===== v5.5.33 학생용 PWA 설치 ===== */
.student-topbar-actions{
  display:flex;
  align-items:center;
  gap:8px;
  min-width:0;
}
.student-pwa-install{
  flex:0 0 auto;
  min-height:34px;
  padding:7px 11px;
  border:1px solid #cdd6e3;
  border-radius:9px;
  background:#eef3fa;
  color:#17345f;
  font-size:11px;
  font-weight:900;
  cursor:pointer;
}
.student-pwa-install:hover{
  background:#e4ecf7;
}
.student-pwa-guide{
  position:fixed;
  inset:0;
  z-index:9999;
  display:flex;
  align-items:flex-end;
  justify-content:center;
  padding:18px;
  background:rgba(15,23,42,.34);
}
.student-pwa-guide[hidden]{
  display:none!important;
}
.student-pwa-guide-card{
  width:min(430px,100%);
  padding:18px;
  border-radius:15px;
  background:#fff;
  box-shadow:0 12px 35px rgba(15,23,42,.2);
}
.student-pwa-guide-card strong{
  display:block;
  margin-bottom:8px;
  font-size:16px;
  color:#172b4d;
}
.student-pwa-guide-card p{
  margin:0;
  color:#475467;
  font-size:13px;
  line-height:1.65;
}
.student-pwa-guide-card button{
  width:100%;
  min-height:42px;
  margin-top:14px;
  border:0;
  border-radius:10px;
  background:#172b4d;
  color:#fff;
  font-size:13px;
  font-weight:900;
  cursor:pointer;
}

@media(max-width:640px){
  .student-topbar-actions{
    gap:5px;
  }
  .student-pwa-install{
    padding:6px 8px;
    min-height:32px;
    font-size:10px;
  }
  .student-pwa-guide{
    padding:10px;
  }
  .student-pwa-guide-card{
    padding:16px 14px;
    border-radius:14px;
  }
}


/* ===== v5.5.34 수업영상 ===== */
.lesson-video-page{display:flex;flex-direction:column;gap:16px}
.lesson-video-form{display:flex;flex-direction:column;gap:12px;margin-top:12px}
.lesson-video-form-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}
.lesson-video-title-field,.lesson-video-url-field{grid-column:span 1}
.lesson-video-target-box{
  padding:12px;
  border:1px solid #e1e6ee;
  border-radius:11px;
  background:#fafbfc;
}
.lesson-video-target-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:9px;
}
.lesson-video-target-head>strong{font-size:12px;color:#344054}
.lesson-video-class-grid{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:7px;
}
.lesson-video-check{
  display:flex!important;
  flex-direction:row!important;
  align-items:center;
  gap:6px;
  min-width:0;
  margin:0!important;
  cursor:pointer;
}
.lesson-video-check input{
  width:16px!important;
  height:16px;
  flex:0 0 auto;
  margin:0;
  accent-color:#355d96;
}
.lesson-video-check span{
  min-width:0;
  font-size:11px;
  font-weight:800;
  color:#475467;
}
.lesson-video-form-actions{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.lesson-video-publish{padding:8px 0}
.teacher-video-list{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}
.teacher-video-card{
  min-width:0;
  display:grid;
  grid-template-columns:180px minmax(0,1fr);
  gap:12px;
  padding:11px;
  border:1px solid #e1e6ee;
  border-radius:12px;
  background:#fff;
}
.teacher-video-card.unpublished{opacity:.72;background:#fafafa}
.teacher-video-thumb{
  position:relative;
  display:block;
  align-self:start;
  aspect-ratio:16/9;
  overflow:hidden;
  border-radius:9px;
  background:#101828;
}
.teacher-video-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.teacher-video-thumb>span,
.student-video-thumb>span{
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  display:flex;
  align-items:center;
  justify-content:center;
  width:38px;
  height:38px;
  border-radius:999px;
  background:rgba(0,0,0,.68);
  color:#fff;
  font-size:16px;
}
.teacher-video-info{min-width:0}
.teacher-video-badges{display:flex;gap:5px;flex-wrap:wrap}
.teacher-video-badges>span{
  display:inline-flex;
  padding:3px 6px;
  border-radius:999px;
  background:#eef2f6;
  color:#667085;
  font-size:8px;
  font-weight:800;
}
.teacher-video-badges .published{background:#eaf7ef;color:#267047}
.teacher-video-badges .private{background:#f1f2f4;color:#667085}
.teacher-video-info h3{
  margin:7px 0 3px;
  font-size:14px;
  line-height:1.4;
  color:#17345f;
}
.teacher-video-unit{margin:0;font-size:10px;color:#667085}
.teacher-video-description{
  margin:6px 0 0;
  font-size:10px;
  line-height:1.5;
  color:#475467;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.teacher-video-actions{
  display:flex;
  align-items:center;
  gap:5px;
  flex-wrap:wrap;
  margin-top:9px;
}
.teacher-video-actions form{margin:0}

.student-video-home-card{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:15px 16px;
  border:1px solid #dce4ef;
  border-radius:13px;
  background:#f6f9fd;
  color:inherit;
  text-decoration:none;
}
.student-video-home-card>div{
  display:flex;
  flex-direction:column;
  gap:4px;
  min-width:0;
}
.student-video-home-card strong{font-size:14px;color:#17345f}
.student-video-home-card span{font-size:10px;line-height:1.45;color:#667085}
.student-video-home-card>b{
  flex:0 0 auto;
  display:flex;
  align-items:center;
  justify-content:center;
  width:38px;
  height:38px;
  border-radius:999px;
  background:#172b4d;
  color:#fff;
  font-size:13px;
}
.student-video-list{display:flex;flex-direction:column;gap:9px}
.student-video-card{
  display:grid;
  grid-template-columns:150px minmax(0,1fr) 18px;
  gap:11px;
  align-items:center;
  min-width:0;
  padding:10px;
  border:1px solid #e1e6ee;
  border-radius:12px;
  background:#fff;
  color:inherit;
  text-decoration:none;
}
.student-video-thumb{
  position:relative;
  aspect-ratio:16/9;
  overflow:hidden;
  border-radius:9px;
  background:#101828;
}
.student-video-thumb img{width:100%;height:100%;object-fit:cover}
.student-video-thumb>span{width:34px;height:34px;font-size:14px}
.student-video-info{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:4px;
}
.student-video-info>strong{
  font-size:14px;
  line-height:1.4;
  color:#17345f;
  overflow-wrap:anywhere;
}
.student-video-info>span{font-size:10px;color:#667085}
.student-video-info>p{
  margin:1px 0 0;
  font-size:10px;
  line-height:1.5;
  color:#667085;
}
.student-video-arrow{font-size:24px;color:#98a2b3}
.student-video-player-wrap{
  position:relative;
  width:100%;
  aspect-ratio:16/9;
  overflow:hidden;
  border-radius:13px;
  background:#000;
}
.student-video-player-wrap iframe{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  border:0;
}
.student-video-detail-info{padding:14px 2px 2px}
.student-video-detail-info h2{margin:0;font-size:18px;line-height:1.4;color:#17345f}
.student-video-detail-meta{margin-top:5px;font-size:11px;color:#667085}
.student-video-detail-info p{margin:12px 0 0;font-size:12px;line-height:1.7;color:#475467}

@media(max-width:1050px){
  .teacher-video-list{grid-template-columns:1fr}
  .lesson-video-class-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:700px){
  .lesson-video-form-grid{grid-template-columns:1fr}
  .lesson-video-form-actions{align-items:stretch;flex-direction:column}
  .lesson-video-form-actions .button{width:100%}
  .lesson-video-class-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .teacher-video-card{grid-template-columns:125px minmax(0,1fr);gap:9px}
  .student-video-card{grid-template-columns:112px minmax(0,1fr) 14px;gap:8px}
  .student-video-info>strong{font-size:12px}
}
@media(max-width:420px){
  .teacher-video-card{grid-template-columns:1fr}
  .teacher-video-thumb{max-width:100%}
  .student-video-card{grid-template-columns:96px minmax(0,1fr);padding:8px}
  .student-video-arrow{display:none}
}


/* ===== v5.5.35 수업영상 재생속도 조절 ===== */
.student-video-api-player{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
}
.student-video-controls-panel{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-top:11px;
  padding:12px;
  border:1px solid #e1e6ee;
  border-radius:11px;
  background:#fafbfc;
}
.student-video-speed-control{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
}
.student-video-speed-control>strong,
.student-video-quality-note>strong{
  flex:0 0 54px;
  font-size:11px;
  color:#344054;
}
.student-video-speed-buttons{
  display:flex;
  flex-wrap:wrap;
  gap:5px;
}
.student-video-speed-buttons button{
  min-width:48px;
  min-height:34px;
  padding:6px 9px;
  border:1px solid #d4dbe5;
  border-radius:8px;
  background:#fff;
  color:#475467;
  font-size:10px;
  font-weight:800;
  cursor:pointer;
}
.student-video-speed-buttons button.active{
  border-color:#6f8eb8;
  background:#eaf1fb;
  color:#17345f;
}
.student-video-quality-note{
  display:flex;
  align-items:flex-start;
  gap:12px;
}
.student-video-quality-note span{
  font-size:10px;
  line-height:1.5;
  color:#667085;
}
@media(max-width:640px){
  .student-video-speed-control,
  .student-video-quality-note{
    align-items:stretch;
    flex-direction:column;
    gap:7px;
  }
  .student-video-speed-control>strong,
  .student-video-quality-note>strong{
    flex:auto;
  }
  .student-video-speed-buttons{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
  }
  .student-video-speed-buttons button{
    min-width:0;
    width:100%;
  }
}


/* ===== v5.5.36 수업영상 재생 컨트롤 확장 ===== */
.student-video-main-controls{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}
.student-video-control-btn{
  min-height:38px;
  padding:7px 12px;
  border:1px solid #d4dbe5;
  border-radius:9px;
  background:#fff;
  color:#344054;
  font-size:10px;
  font-weight:900;
  cursor:pointer;
}
.student-video-control-btn.primary{
  border-color:#6f8eb8;
  background:#eaf1fb;
  color:#17345f;
}
.student-video-control-btn.primary.playing{
  background:#17345f;
  color:#fff;
}
.student-video-volume-control{
  display:grid;
  grid-template-columns:54px 36px minmax(120px,1fr) 46px;
  align-items:center;
  gap:8px;
}
.student-video-volume-control>strong{
  font-size:11px;
  color:#344054;
}
.student-video-mute-btn{
  width:36px;
  height:34px;
  border:1px solid #d4dbe5;
  border-radius:8px;
  background:#fff;
  cursor:pointer;
  font-size:15px;
}
.student-video-volume-control input[type="range"]{
  width:100%;
  min-width:0;
  accent-color:#355d96;
}
.student-video-volume-control>span{
  text-align:right;
  font-size:10px;
  font-weight:800;
  color:#667085;
}
.student-video-settings-guide{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 11px;
  border:1px solid #dbe4ef;
  border-radius:10px;
  background:#eef4fb;
}
.student-video-settings-icon{
  flex:0 0 auto;
  display:flex;
  align-items:center;
  justify-content:center;
  width:34px;
  height:34px;
  border-radius:9px;
  background:#17345f;
  color:#fff;
  font-size:16px;
}
.student-video-settings-guide>div:last-child{
  display:flex;
  flex-direction:column;
  gap:2px;
  min-width:0;
}
.student-video-settings-guide strong{
  font-size:11px;
  color:#17345f;
}
.student-video-settings-guide span{
  font-size:10px;
  line-height:1.5;
  color:#667085;
}

@media(max-width:640px){
  .student-video-main-controls{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .student-video-control-btn{
    width:100%;
  }
  .student-video-volume-control{
    grid-template-columns:48px 34px minmax(0,1fr) 42px;
    gap:6px;
  }
}


/* ===== v5.5.40 등록 수업영상 반별 필터 ===== */
.lesson-video-class-filters{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin:10px 0 12px;
  padding-bottom:2px;
}
.lesson-video-class-filter{
  display:inline-flex;
  align-items:center;
  gap:5px;
  min-height:34px;
  padding:7px 10px;
  border:1px solid #d9e0e9;
  border-radius:9px;
  background:#f7f9fc;
  color:#475467;
  text-decoration:none;
  font-size:10px;
  font-weight:900;
}
.lesson-video-class-filter b{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:20px;
  height:20px;
  padding:0 5px;
  border-radius:999px;
  background:#e9eef5;
  color:#53657d;
  font-size:8px;
}
.lesson-video-class-filter.active{
  border-color:#4f6f9f;
  background:#17345f;
  color:#fff;
}
.lesson-video-class-filter.active b{
  background:rgba(255,255,255,.18);
  color:#fff;
}
@media(max-width:640px){
  .lesson-video-class-filters{
    flex-wrap:nowrap;
    overflow-x:auto;
    padding-bottom:5px;
    -webkit-overflow-scrolling:touch;
  }
  .lesson-video-class-filter{
    flex:0 0 auto;
  }
}


/* ===== v5.5.44 수업영상 개별 학생 공개 ===== */
.lesson-video-student-target-box{
  margin-top:10px;
  padding:12px;
  border:1px solid #dce4ef;
  border-radius:11px;
  background:#fbfcfe;
}
.lesson-video-student-target-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:9px;
}
.lesson-video-student-target-head>div{
  display:flex;
  flex-direction:column;
  gap:3px;
}
.lesson-video-student-target-head strong{
  font-size:12px;
  color:#17345f;
}
.lesson-video-student-target-head span{
  font-size:9px;
  line-height:1.5;
  color:#667085;
}
.lesson-video-student-target-head input[type="search"]{
  width:190px;
  min-height:34px;
  padding:6px 9px;
  border:1px solid #d0d7e2;
  border-radius:8px;
  background:#fff;
  font-size:10px;
}
.lesson-video-student-groups{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
}
.lesson-video-student-group{
  min-width:0;
  border:1px solid #e1e6ee;
  border-radius:9px;
  background:#fff;
  overflow:hidden;
}
.lesson-video-student-group>summary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  padding:8px 10px;
  cursor:pointer;
  list-style:none;
  background:#f6f8fb;
  color:#344054;
  font-size:10px;
  font-weight:900;
}
.lesson-video-student-group>summary::-webkit-details-marker{
  display:none;
}
.lesson-video-student-group>summary b{
  padding:2px 6px;
  border-radius:999px;
  background:#e9eef5;
  color:#667085;
  font-size:8px;
}
.lesson-video-student-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:5px;
  padding:8px;
}
.lesson-video-student-check{
  display:flex;
  align-items:center;
  gap:5px;
  min-width:0;
  padding:6px 7px;
  border:1px solid #e3e7ee;
  border-radius:7px;
  background:#fff;
  font-size:10px;
  cursor:pointer;
}
.lesson-video-student-check:has(input:checked){
  border-color:#7893b8;
  background:#edf3fb;
  color:#17345f;
  font-weight:900;
}
.lesson-video-student-check input{
  flex:0 0 auto;
  margin:0;
  accent-color:#355d96;
}
.lesson-video-student-check span{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.lesson-video-student-check[hidden],
.lesson-video-student-group[hidden]{
  display:none!important;
}

@media(max-width:900px){
  .lesson-video-student-groups{
    grid-template-columns:1fr;
  }
}
@media(max-width:640px){
  .lesson-video-student-target-head{
    align-items:stretch;
    flex-direction:column;
  }
  .lesson-video-student-target-head input[type="search"]{
    width:100%;
  }
  .lesson-video-student-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

/* v5.5.46: 학생 영상 탭 - 수업영상/기타영상 + 수업과목 필터 */
.student-video-category-tabs{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
  margin:16px 0 8px;
}
.student-video-category-tab{
  min-height:44px;
  padding:0 14px;
  border:1px solid #d8e0eb;
  border-radius:11px;
  background:#fff;
  color:#52627a;
  font-size:13px;
  font-weight:900;
  cursor:pointer;
  box-shadow:0 1px 2px rgba(16,24,40,.02);
}
.student-video-category-tab b{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:20px;
  height:20px;
  margin-left:5px;
  padding:0 6px;
  border-radius:999px;
  background:#eef2f7;
  color:#718096;
  font-size:9px;
}
.student-video-category-tab.active{
  border-color:#17345f;
  background:#17345f;
  color:#fff;
}
.student-video-category-tab.active b{
  background:rgba(255,255,255,.18);
  color:#fff;
}
.student-video-section{
  scroll-margin-top:84px;
  margin-top:18px;
}
.student-video-section[hidden]{display:none!important}
.student-video-section-head{
  align-items:flex-end;
  justify-content:space-between;
}
.student-video-section-head>div{min-width:0}
.student-video-section-head h2{font-size:16px;color:#17345f}
.student-video-section-head p{
  margin:4px 0 0;
  color:#8490a3;
  font-size:10px;
  line-height:1.45;
}
.student-video-subject-filters{
  display:flex;
  gap:7px;
  overflow-x:auto;
  padding:1px 1px 10px;
  margin:-1px 0 3px;
  scrollbar-width:none;
}
.student-video-subject-filters::-webkit-scrollbar{display:none}
.student-video-subject-filter{
  flex:0 0 auto;
  height:34px;
  padding:0 12px;
  border:1px solid #d7deea;
  border-radius:9px;
  background:#fff;
  color:#506078;
  font-size:10px;
  font-weight:800;
  cursor:pointer;
}
.student-video-subject-filter b{
  margin-left:3px;
  color:#8b98aa;
  font-size:9px;
}
.student-video-subject-filter.active{
  border-color:#3f6599;
  background:#eaf1fb;
  color:#17345f;
}
.student-video-subject-filter.active b{color:#5877a3}
.student-video-card[hidden]{display:none!important}
.student-video-card.other{
  border-color:#d7e2f2;
  background:linear-gradient(90deg,#fbfdff 0,#fff 38%);
}
.student-video-card-topline{
  min-height:18px;
  display:flex;
  align-items:center;
  gap:5px;
  margin-bottom:2px;
}
.student-video-card-topline:empty{display:none}
.student-video-kind-badge{
  display:inline-flex;
  align-items:center;
  min-height:18px;
  padding:2px 7px;
  border-radius:999px;
  font-style:normal;
  font-size:9px;
  font-weight:800;
  line-height:1;
}
.student-video-kind-badge.subject{
  background:#f2f4f7;
  color:#667085;
}
@media(max-width:600px){
  .student-video-category-tabs{margin-top:13px;gap:7px}
  .student-video-category-tab{min-height:42px;font-size:12px}
  .student-video-section{margin-top:16px}
  .student-video-section-head{align-items:center}
  .student-video-section-head p{font-size:9px}
  .student-video-subject-filter{height:32px;padding:0 10px}
  .student-video-card-topline{margin-bottom:1px}
}

/* ─────────────────────────────────────
   v5.5.49 학생 메인 허브 / 시험·성적 / 과제·제출
   ───────────────────────────────────── */
.student-hub-welcome{margin-bottom:18px}
.student-hub-welcome p{margin:5px 0 0;color:#8793a5;font-size:10px}
.student-hub-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.student-hub-card{
  position:relative;display:flex;align-items:center;gap:14px;min-height:158px;
  padding:21px 45px 21px 19px;background:#fff;border:1px solid #dfe5ee;border-radius:16px;
  text-decoration:none;color:inherit;box-shadow:0 5px 18px rgba(20,44,77,.035);transition:.14s ease
}
.student-hub-card:hover{transform:translateY(-2px);border-color:#c8d4e4;box-shadow:0 9px 22px rgba(20,44,77,.07)}
.student-hub-card.exam{background:linear-gradient(135deg,#fff 45%,#f4f8ff 100%)}
.student-hub-card.video{background:linear-gradient(135deg,#fff 45%,#f3f9f8 100%)}
.student-hub-card.homework{background:linear-gradient(135deg,#fff 45%,#fff8ef 100%)}
.student-hub-icon{display:flex;flex:0 0 48px;width:48px;height:48px;align-items:center;justify-content:center;border-radius:14px;background:#edf3fb;color:#294f84;font-size:20px;font-weight:900}
.student-hub-card.video .student-hub-icon{background:#edf7f5;color:#306d62;font-size:16px}
.student-hub-card.homework .student-hub-icon{background:#fff4e4;color:#8b6225}
.student-hub-copy{min-width:0}.student-hub-title-row{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.student-hub-title-row strong{font-size:18px;color:#17345f;line-height:1.3}.student-hub-copy p{margin:8px 0 0;color:#657287;font-size:11px;line-height:1.65}.student-hub-copy p b{color:#294f84}
.student-hub-badge{display:inline-flex;padding:4px 7px;border-radius:999px;font-size:9px;font-weight:900}.student-hub-badge.danger{background:#fff0ef;color:#b42318}
.student-hub-arrow{position:absolute;right:17px;top:50%;transform:translateY(-50%);font-size:25px;color:#a7b2c2;font-weight:700}

.student-page-head{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;margin-bottom:18px}.student-page-head small{color:#7d899b;font-size:10px}.student-page-head h1{margin:3px 0 4px;font-size:22px;color:#17345f}.student-page-head p{margin:0;color:#8793a5;font-size:10px;line-height:1.55}.student-page-back{display:inline-flex;align-items:center;min-height:34px;padding:0 10px;border:1px solid #dce3ec;border-radius:9px;background:#fff;color:#536176;text-decoration:none;font-size:10px;font-weight:800}
.student-section-title-link{justify-content:space-between}.student-section-title-link>a{margin-left:auto;color:#536d93;text-decoration:none;font-size:10px;font-weight:800}.student-subsection-title{margin:13px 0 8px;font-size:12px;color:#4b5c73}.student-subsection-title.chart-title{margin-top:20px;padding-top:15px;border-top:1px solid #edf0f4}
.student-analysis-mini-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.student-analysis-mini-card{display:flex;flex-direction:column;gap:4px;padding:13px 14px;border:1px solid #e1e6ee;border-radius:12px;background:#fff;text-decoration:none}.student-analysis-mini-card small{font-size:9px;color:#8793a5}.student-analysis-mini-card strong{font-size:12px;color:#213d69}.student-analysis-mini-card span{font-size:10px;color:#667085;line-height:1.45}

.student-homework-next-card{display:grid;grid-template-columns:145px minmax(0,1fr);gap:0;border:1px solid #dfe5ee;border-radius:14px;background:#fff;overflow:hidden}.student-homework-date{display:flex;flex-direction:column;justify-content:center;padding:18px;background:#f5f8fc;border-right:1px solid #e5eaf1}.student-homework-date small{font-size:9px;color:#7d899b}.student-homework-date strong{margin-top:4px;font-size:14px;color:#244572}.student-homework-content{padding:17px 18px;display:grid;gap:11px}.student-homework-line{font-size:13px;line-height:1.7;color:#344054;font-weight:700}.student-homework-line+.student-homework-line{padding-top:11px;border-top:1px solid #edf0f4}
.student-homework-print-card{display:flex;align-items:center;gap:12px;min-height:82px;padding:14px 16px;border:1px solid #dfe5ee;border-radius:14px;background:#fff;text-decoration:none;color:inherit}.student-homework-print-card:hover{border-color:#c8d4e4;background:#fbfcfe}.student-homework-print-icon{display:flex;align-items:center;justify-content:center;flex:0 0 40px;width:40px;height:40px;border-radius:12px;background:#edf3fb;color:#294f84;font-weight:900}.student-homework-print-card>div:nth-child(2){display:flex;min-width:0;flex:1;flex-direction:column;gap:3px}.student-homework-print-card strong{font-size:13px;color:#233f6c}.student-homework-print-card span{font-size:10px;color:#7b8799;line-height:1.45}.student-homework-print-card>b{font-size:22px;color:#a7b2c2}

@media(max-width:850px){.student-hub-grid{grid-template-columns:1fr}.student-hub-card{min-height:120px}.student-analysis-mini-list{grid-template-columns:1fr}}
@media(max-width:600px){
  .student-hub-card{min-height:112px;padding:17px 38px 17px 15px;gap:11px}.student-hub-icon{width:42px;height:42px;flex-basis:42px;border-radius:12px}.student-hub-title-row strong{font-size:16px}.student-hub-copy p{font-size:10px;margin-top:5px}.student-page-head h1{font-size:20px}.student-page-head p{max-width:240px}.student-homework-next-card{grid-template-columns:1fr}.student-homework-date{border-right:0;border-bottom:1px solid #e5eaf1;padding:12px 14px}.student-homework-date{flex-direction:row;align-items:center;justify-content:space-between}.student-homework-date strong{margin:0}.student-homework-content{padding:14px}.student-homework-line{font-size:12px}
}


/* ─────────────────────────────────────
   v5.5.50 학생 하단 고정 내비게이션 / 단순 홈 / 공지
   ───────────────────────────────────── */
.student-portal-body{padding-bottom:calc(82px + env(safe-area-inset-bottom,0px))}
.student-shell{margin-bottom:32px}
.student-bottom-nav{
  position:fixed;left:0;right:0;bottom:0;z-index:80;
  display:grid;grid-template-columns:repeat(6,minmax(0,1fr));
  height:72px;padding:5px max(8px,env(safe-area-inset-right)) calc(5px + env(safe-area-inset-bottom,0px)) max(8px,env(safe-area-inset-left));
  box-sizing:content-box;background:rgba(255,255,255,.97);border-top:1px solid #dfe5ed;
  box-shadow:0 -8px 24px rgba(16,34,58,.08);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)
}
.student-bottom-item{
  min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;
  margin:0 2px;border-radius:12px;text-decoration:none;color:#7e8999;font-size:9px;font-weight:800;transition:.12s ease
}
.student-bottom-item svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.student-bottom-item.active{background:#17345f;color:#fff}.student-bottom-item.active span{font-weight:900}
.student-dashboard-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin:5px 2px 17px}.student-dashboard-head small{font-size:10px;color:#8290a3}.student-dashboard-head h1{margin:2px 0 3px;font-size:22px;color:#17345f}.student-dashboard-head p{margin:0;color:#8490a3;font-size:10px}
.student-dashboard-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.student-dashboard-stat{display:flex;flex-direction:column;min-height:112px;padding:15px;border:1px solid #dfe5ed;border-radius:14px;background:#fff;text-decoration:none;color:inherit;box-shadow:0 3px 14px rgba(20,44,77,.025)}
.student-dashboard-stat.test{background:linear-gradient(145deg,#fff 40%,#f2f7ff)}.student-dashboard-stat.print{background:linear-gradient(145deg,#fff 40%,#f3f8f6)}.student-dashboard-stat.score{background:linear-gradient(145deg,#fff 40%,#fff7ed)}
.student-dashboard-stat-label{font-size:10px;color:#65758b;font-weight:900}.student-dashboard-stat strong{margin-top:12px;font-size:25px;line-height:1;color:#17345f}.student-dashboard-stat span{margin-top:auto;padding-top:9px;font-size:9px;color:#7d8999;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.student-dashboard-panel{margin-top:13px;padding:16px;border:1px solid #dfe5ed;border-radius:15px;background:#fff}.student-dashboard-panel-head{display:flex;align-items:flex-end;justify-content:space-between;gap:10px;margin-bottom:8px}.student-dashboard-panel-head small{font-size:8px;letter-spacing:.08em;color:#7d8ca2;font-weight:900}.student-dashboard-panel-head h2{margin:2px 0 0;font-size:15px;color:#17345f}.student-dashboard-panel-head>a{font-size:9px;font-weight:900;color:#516f9c;text-decoration:none}
.student-home-chart{width:100%;overflow-x:auto;overflow-y:hidden;padding-top:3px;scrollbar-width:none}.student-home-chart::-webkit-scrollbar{display:none}.home-chart-grid{stroke:#e8edf3;stroke-width:1}.home-chart-axis,.home-chart-date{fill:#8a96a7;font-size:9px}.home-chart-line{fill:none;stroke:#3f6599;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}.home-chart-dot{fill:#fff;stroke:#355d96;stroke-width:2.5}.home-chart-value{fill:#17345f;font-size:9px;font-weight:900}
.student-dashboard-notice{margin-top:12px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 15px;border:1px solid #e1e6ed;border-radius:13px;background:#fff;text-decoration:none;color:inherit}.student-dashboard-notice>div{display:flex;min-width:0;flex-direction:column;gap:3px}.student-dashboard-notice small{font-size:8px;color:#7d8999;font-weight:900}.student-dashboard-notice strong{font-size:11px;color:#344054;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.student-dashboard-notice>span{font-size:20px;color:#a2adbc}.student-dashboard-notice.important{border-color:#f1c8c3;background:#fff8f7}.student-dashboard-notice.important small{color:#b42318}
.student-notice-list{display:grid;gap:10px}.student-notice-card{padding:17px;border:1px solid #dfe5ed;border-radius:14px;background:#fff}.student-notice-card.important{border-color:#efc3be;background:#fff9f8}.student-notice-meta{display:flex;align-items:center;justify-content:space-between;gap:10px}.student-notice-meta span{display:inline-flex;padding:3px 7px;border-radius:6px;background:#fff0ef;color:#b42318;font-size:8px;font-weight:900}.student-notice-meta span.class{background:#eef4fb;color:#345f96}.student-notice-meta span.all{background:#f2f4f7;color:#667085}.student-notice-meta time{font-size:8px;color:#98a2b3}.student-notice-card h2{margin:10px 0 8px;font-size:15px;color:#253e66}.student-notice-content{font-size:11px;line-height:1.75;color:#475467}
.notice-manage-grid{display:grid;grid-template-columns:minmax(320px,.8fr) minmax(420px,1.2fr);gap:14px}.notice-editor h2,.notice-history h2{margin:0 0 12px}.teacher-notice-list{display:grid;gap:9px}.teacher-notice-item{padding:13px;border:1px solid #e2e7ee;border-radius:10px;background:#fff}.teacher-notice-item.important{border-color:#efc5c0;background:#fff9f8}.teacher-notice-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.teacher-notice-top>div{display:flex;min-width:0;flex-direction:column;gap:3px}.teacher-notice-top small{font-size:9px;color:#8793a5}.teacher-notice-top strong{font-size:12px;color:#273f64}.teacher-notice-top>span{padding:3px 7px;border-radius:6px;background:#fff0ef;color:#b42318;font-size:8px;font-weight:900}.teacher-notice-item p{margin:8px 0 10px;font-size:10px;line-height:1.6;color:#667085}.actions.compact{display:flex;gap:6px}.actions.compact form{margin:0}.actions.compact .button{min-height:30px;padding:5px 9px;font-size:9px}.check-line{display:flex!important;align-items:center;gap:7px}.check-line input{width:auto!important}
@media(max-width:760px){.student-dashboard-summary{grid-template-columns:1fr 1fr}.student-dashboard-stat.score{grid-column:1/-1}.notice-manage-grid{grid-template-columns:1fr}}
@media(max-width:520px){
  .student-shell{width:calc(100% - 18px);margin-top:12px}.student-dashboard-head h1{font-size:20px}.student-dashboard-head p{max-width:245px}.student-dashboard-summary{gap:7px}.student-dashboard-stat{min-height:102px;padding:12px}.student-dashboard-stat strong{font-size:22px;margin-top:10px}.student-dashboard-panel{padding:13px}.student-bottom-nav{height:64px;padding-left:4px;padding-right:4px}.student-bottom-item{margin:0 1px;border-radius:10px;font-size:8px}.student-bottom-item svg{width:18px;height:18px}.student-portal-body{padding-bottom:calc(74px + env(safe-area-inset-bottom,0px))}
}


/* ─────────────────────────────────────
   v5.5.51 홈 요약 / 프린트 인라인 / 메뉴 저장 수정
   ───────────────────────────────────── */
.student-dashboard-stat em{
  margin-top:8px;font-style:normal;font-size:9px;font-weight:900;color:#4e6d98
}
.student-dashboard-print-summary{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;margin-top:13px
}
.student-dashboard-print-summary span{
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;
  min-width:0;padding:7px 4px;border-radius:8px;font-size:8px;font-weight:800
}
.student-dashboard-print-summary span b{font-size:15px;line-height:1}
.student-dashboard-print-summary .submitted{background:#ecfdf3;color:#067647}
.student-dashboard-print-summary .missing{background:#fef3f2;color:#b42318}
.student-dashboard-print-summary .revision{background:#fffaeb;color:#b54708}
.student-dashboard-stat.print>em{margin-top:auto;padding-top:8px}
.v5551-print-summary{margin-bottom:9px}
.v5551-chart-panel{margin-top:13px}

@media(max-width:760px){
  .v5551-home-summary{grid-template-columns:1fr 1fr}
  .v5551-home-summary .student-dashboard-stat.score{grid-column:1/-1}
}
@media(max-width:520px){
  .student-dashboard-print-summary{gap:4px}
  .student-dashboard-print-summary span{padding:6px 3px;font-size:7px}
  .student-dashboard-print-summary span b{font-size:14px}
}


/* ─────────────────────────────────────
   v5.5.55 학생 TEST 제출버튼 + 하단 홈바 충돌 수정
   ───────────────────────────────────── */

/* 데스크톱/태블릿에서는 기존 sticky 제출바 유지 */
.student-submitbar{
  z-index:90;
}

/* 모바일에서는 제출바가 하단 홈바 뒤에 숨지 않게 홈바 바로 위에 고정 */
@media(max-width:640px){
  .student-question-list{
    padding-bottom:165px !important;
  }

  .student-submitbar{
    position:fixed !important;
    left:0 !important;
    right:0 !important;
    bottom:calc(74px + env(safe-area-inset-bottom,0px)) !important;
    z-index:95 !important;
    display:flex !important;
    padding:8px 10px !important;
    background:rgba(244,246,249,.98) !important;
    border-top:1px solid #e3e7ed;
    box-shadow:0 -5px 16px rgba(16,34,58,.08);
    backdrop-filter:blur(8px);
    -webkit-backdrop-filter:blur(8px);
  }

  .student-submitbar .button{
    display:flex !important;
    align-items:center;
    justify-content:center;
    width:100% !important;
    height:48px !important;
    margin:0 !important;
    border-radius:10px !important;
    font-size:13px !important;
    font-weight:900 !important;
  }
}
