.hidden{display:none!important}

/* 코칭팀의 오늘 보강 확인과 영어 단어 기록 */
.coach-today-makeups{margin:18px 0}.coach-makeup-row{display:flex;align-items:center;justify-content:space-between;gap:16px}.coach-makeup-row h3{margin:7px 0 4px}.coach-makeup-row p{margin:0;color:var(--muted)}.coach-makeup-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}.coach-makeup-actions label{min-width:190px}.coach-makeup-actions input{width:100%;box-sizing:border-box}.word-test-empty{display:none}
@media(min-width:900px){.today-head,.today-row,.hide-word-test .today-head,.hide-word-test .today-row{grid-template-columns:minmax(125px,.9fr) 58px minmax(138px,1fr) minmax(125px,.9fr) minmax(165px,1.15fr) minmax(138px,1fr) minmax(270px,2fr)!important}.today-head>span:nth-child(5){display:block}.word-test-cell{display:block!important}.word-test-cell .status-group{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}.word-test-cell .status-btn{padding-inline:7px}}
@media(max-width:760px){.coach-makeup-row{align-items:stretch;flex-direction:column}.coach-makeup-actions{justify-content:stretch}.coach-makeup-actions label{min-width:0;flex:1 1 100%}.word-test-cell.word-test-empty{display:none!important}}

/* PC 학생 행: 단어는 숙제 오른쪽의 독립 열로 고정한다. */
@media(min-width:761px){
  .today-head,.today-row,.hide-word-test .today-head,.hide-word-test .today-row{grid-template-columns:minmax(118px,.9fr) 52px minmax(126px,.96fr) minmax(112px,.82fr) minmax(154px,1.1fr) minmax(300px,2.45fr)!important;gap:6px!important}
  .today-head>span:nth-child(6){display:block!important}
  .today-row>div:nth-child(1){grid-column:1!important;grid-row:1!important}
  .today-row>div:nth-child(2){grid-column:2!important;grid-row:1!important}
  .today-row>div:nth-child(3){grid-column:3!important;grid-row:1!important}
  .today-row>div:nth-child(4){grid-column:4!important;grid-row:1!important}
  .today-row>div:nth-child(5){grid-column:5!important;grid-row:1!important;display:block!important}
  .today-row>div:nth-child(6){grid-column:4/6!important;grid-row:2!important}
  .today-row>div:nth-child(7){grid-column:6!important;grid-row:1/3!important;display:grid!important}
  .word-test-cell .status-group{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:3px!important}
  .word-test-cell .status-btn{min-width:0!important;padding:4px 3px!important;font-size:10px!important}
}

/* 77c: show all 15 recent memo rows; keep each collapsed row stable instead of scrolling the list. */
#directorRecentMemoList.director-recent-memos{height:auto!important;max-height:none!important;overflow:visible!important;scrollbar-gutter:auto!important}
#directorRecentMemoList .memo-line-toggle{min-height:66px}
#directorRecentMemoList .memo-line-preview{display:-webkit-box;white-space:normal!important;line-height:1.35;height:2.7em;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;text-overflow:ellipsis}

/* Eight compact, single-line notifications inside a fixed-height scroller. */
#notifications.director-notifications-compact{height:320px!important;min-height:320px;max-height:320px}
#notifications.director-notifications-compact .notification{grid-template-columns:7px minmax(0,1fr) auto;gap:7px;min-height:40px;height:40px;padding:5px 9px}
#notifications.director-notifications-compact .notification-copy{display:flex;align-items:center;gap:6px;min-width:0;white-space:nowrap}
#notifications.director-notifications-compact .notification-copy b{flex:0 1 38%;min-width:0;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#notifications.director-notifications-compact .notification-copy small{flex:1 1 auto;min-width:0;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#notifications.director-notifications-compact .notification-open{font-size:11px;line-height:1;padding:4px 0;white-space:nowrap}
@media(max-width:700px){#directorRecentMemoList .memo-line-toggle{min-height:76px}#notifications.director-notifications-compact{height:320px!important}#notifications.director-notifications-compact .notification-copy b{flex-basis:34%}}

/* 65차: 게시판과 학생 메모를 목록 중심으로 정렬한다. */
.board-post-summary{display:grid;grid-template-columns:78px minmax(220px,1fr) 120px 92px 72px 78px;align-items:center;gap:8px;min-height:42px;padding:7px 10px}
.board-post-toggle{min-width:0;text-align:left;overflow:hidden}.board-post-toggle strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.board-post-author,.board-post-summary time,.board-comment-count,.board-receipt-count{font-size:12.5px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.board-post-summary time,.board-comment-count,.board-receipt-count{text-align:right}
.board-read-receipts{margin:10px 0;padding:9px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.board-read-receipts p{margin:4px 0;font-size:13px;line-height:1.5}
.memo-line-item{border:1px solid #d8cdc3;border-radius:10px;background:#fff;overflow:hidden}
.memo-line-toggle{display:grid;grid-template-columns:88px 72px 92px minmax(180px,1fr) 118px;gap:8px;align-items:center;width:100%;padding:9px 11px;border:0;background:transparent;color:var(--ink);text-align:left;cursor:pointer}
.memo-line-toggle>span,.memo-line-toggle time{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.memo-line-student{font-weight:800}.memo-line-subject,.memo-line-author,.memo-line-toggle time{font-size:12.5px;color:var(--muted)}
.memo-line-preview{font-size:14px}.memo-line-detail{padding:0 11px 11px;border-top:1px solid var(--line)}
.memo-line-detail>p{margin:10px 0;white-space:pre-wrap;line-height:1.6}.memo-line-detail .memo-thread-actions{display:flex;flex-wrap:wrap;gap:8px}
@media(max-width:700px){
  .board-post-summary{grid-template-columns:minmax(0,1fr) auto auto auto;grid-template-rows:auto auto;padding:8px;gap:5px 8px}
  .board-read-badge{grid-column:1}.board-post-toggle{grid-column:1/-1;grid-row:1}.board-post-toggle strong{padding-left:66px}
  .board-post-author{grid-column:1;grid-row:2}.board-post-summary time{grid-column:2;grid-row:2}.board-comment-count{grid-column:3;grid-row:2}.board-receipt-count{grid-column:4;grid-row:2}
  .memo-line-toggle{grid-template-columns:minmax(0,1fr) auto auto;grid-template-rows:auto auto;gap:4px 7px}
  .memo-line-student{grid-column:1}.memo-line-author{grid-column:2}.memo-line-toggle time{grid-column:3}.memo-line-subject{display:none}.memo-line-preview{grid-column:1/-1;grid-row:2}
}

/* 77t 상담 신청 누적·상세 관리 */
.admission-summary{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:10px 0}.admission-summary span{display:inline-flex;gap:5px;padding:7px 10px;border:1px solid var(--line);border-radius:10px;white-space:nowrap}.admission-summary small{flex:1 1 100%;color:var(--muted)}
.admission-filters{display:grid;grid-template-columns:repeat(6,minmax(120px,1fr));gap:8px;margin:12px 0}.admission-filters label{display:grid;gap:4px;font-size:12px;color:var(--muted)}.admission-filters input,.admission-filters select{min-width:0;width:100%;box-sizing:border-box}
.admission-consultation-list{display:grid;gap:7px}.admission-consultation-row{display:grid;grid-template-columns:88px 110px minmax(140px,1fr) 100px minmax(150px,1fr) 170px minmax(130px,1fr);gap:8px;align-items:center;width:100%;min-height:48px;padding:8px 10px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--ink);text-align:left;cursor:pointer}.admission-consultation-row>*{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.admission-consultation-row small{color:var(--muted)}
.admission-detail{margin-top:14px;padding:15px;border:1px solid var(--line);border-radius:14px;background:#fff}.admission-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 18px}.admission-detail-grid p{margin:4px 0}.admission-detail-grid .wide{grid-column:1/-1;white-space:pre-wrap}.admission-status-actions{display:flex;flex-wrap:wrap;align-items:end;gap:8px;margin:14px 0;padding:10px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.admission-status-actions label{display:grid;gap:4px;font-size:12px}.admission-cancel{display:flex;flex:1 1 420px;gap:7px}.admission-cancel input{flex:1;min-width:120px}
.admission-notes article{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:5px 8px;padding:9px 0;border-bottom:1px solid var(--line)}.admission-notes article p{grid-column:1/-1;margin:0;white-space:pre-wrap}.admission-notes article small{color:var(--muted)}.admission-notes textarea{width:100%;box-sizing:border-box}.admission-note-save{display:flex;justify-content:flex-end;align-items:center;gap:8px;min-height:36px}.admission-note-save span{margin-right:auto;color:#b42318}
.admission-delete-row{display:flex;justify-content:flex-end;margin-top:18px;padding-top:10px;border-top:1px solid var(--line)}.admission-delete-row .danger{color:#9f1c14}
@media(max-width:1100px){.admission-filters{grid-template-columns:repeat(3,minmax(0,1fr))}.admission-consultation-row{grid-template-columns:78px 100px minmax(130px,1fr) 90px minmax(130px,1fr)}.admission-consultation-row time,.admission-consultation-row small{grid-column:auto}}
@media(max-width:700px){.admission-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.admission-consultation-row{grid-template-columns:auto minmax(0,1fr) auto;grid-template-rows:auto auto auto}.admission-consultation-row strong{grid-column:2}.admission-consultation-row>span:nth-of-type(2){grid-column:2/-1}.admission-consultation-row>span:nth-of-type(3),.admission-consultation-row>span:nth-of-type(4){grid-column:1/-1}.admission-consultation-row time{grid-column:1/3}.admission-consultation-row small{grid-column:1/-1}.admission-detail-grid{grid-template-columns:1fr}.admission-detail-grid .wide{grid-column:1}.admission-cancel{flex-direction:column}.admission-notes article{grid-template-columns:1fr auto auto}}

/* 77d: 자동 저장은 입력칸을 다시 그리지 않고 고정된 한 줄 상태만 바꾼다. */
.input-save-status,.evaluation-message,#feedbackComposerMessage,.class-note-message{display:block;box-sizing:border-box;min-height:18px;margin-top:4px;color:#777;font-size:11.5px;line-height:18px}
.input-save-status.save-failed,.evaluation-message.save-failed,#feedbackComposerMessage.save-failed,.class-note-message.save-failed{color:#b42318!important}
.save-retry-button{border:0;background:transparent;color:#b42318;text-decoration:underline;font:inherit;font-weight:800;cursor:pointer;padding:0 3px}

/* 77d: 360~1920px 사이에서 카드와 목록의 열이 서로 침범하지 않게 단계적으로 접는다. */
@media(max-width:1024px){
  #directorAlertCards.alert-center-grid{grid-template-columns:1fr!important}
  #directorAlertCards .director-alert-card[data-code="weekly_progress"]{grid-template-columns:minmax(0,1fr) auto!important}
  #directorAlertCards .director-alert-card[data-code="weekly_progress"]>span{white-space:nowrap!important;word-break:keep-all!important;overflow:hidden!important;text-overflow:ellipsis!important}
  .teacher-command-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:600px){.teacher-command-stats{grid-template-columns:minmax(0,1fr)}.teacher-command-stats button{min-height:92px}}

.board-post-summary{grid-template-columns:auto minmax(0,1fr) minmax(80px,120px) 84px 72px 78px!important;align-items:center!important;gap:7px!important}
.board-post-toggle strong{white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;overflow-wrap:normal!important}
.board-receipt-count{white-space:nowrap;overflow:visible;text-align:right}
@media(max-width:900px){
  .board-post-summary{grid-template-columns:minmax(0,1fr) auto auto auto auto!important;grid-template-rows:auto auto!important}
  .board-post-toggle{grid-column:1/-1;grid-row:1}.board-read-badge{grid-column:1;grid-row:2}.board-post-author{grid-column:2;grid-row:2}.board-post-summary time{grid-column:3;grid-row:2}.board-comment-count{grid-column:4;grid-row:2}.board-receipt-count{grid-column:5;grid-row:2}
}
@media(max-width:600px){
  .board-post-summary{grid-template-columns:minmax(0,1fr) auto!important;grid-template-rows:auto auto auto auto!important}
  .board-post-toggle{grid-column:1/-1;grid-row:1}.board-read-badge{grid-column:1;grid-row:2}.board-receipt-count{grid-column:2;grid-row:2}.board-post-author{grid-column:1;grid-row:3}.board-post-summary time{grid-column:2;grid-row:3}.board-comment-count{grid-column:1/-1;grid-row:4;text-align:left}
}

@media(max-width:1200px) and (min-width:701px){
  .makeup-list-row{grid-template-columns:minmax(130px,.9fr) minmax(90px,.6fr) minmax(90px,.65fr)!important;align-items:start}
  .makeup-list-row>time{grid-column:1}.makeup-list-row>strong{grid-column:2}.makeup-list-row>span:not(.makeup-class-cell){grid-column:3}
  .makeup-list-row>.makeup-class-cell{grid-column:1}.makeup-list-row>.makeup-reason-toggle{grid-column:2}.makeup-list-row>.makeup-row-actions{grid-column:3;justify-content:flex-end}
}
@media(max-width:900px){.teacher-preview-session .teacher-preview-line{flex-wrap:wrap;white-space:normal}.teacher-preview-line strong{flex:1 1 100%;min-width:0}.teacher-preview-session .preview-statuses{flex:1 1 100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;gap:8px}.teacher-preview-session .preview-statuses span{text-align:center}}

/* 62차: 보강 일정 내 학생/전체 및 한 줄 목록 */
.makeup-scope-bar{display:flex;gap:8px;justify-content:flex-end;margin:0 0 14px}.makeup-scope-bar.hidden{display:none}.makeup-scope-bar .status-btn{min-width:88px;background:transparent}.makeup-scope-bar .status-btn.active{border-color:#b2512f;color:#b2512f;font-weight:800}
.makeup-list{display:grid;gap:7px}.makeup-list-row{display:grid;grid-template-columns:minmax(120px,.8fr) minmax(72px,.55fr) minmax(62px,.45fr) minmax(210px,1.6fr) minmax(140px,1fr) auto;align-items:center;gap:10px;padding:10px 12px;border:1px solid #d8d0c9;border-radius:10px;background:#fff}.makeup-list-row time,.makeup-list-row>span,.makeup-list-row>strong{min-width:0}.makeup-class-cell{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.makeup-class-cell small{display:block;color:#6f625b;overflow:hidden;text-overflow:ellipsis}.makeup-reason-toggle{min-width:0;max-width:100%;padding:0;border:0;background:transparent;color:#554943;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer}.makeup-reason-toggle.expanded{white-space:normal;overflow:visible}.makeup-row-actions{display:flex;align-items:center;justify-content:flex-end;gap:6px;flex-wrap:wrap}.makeup-row-actions .status-btn,.makeup-row-actions select,.makeup-row-actions input{min-height:34px;background:#fff}.makeup-row-actions select{max-width:230px}
@media(max-width:700px){.makeup-scope-bar{justify-content:stretch}.makeup-scope-bar .status-btn{flex:1}.makeup-list-row{grid-template-columns:minmax(0,1fr) auto;gap:5px 9px;padding:10px}.makeup-list-row time{grid-column:1}.makeup-list-row>strong{grid-column:2;grid-row:1;text-align:right}.makeup-list-row>span:not(.makeup-class-cell){grid-column:1}.makeup-class-cell{grid-column:2;grid-row:2 / span 2;text-align:right;white-space:normal}.makeup-reason-toggle{grid-column:1 / -1}.makeup-row-actions{grid-column:1 / -1;justify-content:flex-start;margin-top:3px}.makeup-row-actions select,.makeup-row-actions input{width:100%;max-width:none}.makeup-row-actions .status-btn{flex:1}.makeup-list{min-width:0}}

/* 결석 학생의 보강 신청·미실시 처리 */
.absent-makeup-actions,.inline-makeup-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.danger-outline{color:#b54835!important;border:1px solid #d9a293!important;background:transparent!important}
.danger-outline:hover{border-color:#b54835!important;background:rgba(181,72,53,.06)!important}
.makeup-waiver-dialog textarea{width:100%;box-sizing:border-box;resize:vertical}
.makeup-waiver-dialog .evaluation-actions{justify-content:flex-end;margin-top:16px}
.makeup-waiver-dialog .makeup-waiver-message{min-height:1.4em;color:#b54835}
@media(max-width:700px){.absent-makeup-actions,.inline-makeup-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}.absent-makeup-actions button,.inline-makeup-actions button{width:100%!important;min-width:0}.makeup-waiver-dialog .evaluation-actions{display:grid;grid-template-columns:1fr}.makeup-waiver-dialog .evaluation-actions button{width:100%}}

.memo-thread-actions{display:flex;align-items:center;justify-content:flex-end;gap:.5rem;flex-wrap:wrap}
.memo-read-state{font-size:12px}.memo-read-state.confirmed{color:var(--muted);font-weight:700}.memo-read-state.pending{background:#fff1cf;color:#7a5200}
.memo-comment-thread{display:grid;gap:.5rem;margin-top:.7rem;padding-left:1rem;border-left:3px solid #e7dcc4}
.memo-thread-reply{display:grid;gap:.3rem;padding:.65rem .75rem;border-radius:12px;background:#faf7f0}
.memo-thread-reply>div{display:flex;align-items:center;justify-content:space-between;gap:.5rem}.memo-thread-reply p{margin:0;white-space:pre-wrap}.memo-thread-reply small{color:var(--muted)}
.note-reply-form{display:grid;gap:.5rem;margin-top:.7rem;padding-top:.7rem;border-top:1px solid #e7dcc4}.note-reply-form>div{display:flex;gap:.5rem;justify-content:flex-end}

.evaluation-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:12px;
}
@media(min-width:1024px){
  .evaluation-grid{
    grid-template-columns:repeat(auto-fit,minmax(320px,1fr))!important;
    gap:10px!important;
  }
  .evaluation-card{
    padding:12px!important;
    font-size:12px!important;
  }
  .simple-feedback-result{
    margin-top:10px!important;
    padding:10px!important;
  }
  .simple-feedback-result dl{
    gap:6px!important;
  }
  .simple-feedback-result dd{
    line-height:1.35!important;
    font-size:11px!important;
  }
}
.teacher-card-withdrawal{display:block;margin:10px 0 0 auto;padding:3px 0!important;font-size:12px!important;color:var(--muted)!important;text-decoration:underline}.teacher-card-withdrawal:hover{color:var(--accent)!important}.teacher-card-withdrawal.is-pending{color:var(--accent)!important;text-decoration:none;cursor:default}
body:has(#familyDashboard:not(.hidden)) #notificationSection,body:has(#familyDashboard:not(.hidden)) #noticeSection{display:none!important}
.absence-lesson-item{display:flex;align-items:center;gap:9px;margin:8px 0;padding:10px 12px;border:1px solid var(--line);border-radius:9px;background:#fff;cursor:pointer}.absence-lesson-item input{width:18px;height:18px;margin:0;accent-color:var(--red)}
.header-actions{display:flex;align-items:center;gap:12px}.bell{background:transparent;color:#dbc497;font-size:17px}.bell b{display:inline-grid;place-items:center;background:var(--red);color:#fff;border-radius:20px;min-width:20px;height:20px;font-size:11px}.device-option{display:flex;align-items:center;gap:9px;font-weight:500}.device-option input{display:inline-block;width:18px;margin:0}.device-help{font-size:12px;color:var(--muted);margin-top:-8px}.notice-important{border-left:4px solid var(--gold)}.unread-card{background:#fffcf5;border-color:#dac18d}
.toolbar{display:flex;justify-content:space-between;align-items:end;gap:16px;margin:4px 0 16px}.toolbar input{width:auto;min-width:150px}.task-summary{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.task-card{padding:16px;text-align:left;border-radius:14px;background:#fff;border:1px solid #eadfd5;color:var(--ink)}.task-card strong{display:block;font-size:25px;color:var(--red);margin-top:7px}.today-head{display:none}.today-row{display:grid;gap:12px;background:#fff;border:1px solid #e8e2d8;border-radius:16px;padding:17px;margin-bottom:10px}.student-name{font-weight:900}.status-group{display:flex;flex-wrap:wrap;gap:6px}.status-btn{padding:9px 11px;border-radius:9px;background:var(--beige);color:var(--ink);font-size:13px}.status-btn.selected{background:var(--navy);color:#fff}.warning-text{color:var(--red);font-weight:800;font-size:13px}.ok-text{color:#53705b;font-size:13px}.mobile-label{font-size:11px;color:var(--muted);font-weight:800;display:block;margin-bottom:5px}.desktop-scroll{overflow-x:auto}
.warning-text{display:inline-block;color:#fff;background:var(--red);font-weight:700;font-size:12px;padding:4px 10px;border-radius:20px;margin:2px 4px 2px 0}.ok-text{display:inline-block;color:#fff;background:#53705b;font-size:12px;font-weight:700;padding:4px 10px;border-radius:20px}
@media(min-width:1200px){main{max-width:1680px;padding-left:34px;padding-right:34px}.task-summary{grid-template-columns:repeat(4,1fr)}.today-head,.today-row{display:grid;grid-template-columns:minmax(140px,1fr) 70px minmax(180px,1.25fr) minmax(175px,1.2fr) minmax(140px,.9fr) minmax(300px,2.25fr) minmax(105px,.75fr);gap:12px;align-items:center}.today-head{padding:12px 17px;color:var(--muted);font-size:12px;font-weight:800}.today-row{min-width:0}.today-row .mobile-label{display:none}.cards.staff-grid{grid-template-columns:repeat(4,minmax(180px,1fr))}}
.student-detail-link{display:block;border:0;background:transparent;padding:0;color:var(--navy);font-weight:900;text-align:left;cursor:pointer}.student-detail-link:hover{text-decoration:underline}.homework-reason{font-size:.78rem;line-height:1.45;color:var(--muted);word-break:break-word}.weekly-note-cell{min-width:0}.weekly-note-log{display:grid;gap:.4rem;max-height:150px;overflow-y:auto;margin-bottom:.55rem;padding:.45rem;border-radius:8px;background:#faf8f4}.weekly-note-log small{display:block;color:var(--muted);line-height:1.5}.weekly-note-entry{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:stretch;gap:.4rem}.weekly-note-entry input{min-width:0;width:100%;min-height:72px;border:1px solid #cfc9bf;border-radius:9px;padding:.7rem;white-space:normal}.weekly-note-entry button{min-width:54px}
@media(max-width:700px){.weekly-note-entry{grid-template-columns:1fr}.weekly-note-entry input{min-height:82px}.weekly-note-entry button{width:100%}}
.student-count-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(135px,1fr));gap:.6rem;margin-bottom:1rem}.student-count-summary>div{padding:1rem;border:1px solid var(--line);border-left:3px solid var(--red);border-radius:12px;background:#fff}.student-count-summary span,.student-count-summary small{display:block;color:var(--muted);font-size:.72rem}.student-count-summary strong{display:block;margin:.25rem 0;color:var(--navy);font-size:1.45rem}
.class-transfer-tool{max-width:920px}.transfer-selection{margin:1rem 0;padding:.9rem;border-radius:10px;background:#f6f3ed;color:var(--navy)}.search-result-list{display:grid;gap:.35rem;margin:.5rem 0 1rem}.search-result{display:flex;align-items:center;justify-content:space-between;gap:1rem;width:100%;padding:.75rem .9rem;border:1px solid var(--line);border-radius:9px;background:#fff;text-align:left;cursor:pointer}.search-result span{color:var(--muted);font-size:.78rem}.search-result:hover,.search-result.selected{border-color:var(--red);background:#fff7f3}
.search-result.transfer-class.unavailable{opacity:.72;cursor:not-allowed;background:#f7f7f7}.search-result.transfer-class span{text-align:right;line-height:1.45}
.subject-stop-panel{margin-top:1.2rem;padding-top:1.2rem;border-top:1px solid var(--line)}.subject-stop-panel>p{margin-bottom:.8rem}.subject-stop-list{display:grid;gap:.45rem;margin-bottom:1rem}.subject-stop-list label{display:flex;align-items:center;gap:.65rem;padding:.75rem;border:1px solid var(--line);border-radius:9px;background:#fff;cursor:pointer}.subject-stop-list input{width:18px;height:18px}.subject-stop-panel .status-btn{margin-top:.75rem}
.timetable-class{cursor:pointer}
.timetable-class:focus-visible{outline:2px solid var(--accent,#c8663d);outline-offset:2px}
.timetable-class span small{color:var(--accent,#c8663d);font-weight:700;margin-left:.35rem}
.timetable-students{display:flex;flex-wrap:wrap;gap:.35rem;margin-top:.65rem;padding-top:.65rem;border-top:1px solid rgba(120,120,120,.2)}
.timetable-students.hidden{display:none}
.timetable-students em{display:inline-flex;padding:.25rem .5rem;border-radius:999px;background:rgba(200,102,61,.1);font-size:.78rem;font-style:normal}
.class-batch-grid{display:none!important}
.class-batch-card{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.85rem 1rem;border:1px solid rgba(120,120,120,.18);border-radius:14px;background:var(--surface,#fff)}
.class-batch-card small{display:block;margin-top:.25rem;color:var(--muted,#6f6f6f)}
.batch-daily[data-kind="attendance"]{display:none!important}
.writing-guidance{margin:0 0 14px;padding:16px 18px;border:1px solid #dcc9a4;border-left:4px solid var(--gold);border-radius:12px;background:#fffaf0;color:var(--ink)}.writing-guidance strong{display:block;margin-bottom:7px;color:var(--navy);font-size:.9rem}.writing-guidance p{margin:0;color:#625e58;font-size:.82rem;line-height:1.65}.writing-guidance small{display:block;margin-top:8px;padding-top:8px;border-top:1px solid rgba(170,135,75,.22);color:var(--muted);line-height:1.55}
.attendance-change-panel{margin-top:10px;border:1px solid var(--line);border-radius:12px;background:#fff}.attendance-change-panel summary{cursor:pointer;padding:13px 15px;color:var(--navy);font-weight:800}.attendance-change-panel summary strong{color:var(--red)}.attendance-change-panel>div{padding:0 15px 12px}.attendance-change-panel p{margin:0;padding:9px 0;border-top:1px solid var(--line);font-size:.8rem}.attendance-change-panel small{float:right;color:var(--muted)}
.memo-progress{display:flex;align-items:center;gap:14px;margin:0 0 10px;padding:13px 15px;border:1px solid var(--line);border-left:4px solid var(--green);border-radius:12px;background:#fff}.memo-progress span{color:var(--muted);font-size:.78rem}.memo-progress strong{margin-left:auto;color:var(--navy)}.memo-progress em{font-style:normal;font-size:.78rem;color:var(--green)}.memo-progress.closing{border-left-color:var(--gold);background:#fffaf2}.memo-progress.overdue{border-left-color:var(--red);background:#fff7f5}.memo-progress.overdue em{color:var(--red)}.memo-planned .badge{background:#eef4ef;color:var(--green)}.memo-closing .badge{background:#fff1d8;color:#8a641e}.memo-overdue .badge{background:#fde7e1;color:var(--red)}
@media(max-width:700px){.memo-progress{align-items:flex-start;flex-direction:column;gap:5px}.memo-progress strong{margin-left:0}}
.feedback-parent-preview{margin:14px 0;padding:20px;border:2px solid var(--gold);border-radius:14px;background:#fff;box-shadow:0 14px 36px rgba(34,29,25,.1)}.feedback-preview-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding-bottom:13px;border-bottom:1px solid var(--line)}.feedback-preview-head h3{margin:8px 0 0;color:var(--navy)}.feedback-parent-preview>p{display:grid;grid-template-columns:130px minmax(0,1fr);gap:12px;margin:0;padding:13px 0;border-bottom:1px solid var(--line);font-size:.85rem;line-height:1.65}.feedback-parent-preview>p b{color:var(--navy)}.feedback-parent-preview .primary{margin-top:16px}
@media(max-width:700px){.feedback-parent-preview>p{grid-template-columns:1fr;gap:5px}}
.notification{cursor:pointer}.notification small{display:block;margin-top:9px;color:var(--gold);font-weight:800}.notification-target-highlight{animation:notification-target-pulse 1.8s ease}@keyframes notification-target-pulse{0%,100%{box-shadow:none}25%,70%{box-shadow:0 0 0 4px rgba(200,102,61,.24)}}
.notice-detail{scroll-margin-top:90px}.notice-detail h3{margin-top:11px}.notice-detail p{font-size:.86rem;line-height:1.75}.notice-detail .text-button{display:inline-block;margin-top:8px;border:1px solid var(--line)}
.pwa-install-banner{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:0 0 18px;padding:16px 18px;border:1px solid rgba(200,102,61,.32);border-left:4px solid var(--red);border-radius:13px;background:#fff8f3}.pwa-install-banner strong{color:var(--navy)}.pwa-install-banner p{margin:5px 0 0;color:var(--muted);font-size:.8rem}.pwa-install-banner>div:last-child{display:flex;align-items:center;gap:7px}.pwa-install-banner .primary{width:auto;white-space:nowrap}
@media(max-width:700px){.pwa-install-banner{align-items:stretch;flex-direction:column}.pwa-install-banner>div:last-child{justify-content:flex-end}}
.self-registration{grid-column:2}.self-registration .form-message{min-height:20px;margin-top:12px}@media(max-width:899px){.self-registration{grid-column:auto}}
.reset-pin-box{margin:14px 0;padding:18px;border:1px solid var(--line);border-radius:12px;background:var(--paper)}.reset-pin-box .panel-heading{margin-bottom:15px;padding-bottom:12px}.reset-pin-box .panel-heading h3{margin:0 0 6px;color:var(--navy);font-size:17px}.reset-pin-box label{margin-bottom:12px}.reset-pin-actions{display:flex;align-items:center;gap:8px}.reset-pin-actions .primary{width:auto;padding:11px 18px}.reset-pin-box .form-message{min-height:20px;margin:10px 0 0;line-height:1.5}
.family-overview{margin-bottom:28px}.family-overview-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:12px}.family-overview-head h2{margin:5px 0 0;color:var(--navy);font-size:22px}.family-overview-grid{display:grid;grid-template-columns:1.35fr 1fr 1fr;gap:10px}.family-overview-card{border-top:3px solid var(--gold)}.family-overview-card>span{color:var(--muted);font-size:13px;font-weight:800}.family-overview-card>strong{display:block;margin:8px 0;color:var(--navy);font-size:25px}.family-overview-card p{font-size:14px}.family-overview-card small{font-size:12px}.perfect-attendance{color:var(--green)}
@media(max-width:700px){.family-overview-head{align-items:flex-start;flex-direction:column}.family-overview-grid{grid-template-columns:1fr}.family-overview-card{padding:16px}}
@media(max-width:700px){.class-batch-card{align-items:flex-start;flex-direction:column}.class-batch-card .status-group{width:100%}.class-batch-card button{flex:1}}
.workspace-view-hidden{display:none!important}
.staff-view-nav{position:sticky;top:0;z-index:20;display:flex;gap:.4rem;overflow-x:auto;margin:0 0 1rem;padding:.65rem;background:rgba(248,246,242,.96);border:1px solid var(--line);border-radius:14px;backdrop-filter:blur(12px);scrollbar-width:none}
.staff-view-nav::-webkit-scrollbar{display:none}.staff-view-nav button{flex:0 0 auto;border:0;border-radius:10px;background:transparent;color:var(--muted);padding:.7rem .9rem;font-weight:800;white-space:nowrap;cursor:pointer}.staff-view-nav button.active{background:var(--navy);color:#fff}.staff-view-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:1rem;margin:1.4rem 0 1rem;padding-bottom:1rem;border-bottom:1px solid var(--line)}.staff-view-heading span{font-size:.7rem;font-weight:900;letter-spacing:.15em;color:var(--red)}.staff-view-heading h2{margin:.2rem 0 0;font-size:1.65rem}.staff-view-heading p{margin:0;color:var(--muted);font-size:.85rem}.mobile-nav.staff-bottom-hidden{display:none!important}
.staff-view-nav{pointer-events:auto}.staff-view-nav button{position:relative;z-index:1;pointer-events:auto;touch-action:manipulation}
@media(max-width:700px){.staff-view-nav{margin-left:-.35rem;margin-right:-.35rem;border-radius:10px}.staff-view-heading{display:block}.staff-view-heading p{margin-top:.45rem}.staff-view-heading h2{font-size:1.4rem}}
/* 모바일·태블릿 원장 화면에서는 축약 하단 메뉴 대신 전체 업무 카테고리를 항상 노출한다. */
@media(max-width:899px){
  #staffDashboard:not(.hidden) #staffViewNav.staff-view-nav{display:flex!important}
  #staffDashboard:not(.hidden) #staffViewHeading.staff-view-heading{display:flex!important}
  body:has(#staffDashboard:not(.hidden)) #nav.mobile-nav{display:none!important}
}

/* 학부모 전용: 수업 일정·피드백 두 화면 */
.parent-view-nav{position:sticky;top:0;z-index:15;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin:0 0 22px;padding:6px;border:1px solid var(--line);border-radius:14px;background:rgba(248,246,242,.96);backdrop-filter:blur(10px)}
.parent-view-nav button{min-height:52px;border:0;border-radius:10px;background:transparent;color:var(--muted);font-size:16px;font-weight:900;cursor:pointer}.parent-view-nav button.active{background:var(--navy);color:#fff}
.parent-calendar-guide{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:15px 17px;border:1px solid var(--line);border-radius:12px;background:#fff}.parent-calendar-guide span{color:var(--muted);font-size:13px}
.parent-calendar-weekdays,.parent-calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}.parent-calendar-weekdays{margin-top:12px;background:var(--navy);color:#fff;border-radius:12px 12px 0 0}.parent-calendar-weekdays b{padding:11px;text-align:center;font-size:13px}.parent-calendar-grid{border-left:1px solid var(--line);border-top:1px solid var(--line)}
.parent-calendar-day{min-height:126px;padding:9px;border-right:1px solid var(--line);border-bottom:1px solid var(--line);background:#fff}.parent-calendar-day.empty{background:#f5f2ed}.parent-calendar-day>strong{display:block;margin-bottom:7px;color:var(--muted)}.parent-calendar-day.has-class>strong{color:var(--navy)}
.parent-calendar-class{display:grid;gap:4px;margin-top:5px;padding:8px;border-radius:9px;background:#f7eee8}.parent-calendar-class b{font-size:12px;line-height:1.35}.parent-calendar-class span{color:var(--muted);font-size:11px;line-height:1.35}.calendar-absence-open{margin-top:3px;padding:7px;border:1px solid rgba(200,102,61,.35);border-radius:7px;background:#fff;color:var(--red);font-size:11px;font-weight:900;cursor:pointer}
@media(max-width:700px){.parent-calendar-guide{display:block}.parent-calendar-guide span{display:block;margin-top:5px}.parent-calendar-weekdays b{padding:8px 2px;font-size:11px}.parent-calendar-day{min-height:86px;padding:4px}.parent-calendar-day>strong{font-size:11px}.parent-calendar-class{padding:5px}.parent-calendar-class b{font-size:10px}.parent-calendar-class span{display:none}.calendar-absence-open{width:100%;padding:6px 2px;font-size:9px}}

/* 2026-10-04 학부모 앱: 아이·피드백·상담·학원소식 네 화면과 요일 색상 */
.mobile-nav.parent-bottom-hidden{display:none!important}
.parent-category-tabs{grid-template-columns:repeat(4,minmax(0,1fr))!important;position:sticky;top:76px;z-index:14;background:rgba(246,244,239,.96);padding:6px;backdrop-filter:blur(10px)}
.parent-category-tabs button{min-width:0;padding-inline:6px!important;white-space:nowrap}
.parent-announcement-strip{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px;width:100%;margin:0 0 14px;padding:11px 13px;border:1px solid #ead8c7;border-radius:11px;background:#fff9f3;color:var(--ink);text-align:left;cursor:pointer}
.parent-announcement-strip b{color:var(--accent-fill);font-size:12px;white-space:nowrap}.parent-announcement-strip span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}.parent-announcement-strip em{color:var(--muted);font-size:11px;font-style:normal;white-space:nowrap}
.parent-calendar-lesson{border-left:4px solid transparent!important}.parent-calendar-lesson[data-day="mon"]{border-left-color:#3b82f6!important}.parent-calendar-lesson[data-day="tue"]{border-left-color:#0f8f83!important}.parent-calendar-lesson[data-day="wed"]{border-left-color:#d97706!important}.parent-calendar-lesson[data-day="thu"]{border-left-color:#2f8f46!important}.parent-calendar-lesson[data-day="fri"]{border-left-color:#7c3aed!important}.parent-calendar-lesson[data-day="sat"]{border-left-color:#c2414d!important}.parent-calendar-lesson[data-day="sun"]{border-left-color:#64748b!important}
.parent-feedback-teacher{margin:6px 0 12px!important;color:var(--accent-fill)!important;font-weight:800}.parent-site-link{color:var(--accent-fill);font-size:13px;font-weight:900;text-decoration:none}.parent-site-link:hover{text-decoration:underline}
@media(max-width:700px){.parent-category-tabs{top:68px;gap:4px!important;margin-inline:-4px!important}.parent-category-tabs button{padding:11px 3px!important;font-size:12px}.parent-announcement-strip{grid-template-columns:auto minmax(0,1fr);gap:7px}.parent-announcement-strip em{display:none}}
.my-classes-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:.65rem}.my-class-card{position:relative;display:grid;gap:.35rem;text-align:left;border:1px solid var(--line);border-left:3px solid var(--red);border-radius:12px;background:#fff;padding:1rem;cursor:pointer;color:var(--ink)}.my-class-card span{font-size:.7rem;font-weight:900;color:var(--red)}.my-class-card strong{padding-right:2.5rem}.my-class-card small{color:var(--muted);line-height:1.5}.my-class-card em{position:absolute;right:1rem;top:1rem;font-size:.75rem;font-style:normal;font-weight:900;color:var(--green)}
.my-classes-grid{gap:7px}.my-class-card{gap:3px;padding:.68rem .75rem;border-radius:9px}.my-class-card strong{font-size:.88rem;line-height:1.3}.my-class-card small{font-size:.7rem;line-height:1.35}.my-class-card em{right:.7rem;top:.65rem}
@media(max-width:700px){.my-classes-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.my-class-card{min-width:0;padding:.58rem .62rem}.my-class-card strong{padding-right:1.7rem;font-size:.78rem;overflow-wrap:anywhere}.my-class-card small{font-size:.64rem}.my-class-card em{right:.5rem;top:.5rem;font-size:.68rem}}
.teacher-preview-bar{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:1rem;padding:1.15rem 1.25rem;border:1px solid rgba(200,102,61,.32);border-left:4px solid var(--red);border-radius:14px;background:linear-gradient(135deg,#fff,#fff8f3)}.teacher-preview-bar h2{margin:.35rem 0 .2rem}.teacher-preview-bar p{margin:0;color:var(--muted)}.teacher-preview-bar .family-controls{margin:0;justify-content:flex-end}.teacher-preview-bar select,.teacher-preview-bar input{min-width:150px}.my-class-card.preview-only{cursor:default}.my-class-card.preview-only p{margin:.35rem 0 0;color:var(--muted);font-size:.78rem;line-height:1.5}.teacher-preview-session{display:flex;align-items:center;justify-content:space-between;gap:1rem}.teacher-preview-session h3{margin:.45rem 0 .25rem}.teacher-preview-session h3 small{color:var(--muted);font-weight:600}.preview-statuses{display:flex;flex-wrap:wrap;gap:.4rem}.preview-statuses span{display:inline-flex;padding:.38rem .58rem;border-radius:8px;background:#f1f5f1;color:#49614e;font-size:.75rem;font-weight:800}.preview-statuses span.warning,.task-card.warning{background:#fff1ec;color:var(--red)}.teacher-preview-problem h3{margin:.7rem 0 .2rem}.preview-clear{border-color:#cbdcca;background:#f7fbf7;color:#49614e}
@media(max-width:700px){.teacher-preview-bar,.teacher-preview-session{align-items:stretch;flex-direction:column}.teacher-preview-bar .family-controls{display:grid;grid-template-columns:1fr}.teacher-preview-bar select,.teacher-preview-bar input,.teacher-preview-bar button{width:100%}.teacher-preview-session .preview-statuses{margin-top:.35rem}}
@media (min-width:900px) and (max-width:1199px){
  .staff-view-nav{position:static;flex-wrap:wrap;overflow:visible}
  .staff-view-nav button{padding:.62rem .72rem}
  .table-shell{border:0;background:transparent;overflow:visible}
  .today-head{display:none}
  .today-row,.hide-word-test .today-row{min-width:0;display:grid;grid-template-columns:minmax(180px,1.25fr) minmax(90px,.7fr) minmax(0,1.6fr);gap:14px;background:#fff;border:1px solid var(--line);border-radius:12px;padding:17px;margin-bottom:10px;align-items:start}
  .today-row>div,.hide-word-test .today-row>div{min-width:0}
  .today-row>div:first-child{grid-column:1/-1;padding-bottom:11px;border-bottom:1px solid var(--line)}
  .today-row>div:last-child{grid-column:1/-1}
  .today-row .mobile-label{display:block}
  .today-row .status-group{flex-wrap:wrap}
  .today-row .status-btn{padding:8px 9px}
}
.no-special-note{display:none!important}
.schedule-manager-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(290px,1fr));gap:.8rem}.schedule-manage-card{display:flex;align-items:center;justify-content:space-between;gap:1rem}.schedule-manage-card h3{margin:.45rem 0}.schedule-manage-card p{margin:0;color:var(--muted)}

/* 반·시간표 목록은 검색 도구와 카드 목록을 세로로 분리해 전체 폭을 사용한다. */
#operationSchedules.cards{display:block}
#operationSchedules>.class-transfer-tool{max-width:none;margin:0 0 .65rem;padding:.7rem .8rem;display:grid;grid-template-columns:auto 1fr minmax(260px,420px);align-items:center;gap:.35rem .8rem}
#operationSchedules>.class-transfer-tool h3,#operationSchedules>.class-transfer-tool p{margin:0}
#operationSchedules>.class-transfer-tool p{font-size:.76rem;color:var(--muted)}
#operationSchedules>.class-transfer-tool label{display:flex;align-items:center;gap:.45rem;margin:0;font-size:.75rem;white-space:nowrap}
#operationSchedules>.class-transfer-tool input{width:100%;min-width:0;padding:.55rem .65rem}
#operationSchedules>.schedule-manager-grid{grid-template-columns:repeat(auto-fill,minmax(245px,1fr));gap:.5rem}
#operationSchedules .schedule-manage-card{min-height:0;padding:.65rem .72rem;gap:.55rem}
#operationSchedules .schedule-manage-card h3{margin:.25rem 0;font-size:.88rem;line-height:1.25}
#operationSchedules .schedule-manage-card p{font-size:.7rem;line-height:1.35}
#operationSchedules .schedule-manage-card .badge{font-size:.62rem;padding:.22rem .35rem}
#operationSchedules .schedule-manage-card .schedule-edit{flex:0 0 auto;padding:.48rem .62rem}
@media(max-width:700px){#operationSchedules>.class-transfer-tool{display:grid;grid-template-columns:1fr;padding:.65rem}#operationSchedules>.class-transfer-tool label{white-space:normal}#operationSchedules>.schedule-manager-grid{grid-template-columns:1fr}}

/* 보강은 별도 '보강 일정' 메뉴에서 관리하므로 학생·수업 설정 탭에서는 중복 노출하지 않는다. */
#operationsSection:not(.makeup-management-only) .operations-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}
#operationsSection:not(.makeup-management-only) [data-operations-tab="makeup"]{display:none}
.record-reason{font-size:.78rem;line-height:1.45;color:var(--muted);word-break:break-word}
@media(min-width:1200px){.today-head,.today-row,.hide-word-test .today-head,.hide-word-test .today-row{grid-template-columns:minmax(135px,1fr) 70px minmax(180px,1.2fr) minmax(125px,.85fr) minmax(175px,1.15fr) minmax(125px,.85fr) minmax(260px,2fr) minmax(105px,.7fr)}.hide-word-test .today-head>span:nth-child(5),.hide-word-test .today-row>div:nth-child(5){display:block}}
.student-day-editor .student-schedule-days{padding:14px 0;border-top:1px solid var(--line)}.weekday-options{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}.weekday-options label{padding:9px 11px;border:1px solid var(--line);border-radius:9px;background:#fff}.timetable-class mark{background:#f7e8df;color:#a64e2d;padding:2px 5px;border-radius:5px}.timetable-students .non-attending{border-color:#e8c6b7;color:#a64e2d;background:#fff7f2}
.student-record-tabs{display:flex;gap:.5rem;margin:8px 0 22px;padding:5px;background:#ebe7e1;border-radius:12px;width:max-content}.student-record-tabs .status-btn{min-width:130px;border:0;background:transparent}.student-record-tabs .status-btn.active{background:var(--ink);color:#fff}.other-student-record{cursor:pointer}.other-student-record:hover{border-color:var(--gold)}
.accumulated-note-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:.8rem}.accumulated-note-card{display:grid;gap:.55rem}.accumulated-note-card>div{display:flex;align-items:center;justify-content:space-between;gap:.6rem}.accumulated-note-card p{margin:0;white-space:pre-wrap;line-height:1.55}.accumulated-note-card small{color:var(--muted)}
.consultation-subjects{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 16px;padding:14px;border:1px solid var(--line);background:#fff}.consultation-subjects legend{padding:0 6px;color:var(--navy);font-size:13px;font-weight:900}.consultation-subjects legend small{color:var(--muted);font-weight:600}.consultation-subjects label{display:flex;align-items:center;gap:7px;min-width:86px;padding:10px 13px;border:1px solid var(--line);border-radius:9px;background:var(--paper);cursor:pointer;font-size:14px;font-weight:800}.consultation-subjects input{width:18px;height:18px;margin:0;accent-color:var(--gold)}
.student-current-enrollments{display:grid;gap:7px;margin:12px 0;padding:10px;border-radius:10px;background:#f7f5f1}.enrollment-row{display:grid;grid-template-columns:minmax(130px,.8fr) minmax(180px,1.5fr) minmax(90px,.6fr);align-items:center;gap:10px;padding:8px 10px;border-bottom:1px solid var(--line)}.enrollment-row:last-child{border-bottom:0}.enrollment-row b{color:var(--navy)}.enrollment-row span,.enrollment-row small{color:var(--muted);line-height:1.45}.current-enrollment-card .enrollment-row{padding:12px 0}
.student-overview{min-width:0;overflow:hidden}.student-overview .student-current-enrollments{min-width:0}.student-overview .enrollment-row{grid-template-columns:1fr;gap:5px;align-items:start}.student-overview .enrollment-row b,.student-overview .enrollment-row span,.student-overview .enrollment-row small{display:block;min-width:0;overflow-wrap:anywhere;word-break:keep-all}.student-overview .enrollment-row span{font-size:12px}.student-overview .enrollment-row small{font-size:11px}.student-overview .student-schedule-change{width:100%;margin-top:14px}
#studentHistoryPanel{position:fixed;z-index:1000;inset:3vh max(12px,calc((100vw - 980px)/2));overflow-y:auto;padding:18px;border:1px solid var(--line);border-radius:18px;background:var(--paper);box-shadow:0 24px 80px rgba(20,28,38,.35)}#studentHistoryPanel>.section-bar{position:sticky;z-index:2;top:-18px;margin:-18px -18px 14px;padding:18px;background:rgba(248,246,242,.97);backdrop-filter:blur(10px)}body.student-popup-open{overflow:hidden}body.student-popup-open:before{content:"";position:fixed;z-index:999;inset:0;background:rgba(20,28,38,.46)}.history-quick-memo{display:grid;gap:9px;margin:0 0 14px;padding:12px;border-radius:10px;background:#fff}.history-quick-memo textarea{width:100%;min-height:100px;resize:vertical}.history-quick-memo .primary{justify-self:start}
.history-quick-memo .device-option,.device-option:has(#studentMemoUrgent),#memoUrgentList{display:none!important}
@media(max-width:700px){#studentHistoryPanel{inset:8px;padding:12px;border-radius:13px}#studentHistoryPanel>.section-bar{top:-12px;margin:-12px -12px 10px;padding:12px}}
@media(max-width:700px){.enrollment-row{grid-template-columns:1fr;gap:4px}.student-current-enrollments{padding:7px}}

/* Mobile work screens: one clear task flow, touch-sized controls, no nested scrolling. */
@media(max-width:700px){
  body{padding-bottom:calc(72px + env(safe-area-inset-bottom))}
  .workspace{padding:18px 12px 42px}
  .welcome-line{margin-bottom:16px;padding-bottom:16px}.welcome-line h1{font-size:21px;line-height:1.35}
  .staff-view-nav{position:sticky;top:62px;z-index:19;flex-wrap:nowrap;overflow-x:auto;margin:0 -12px 12px;padding:8px 12px;border-width:1px 0;border-radius:0}
  .staff-view-nav button{min-height:44px;padding:10px 14px}
  .staff-view-heading{margin:12px 0 14px;padding-bottom:12px}.staff-view-heading h2{font-size:21px}.staff-view-heading p{font-size:13px;line-height:1.5}
  .section-bar{margin:22px 0 10px}.section-bar h2{font-size:17px}
  .card{padding:14px}.cards{gap:8px}
  button,.status-btn,.text-button,.primary,input,select{min-height:44px}
  .status-btn{padding:10px 12px;font-size:14px}
  .today-row,.hide-word-test .today-row{grid-template-columns:1fr!important;gap:12px;padding:14px;border-radius:13px}
  .today-row>div,.hide-word-test .today-row>div{grid-column:1/-1!important;min-width:0}
  .today-row>div:first-child{padding-bottom:10px}.student-name{font-size:17px;line-height:1.4}
  .today-row .status-group{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
  .today-row .status-group .status-btn{width:100%;min-width:0;padding:9px 5px}
  .attendance-reason-entry,.homework-reason-entry{padding:10px}
  .attendance-reason-entry input,.homework-reason-entry input,textarea{font-size:16px}
  .word-test-cell .status-group{grid-template-columns:repeat(2,minmax(0,1fr))}
  #notificationSection #notifications{max-height:none;overflow:visible}
  .notifications-compact .notification{grid-template-columns:8px minmax(0,1fr) auto;gap:9px;padding:13px 11px;min-height:64px}
  .notification-copy b{font-size:14px}.notification-copy small{font-size:12px}
  .task-summary,.alert-center-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .task-card{min-height:92px;padding:12px}.task-card strong{font-size:24px}
  .enrollment-exit-dialog{max-height:calc(100dvh - 24px);overflow-y:auto;padding:18px 14px;border-radius:14px}
  .enrollment-exit-dialog select{width:100%;font-size:16px}.enrollment-exit-dialog .evaluation-actions{display:grid;grid-template-columns:1fr;gap:8px}
  .form-grid{grid-template-columns:1fr!important}.form-grid input,.form-grid select,.form-grid textarea{width:100%}
  #studentHistoryPanel{padding-bottom:calc(18px + env(safe-area-inset-bottom))}
}

/* 2026-09-29 학생 메모 수정 + 직원게시판 세로 한 줄 목록 */
.student-note-inline-edit{display:grid;gap:8px;margin:8px 0;padding:10px;border:1px solid #c9bfb3;border-radius:10px;background:transparent}
.student-note-inline-edit textarea{width:100%;min-width:0;resize:vertical;background:#fff}
.student-note-inline-edit>div{display:flex;gap:7px;justify-content:flex-end}.student-note-inline-edit .form-message{margin:0;color:var(--red)}
.memo-all-item{cursor:default}.memo-all-open{display:block;width:100%;padding:0;border:0;background:transparent;color:inherit;text-align:left;cursor:pointer}.memo-all-note-body{display:block;white-space:pre-wrap}
.board-post-list{display:grid;grid-template-columns:minmax(0,1fr);gap:0;border:1px solid var(--line);border-radius:12px;overflow:hidden}
.board-post-list .board-post{border:0;border-bottom:1px solid var(--line);border-radius:0;padding:12px 14px}.board-post-list .board-post:last-of-type{border-bottom:0}
.board-post-summary{grid-template-columns:82px minmax(160px,1fr) minmax(90px,140px) 90px 70px;align-items:center;gap:10px}
.board-read-badge{color:var(--muted);font-size:12px;font-weight:800}.unread-card .board-read-badge{color:var(--red)}
.board-post-author,.board-post-summary time,.board-comment-count{color:var(--muted);font-size:12.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.board-post-summary time,.board-comment-count{text-align:right}.board-load-more{width:100%;padding:13px;border:0;border-top:1px solid var(--line);border-radius:0;background:transparent;text-align:center}
@media(max-width:700px){.board-post-summary{grid-template-columns:auto minmax(0,1fr) auto;gap:5px 8px}.board-post-toggle{grid-column:2/4}.board-post-author{grid-column:2}.board-post-summary time{grid-column:3}.board-comment-count{grid-column:3}.board-read-badge{grid-row:1/3;align-self:start}.board-post-summary time,.board-comment-count{text-align:right}}
@media(max-width:380px){
  .task-summary,.alert-center-grid{grid-template-columns:1fr}
  .today-row .status-group{grid-template-columns:repeat(3,minmax(0,1fr))}
}

/* Prevent wide controls from moving the entire app outside the phone viewport. */
html,body{width:100%;max-width:100%;overflow-x:clip}
body>*{max-width:100%}
img,svg,video,canvas{max-width:100%}
.app-shell,.workspace,.workspace>*,.card,.section-bar,.toolbar,.form-grid>*{min-width:0;max-width:100%}
input,select,textarea,button{max-width:100%}
.alert-center-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.director-alert-card{min-width:0}
.withdrawal-decision-list{display:grid;gap:14px}.withdrawal-decision-card{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(260px,.8fr);gap:24px;padding:22px;border:1px solid #e2d8cf;border-left:4px solid #d15f39;background:#fff}.withdrawal-decision-card h3{margin:8px 0 4px;font-size:1.35rem}.withdrawal-decision-card dl{display:grid;gap:7px;margin:16px 0 0}.withdrawal-decision-card dl div{display:grid;grid-template-columns:100px 1fr;gap:8px}.withdrawal-decision-card dt{color:#776a60}.withdrawal-decision-card dd{margin:0;font-weight:600}.withdrawal-decision-form{display:grid;gap:10px;align-content:start}.withdrawal-decision-form label{display:grid;gap:5px}.withdrawal-decision-form>div{display:flex;gap:8px;flex-wrap:wrap}.withdrawal-history{margin-top:16px;padding:16px;border:1px solid #e2d8cf;background:#fff}.withdrawal-history summary{cursor:pointer;font-weight:700}.withdrawal-history article{display:grid;grid-template-columns:150px 1fr;gap:14px;padding:14px 0;border-top:1px solid #eee}.withdrawal-history article:first-child{margin-top:12px}.withdrawal-history p{margin:4px 0 0;color:#6f6258}@media(max-width:760px){.withdrawal-decision-card{grid-template-columns:1fr}.withdrawal-history article{grid-template-columns:1fr;gap:4px}}
.calendar-event{grid-template-columns:minmax(112px,132px) minmax(0,1fr) auto}
.calendar-event time{white-space:nowrap;line-height:1.35}
.calendar-event time small{display:block;font-size:11px;font-weight:600;color:var(--muted)}
.calendar-event>div{min-width:0}
.student-record-tabs{max-width:100%;overflow-x:auto}
@media(max-width:700px){
  .topbar{gap:8px}
  .brand{min-width:0}.brand strong{white-space:nowrap}
  .header-actions{min-width:0;flex-shrink:1;gap:2px}.header-actions button{padding-left:7px;padding-right:7px;white-space:nowrap}
  .section-bar,.toolbar{align-items:stretch;flex-wrap:wrap}
  .section-bar>div{min-width:0}.section-bar h2{overflow-wrap:anywhere}
  .section-bar input,.toolbar input,.toolbar select{width:100%;min-width:0}
  .student-record-tabs{width:100%}.student-record-tabs .status-btn{min-width:max-content}
  .search-result,.schedule-manage-card{min-width:0}.search-result span,.schedule-manage-card>*{min-width:0;overflow-wrap:anywhere}
}
@media(max-width:900px){.alert-center-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
.withdrawal-request-card{display:flex;align-items:center;justify-content:space-between;gap:18px}.withdrawal-request-card h3{margin:8px 0}.withdrawal-request-card p{margin:0;color:var(--muted)}.withdrawal-request-card .teacher-withdrawal-action{flex:0 0 auto}.withdrawal-request-card button:disabled{cursor:default;opacity:.7}
@media(max-width:700px){.withdrawal-request-card{align-items:stretch;flex-direction:column}.withdrawal-request-card .teacher-withdrawal-action{width:100%}}
.teacher-command-center{margin-bottom:1.25rem}.teacher-command-head{display:flex;align-items:flex-end;justify-content:space-between;gap:1rem;margin-bottom:.75rem;padding:1rem 1.1rem;border-radius:14px;background:#b2512f;color:#fff}.teacher-command-head h2{margin:.5rem 0 .25rem;color:#fff;font-size:1.35rem}.teacher-command-head p{margin:0;color:rgba(255,255,255,.82);font-size:.85rem}.teacher-command-head time{font-weight:800;color:#fff;white-space:nowrap}.teacher-command-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.55rem}.teacher-command-stats+.teacher-command-stats{margin-top:.55rem}.teacher-command-stats button{display:grid;grid-template-columns:1fr auto;align-items:center;gap:.15rem .75rem;min-height:92px;padding:1rem;text-align:left;border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--ink);cursor:pointer}.teacher-command-stats button.has-work{border:2px solid var(--red);background:#fff}.teacher-command-stats span{font-weight:800}.teacher-command-stats strong{grid-row:1/3;grid-column:2;font-size:1.8rem;color:var(--navy)}.teacher-command-stats button.has-work strong{color:var(--red)}.teacher-command-stats small{color:var(--muted)}
@media(max-width:700px){.teacher-command-head{display:block}.teacher-command-head time{display:block;margin-top:.75rem}.teacher-command-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.teacher-command-stats button{min-height:84px;padding:.85rem}}
.push-permission-panel{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:22px;border-left:4px solid #cf6139}.push-permission-panel h3{margin:8px 0}.push-permission-panel .primary{width:auto;min-width:200px}@media(max-width:640px){.push-permission-panel{display:block}.push-permission-panel .primary{width:100%;margin-top:14px}}

/* Text-safety pass: long Korean names, class titles, dates and controls must never overlap. */
.card,.task-card,.director-alert-card,.calendar-event,.calendar-event>*,.student-overview,.student-overview>*{min-width:0}
.card h3,.card p,.badge,.task-card span,.task-card small,.director-alert-card span,.director-alert-card small,.student-history-summary strong{overflow-wrap:anywhere;word-break:keep-all}
#studentOverviewList{grid-template-columns:repeat(auto-fit,minmax(min(360px,100%),1fr))}
.student-overview{display:flex;flex-direction:column}
.student-overview .student-current-enrollments{width:100%}
.student-overview .enrollment-row{width:100%;overflow:hidden}
.student-overview .enrollment-row b,.student-overview .enrollment-row span,.student-overview .enrollment-row small{width:100%;white-space:normal}
.alert-center-grid{grid-template-columns:repeat(auto-fit,minmax(min(190px,100%),1fr))}
.director-alert-card small{white-space:normal;overflow:visible;text-overflow:clip;line-height:1.45}
.task-card{min-height:112px}.task-card span{display:block;line-height:1.4}
.calendar-event{align-items:start}.calendar-event time{width:100%;white-space:normal;overflow-wrap:normal;word-break:normal}.calendar-event time small{margin-top:3px;white-space:nowrap}
.calendar-event>div p,.calendar-event>div small{display:block;min-width:0;overflow-wrap:anywhere;word-break:keep-all;line-height:1.55}
.student-history-summary>div{min-width:0}.student-history-summary strong{font-size:clamp(16px,1.6vw,23px);line-height:1.35}
@media(max-width:760px){
  #studentOverviewList{grid-template-columns:1fr}
  .calendar-event{grid-template-columns:1fr!important;gap:7px}
  .calendar-event .attendance-chip{grid-column:1!important;justify-self:start}
  .calendar-event time{display:flex;align-items:baseline;gap:8px}
  .calendar-event time small{display:inline;margin:0}
  .student-history-summary{grid-template-columns:1fr 1fr}
}
@media(max-width:420px){.student-history-summary{grid-template-columns:1fr}.task-summary,.alert-center-grid{grid-template-columns:1fr 1fr}.task-card{min-height:104px;padding:13px}}

/* 히스토리에서는 분류명보다 실제 메모 내용을 가장 먼저 읽히게 한다. */
#studentHistoryList .history-note{align-items:start}
#studentHistoryList .history-note-body{margin:0;color:var(--ink);font-size:clamp(16px,1.8vw,21px);font-weight:750;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere;word-break:keep-all}
#studentHistoryList .history-note-author{display:block;margin-top:8px;color:var(--muted);font-size:12px}
.status-student-main{display:flex!important;align-items:center;justify-content:space-between;gap:12px;width:100%}
.status-student-main em{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:5px;font-style:normal}
.status-student-main em b{padding:5px 9px;border-radius:999px;background:#e9f1ec;color:#356149;font-size:12px;white-space:nowrap}
.status-student-main em .no-subject{background:#f8e7df;color:#a7472e}
@media(max-width:560px){.status-student-main{align-items:flex-start;flex-direction:column}.status-student-main em{justify-content:flex-start}}
.unassigned-student-link{display:block;margin-top:6px;padding:7px 9px;border-radius:7px;background:#fff1e9;color:#a7472e;font-style:normal;font-weight:800;line-height:1.35}
.today-evaluation{display:grid;gap:6px;min-width:0}.today-evaluation>small{font-weight:800;color:var(--muted)}.today-evaluation .eval-levels{display:grid;grid-template-columns:repeat(3,1fr);gap:4px}.today-evaluation .eval-level{padding:7px 4px}.today-evaluation .today-evaluation-save{margin-top:3px}.today-evaluation .evaluation-message{min-height:0;color:var(--red)}
.teacher-missing-warning{margin:0 0 14px;border:3px solid #b53e42;background:#fff1ec;box-shadow:0 8px 22px rgba(181,62,66,.14);padding:18px}.teacher-missing-title{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.teacher-missing-title>span{background:#b53e42;color:#fff;padding:5px 9px;font-size:12px;font-weight:900}.teacher-missing-title strong{font-size:22px;color:#8f2025}.teacher-missing-title small{color:#8f2025;font-weight:700}.teacher-missing-groups{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:8px;margin-top:14px}.teacher-missing-groups button{border:1px solid #dc9b8f;border-left:5px solid #b53e42;background:#fff;color:#202735;padding:12px;text-align:left;cursor:pointer}.teacher-missing-groups b,.teacher-missing-groups span{display:block}.teacher-missing-groups b{color:#b53e42;margin-bottom:5px}.teacher-missing-groups span{font-size:12px;line-height:1.5}.teacher-missing-warning.is-clear{border-color:#49715b;background:#f2f8f3;box-shadow:none;display:flex;gap:10px;align-items:center}.teacher-missing-warning.is-clear strong{color:#49715b}.teacher-missing-warning.is-clear span{font-size:12px;color:#53705b}
/* 문자 앱이 실제 휴대폰을 PC 폭으로 열었을 때 바깥 골격만 모바일형으로 보정한다. */
@media (min-width:761px){
  body.touch-mobile-layout main{max-width:none!important;padding-left:12px!important;padding-right:12px!important;padding-bottom:92px!important}
  body.touch-mobile-layout .app-shell{display:block!important;grid-template-columns:1fr!important}
  body.touch-mobile-layout .sidebar{display:none!important}
  body.touch-mobile-layout .workspace{width:100%!important;max-width:none!important;min-width:0!important;padding:16px 0!important}
  body.touch-mobile-layout #staffViewNav{display:flex!important;overflow-x:auto!important;flex-wrap:nowrap!important;position:sticky;top:64px;z-index:20}
  body.touch-mobile-layout #staffViewNav>button{flex:0 0 auto!important}
  body.touch-mobile-layout .mobile-nav:not(.hidden){display:grid!important}
}
/* 원장 오늘 미완료 업무: 기본 button 스타일로 돌아가 겹치지 않도록 카드 배치를 고정한다. */
#directorAlertCards.alert-center-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;width:100%!important;height:auto!important}
#directorAlertCards .director-alert-card{box-sizing:border-box;display:grid!important;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:6px 14px;width:100%!important;height:auto!important;min-width:0;padding:16px 18px;border:1px solid var(--line);border-radius:14px;background:var(--paper);color:var(--ink);text-align:left;cursor:pointer}
#directorAlertCards .director-alert-card span{min-width:0;font-weight:850}
#directorAlertCards .director-alert-card strong{grid-row:1/3;grid-column:2;font-size:26px;color:var(--accent)}
#directorAlertCards .director-alert-card small{display:block;min-width:0;white-space:normal;overflow:visible;text-overflow:clip;line-height:1.45;color:var(--muted);word-break:break-word}
#directorAlertCards .director-alert-card.clear{opacity:.62}
#directorAlertCards .director-alert-card.has-alert{border-left:5px solid var(--accent)}
@media(max-width:720px){#directorAlertCards.alert-center-grid{grid-template-columns:1fr!important}#directorAlertCards .director-alert-card{padding:14px}#directorAlertCards .director-alert-card strong{font-size:22px}}
@media(max-width:720px){
  #directorAlertCards .director-alert-card[data-code="weekly_progress"]{grid-template-columns:minmax(0,1fr)!important;align-items:start;gap:5px;min-height:116px}
  #directorAlertCards .director-alert-card[data-code="weekly_progress"]>span,
  #directorAlertCards .director-alert-card[data-code="weekly_progress"]>strong,
  #directorAlertCards .director-alert-card[data-code="weekly_progress"]>small{grid-column:1!important;grid-row:auto!important;display:block;min-width:0;width:100%;white-space:nowrap!important;word-break:keep-all!important;overflow:hidden!important;text-overflow:ellipsis!important}
  #directorAlertCards .director-alert-card[data-code="weekly_progress"]>strong{font-size:16px!important;line-height:1.4}
}

/* 안정화된 학생 기록 필터와 보강 달력 */
.history-filters{display:inline-flex;max-width:100%;gap:4px;padding:5px;border:1px solid var(--line);border-radius:12px;background:#eee9e3;overflow-x:auto}.history-filters .history-filter{min-width:max-content;border:0;border-radius:8px;background:transparent}.history-filters .history-filter.active{background:var(--accent);color:#fff;box-shadow:0 2px 7px rgba(0,0,0,.12)}
.student-card-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:auto;padding-top:14px}.student-card-actions button{min-width:132px;white-space:nowrap}
.student-card-actions .student-card-memo{flex:1 1 420px;min-width:280px}.student-card-actions .student-card-records{flex:0 0 150px;min-width:150px}.student-card-actions .student-card-memo-form textarea{width:100%;min-height:110px;box-sizing:border-box}
.student-card-tools{grid-template-columns:minmax(220px,2fr) minmax(140px,1fr)!important}.student-card-tools .student-card-memo{min-width:0}.student-card-tools .student-card-records{min-width:140px}.student-card-tools .student-card-memo[open]{grid-column:1/-1}.student-card-tools .student-card-memo-form textarea{width:100%;min-height:110px;box-sizing:border-box}
.makeup-calendar-panel{margin-bottom:24px}.makeup-calendar-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:10px}.makeup-day{padding:14px;border:1px solid var(--line);border-radius:13px;background:#fff}.makeup-day h3{margin:0 0 10px;color:var(--navy)}.makeup-day>div{display:grid;grid-template-columns:120px minmax(0,1fr) auto;gap:4px 9px;padding:9px 0;border-top:1px solid var(--line)}.makeup-day time{font-weight:850;white-space:nowrap}.makeup-day strong{min-width:0}.makeup-day span{grid-column:2;color:var(--muted);font-size:12px}.makeup-day em{grid-row:1/3;grid-column:3;align-self:center;display:flex;align-items:flex-end;flex-direction:column;gap:5px;font-style:normal;font-size:12px;color:var(--accent);white-space:nowrap}.makeup-cancel{padding:4px 7px;border:1px solid var(--line);border-radius:7px;background:#fff;color:var(--accent);font:inherit;font-weight:800;cursor:pointer}.makeup-cancel:disabled{opacity:.55;cursor:wait}
.makeup-calendar-controls{display:flex;align-items:center;gap:10px}.makeup-calendar-controls .count{white-space:nowrap}.makeup-calendar-panel .section-bar .device-help{margin:.35rem 0 0}
.staff-makeup-assign{margin-bottom:22px}.staff-makeup-assign-card{display:grid;grid-template-columns:minmax(240px,1.3fr) minmax(240px,1fr) auto;align-items:end;gap:10px}.staff-makeup-assign-card label{display:grid;gap:6px;font-weight:850}.staff-makeup-assign-card select{width:100%}.staff-makeup-assign-card .form-message,.staff-makeup-assign-card #staffMakeupNotice{grid-column:1/-1}.makeup-notice-result{padding:12px;border:1px solid var(--line);border-radius:10px;background:var(--paper)}.makeup-notice-result p{margin:.5rem 0;line-height:1.55}
@media(max-width:700px){.staff-makeup-assign-card{grid-template-columns:1fr}.staff-makeup-assign-card>*{grid-column:1!important}.makeup-calendar-controls{align-items:stretch;flex-direction:column}.makeup-calendar-controls input{width:100%}}
@media(max-width:760px){.student-card-tools{grid-template-columns:minmax(0,1fr) auto!important}.student-card-tools .student-card-records{min-width:118px;max-width:140px}}
@media(max-width:700px){.student-card-actions{display:grid;grid-template-columns:minmax(0,1fr) auto}.student-card-actions .student-card-memo{min-width:0;width:100%}.student-card-actions .student-card-records{min-width:118px;max-width:140px}.student-card-actions .student-card-memo[open],.student-card-actions .student-card-editor[open]{grid-column:1/-1}.student-card-actions button{min-width:0}.makeup-calendar-grid{grid-template-columns:1fr}.makeup-day>div{grid-template-columns:110px minmax(0,1fr) auto}}

/* 우리 반: 사유는 해당 상태에서만 열고, 학생 행과 메모 입력은 조밀하게 표시한다. */
.attendance-reason-entry,.homework-reason-entry{display:none!important}
.attendance-reason-entry.reason-entry-active,.homework-reason-entry.reason-entry-active{display:grid!important}
.weekly-note-entry{gap:.35rem}
.weekly-note-entry input{min-height:42px;padding:.52rem .65rem}
.weekly-note-entry button{min-width:50px;padding-left:8px;padding-right:8px}
@media(min-width:1200px){
  .today-head,.today-row,.hide-word-test .today-head,.hide-word-test .today-row{grid-template-columns:minmax(125px,.85fr) 60px minmax(155px,1fr) minmax(105px,.68fr) minmax(135px,.85fr) minmax(330px,2.45fr) minmax(175px,1.1fr) minmax(85px,.55fr);gap:8px}
  .today-head{padding:8px 12px}
  .today-row,.hide-word-test .today-row{padding:9px 12px;margin-bottom:6px;border-radius:10px}
  .weekly-note-log{max-height:58px;margin-bottom:.35rem;padding:.3rem .4rem}
  .today-evaluation{grid-template-columns:auto minmax(0,1fr);align-items:center;gap:4px 6px}
  .today-evaluation>.mobile-label{display:none}
  .today-evaluation .eval-levels{grid-template-columns:repeat(3,minmax(0,1fr));gap:3px}
  .today-evaluation .eval-level{min-height:28px;padding:3px 2px}
  .today-evaluation .today-evaluation-save,.today-evaluation .evaluation-message{grid-column:2;margin:0}
  .today-evaluation .today-evaluation-save{min-height:30px;padding:4px 7px}
}

/* 우리 반 입력행 최종 구조: 학생·수업·출결·숙제·학생 메모. */
@media(min-width:761px){
  .today-head,.today-row,.hide-word-test .today-head,.hide-word-test .today-row{grid-template-columns:minmax(125px,.9fr) 58px minmax(145px,1fr) minmax(135px,.9fr) minmax(300px,2.2fr) minmax(220px,1.8fr)!important;gap:8px!important;min-width:0!important}
  .today-row>div:nth-child(1){grid-column:1!important;grid-row:1!important}
  .today-row>div:nth-child(2){grid-column:2!important;grid-row:1!important}
  .today-row>div:nth-child(3){grid-column:3!important;grid-row:1!important}
  .today-row>div:nth-child(4){grid-column:3!important;grid-row:2!important}
  .today-row>div:nth-child(5){grid-column:4!important;grid-row:1/3!important}
  .today-row>div:nth-child(6){grid-column:5!important;grid-row:1/3!important}
  .today-row>div:nth-child(7){display:block!important;grid-column:6!important;grid-row:1!important}
  .today-row .mobile-label{display:none!important}
  .record-reason:not(:has(.saved-reason-summary)):not(:has(.reason-entry-active)){visibility:hidden!important}
  .today-row,.hide-word-test .today-row{padding:8px 11px!important;margin-bottom:5px!important;align-items:start!important}
  .attendance-cell .status-group,.today-row>div:nth-child(4) .status-group{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:5px!important}
  .weekly-note-cell{min-width:0!important}
  .weekly-note-log{max-height:46px!important;margin-bottom:4px!important;padding:3px 5px!important}
  .weekly-note-entry{grid-template-columns:minmax(0,1fr) 82px!important}
  .weekly-note-entry .weekly-note-add{width:82px!important;min-width:82px!important;white-space:normal!important;line-height:1.15!important}
  .attendance-reason-entry,.homework-reason-entry{grid-template-columns:minmax(0,1fr) auto!important;gap:5px!important;margin-top:6px!important;padding:6px!important}
  .attendance-reason-entry strong,.homework-reason-entry strong{grid-column:1/-1;font-size:11px}
  .attendance-reason-entry small,.homework-reason-entry small{grid-column:1/-1}
}

/* PC 우리 반: 학생 한 명을 짧은 가로 한 줄로 표시한다. */
@media(min-width:1024px){
  .today-head,.today-row,.hide-word-test .today-head,.hide-word-test .today-row{grid-template-columns:minmax(110px,.85fr) 48px minmax(140px,1.3fr) minmax(100px,.9fr) minmax(90px,.8fr) minmax(200px,1.6fr) minmax(220px,1.8fr)!important;gap:6px!important}
  .today-head{padding:5px 9px!important;font-size:11px!important}
  .today-row,.hide-word-test .today-row{padding:5px 9px!important;margin-bottom:4px!important;border-radius:8px!important;align-items:center!important;font-size:12px!important;line-height:1.25!important}
  .today-row>div:nth-child(1),.today-row>div:nth-child(2){grid-row:1!important}
  .today-row>div:nth-child(3){grid-column:3!important;grid-row:1!important}
  .today-row>div:nth-child(4){grid-column:4!important;grid-row:1!important}
  .today-row>div:nth-child(5){grid-column:5!important;grid-row:1!important}
  .today-row>div:nth-child(6){grid-column:6!important;grid-row:1!important}
  .today-row>div:nth-child(7){grid-column:7!important;grid-row:1!important}
  .student-name{font-size:13px!important;line-height:1.25!important;white-space:nowrap!important}
  .today-row>div:first-child small{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px!important}
  .today-row .status-btn{min-height:28px!important;padding:4px 6px!important;font-size:11px!important;border-radius:7px!important}
  .weekly-note-cell{display:grid!important;grid-template-columns:minmax(95px,.75fr) minmax(190px,1.55fr)!important;gap:5px!important;align-items:center!important}
  .weekly-note-log{height:auto!important;max-height:150px!important;margin:0!important;padding:5px 6px!important;overflow-y:auto!important;align-content:start!important}
  .weekly-note-log small{overflow:visible!important;text-overflow:clip!important;white-space:normal!important;word-break:break-word!important;font-size:10px!important;line-height:1.2!important}
  .weekly-note-entry{grid-template-columns:minmax(0,1fr) 68px!important;gap:4px!important}
  .weekly-note-entry input{height:30px!important;min-height:30px!important;padding:4px 7px!important;font-size:11px!important}
  .weekly-note-entry .weekly-note-add{width:68px!important;min-width:68px!important;min-height:30px!important;padding:3px 5px!important;font-size:10px!important}
  .saved-reason-summary{padding:4px 6px!important;font-size:10px!important}
  .hide-word-test .today-row{grid-template-columns:minmax(110px,.85fr) 48px minmax(140px,1.3fr) minmax(100px,.9fr) 0px minmax(200px,1.6fr) minmax(220px,1.8fr)!important}
  .hide-word-test .today-row>div:nth-child(5){display:none!important}
}
.staff-workload-list .card p.warning-text,#staffWorkloadList .card p.warning-text{color:var(--red)!important;background:transparent!important;font-weight:700!important;padding:0!important;border-radius:0!important}
.student-overview p.warning-text,.staff-workload-list p.warning-text{background:transparent!important;color:var(--red)!important;font-weight:700!important}
.student-overview p.ok-text,.staff-workload-list p.ok-text{background:transparent!important;color:#3f5a45!important;font-weight:700!important}
@media(max-width:760px) and (min-width:701px){.today-head,.today-row,.hide-word-test .today-head,.hide-word-test .today-row{grid-template-columns:minmax(125px,.9fr) 58px minmax(145px,1fr) minmax(135px,.9fr) minmax(300px,2.2fr) minmax(220px,1.8fr)!important;gap:8px!important;min-width:0!important}.weekly-note-entry{grid-template-columns:minmax(0,1fr) 88px!important}.weekly-note-entry .weekly-note-add{width:88px!important;min-width:88px!important}.today-row>div:nth-child(3){grid-column:3!important;grid-row:1!important}.today-row>div:nth-child(4){grid-column:3!important;grid-row:2!important}.today-row>div:nth-child(5){grid-column:4!important;grid-row:1/3!important}.today-row>div:nth-child(6){grid-column:5!important;grid-row:1/3!important}.today-row>div:nth-child(7){display:block!important;grid-column:6!important;grid-row:1!important}}@media(max-width:700px){.weekly-note-entry{grid-template-columns:1fr!important}.weekly-note-entry input{min-height:82px!important}.weekly-note-entry .weekly-note-add{width:100%!important;min-width:0!important}}

@media(max-width:760px) and (min-width:701px){.today-row>div:nth-child(1){grid-column:1!important;grid-row:1!important}.today-row>div:nth-child(2){grid-column:2!important;grid-row:1!important}}
@media(max-width:760px) and (min-width:701px){.today-head,.today-row,.hide-word-test .today-head,.hide-word-test .today-row{grid-template-columns:minmax(70px,.9fr) 40px minmax(80px,1fr) minmax(70px,.85fr) minmax(90px,1.2fr) minmax(90px,1.1fr)!important;gap:6px!important}.today-row .status-group{gap:3px!important}.today-row .status-btn{padding:5px 5px!important;font-size:11px!important;min-width:0!important}}
@media(max-width:760px) and (min-width:701px){.today-row{grid-template-columns:minmax(70px,.8fr) minmax(50px,.6fr) 1fr 1fr!important;gap:6px!important}.today-row>div:nth-child(1){grid-column:1!important;grid-row:1!important}.today-row>div:nth-child(2){grid-column:2!important;grid-row:1!important}.today-row>div:nth-child(3){grid-column:3!important;grid-row:1!important}.today-row>div:nth-child(4){grid-column:4!important;grid-row:1!important}.today-row>div:nth-child(5){grid-column:1/5!important;grid-row:2!important}.today-row>div:nth-child(6){grid-column:1/5!important;grid-row:3!important}.today-row>div:nth-child(7){grid-column:1/5!important;grid-row:4!important}.today-row>div:nth-child(3) .status-group,.today-row>div:nth-child(4) .status-group{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:3px!important}.today-row>div:nth-child(3) .status-btn,.today-row>div:nth-child(4) .status-btn{padding:5px 4px!important;font-size:10px!important;min-width:0!important;white-space:nowrap!important}.weekly-note-cell,.weekly-note-entry{min-width:0!important;width:100%!important}}

/* 최근 학생 메모: 날짜와 삭제를 같은 줄 오른쪽에 고정한다. */
.director-recent-memo{grid-template-columns:120px 150px minmax(0,1fr) 130px auto!important}
.director-recent-memo>.note-delete{grid-column:5;justify-self:end;white-space:nowrap}
.director-recent-memo>.note-delete-confirm{grid-column:5;justify-self:end;display:flex;gap:6px;white-space:nowrap}
.notification-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.board-selected-recipients{margin:7px 0 0;padding:8px 10px;border-radius:8px;background:#f7f1ea;color:var(--ink);font-weight:800}
.makeup-day time{font-size:15px;color:var(--ink);font-weight:950}
.today-row .attendance-cell>.status-group,.today-row>div:nth-child(4)>.status-group{align-items:center!important;margin:0!important}
.today-row .status-btn[data-kind]{position:relative;z-index:3;pointer-events:auto!important;touch-action:manipulation;cursor:pointer}
@media(min-width:1024px){
  #todayStudents .today-class-group>.today-class-students{display:block!important}
  .today-row .attendance-cell>.status-group,.today-row>div:nth-child(4)>.status-group{min-height:30px!important}
  .today-row:has(.reason-entry-active){align-items:start!important;min-height:76px!important}
  .today-row .reason-entry-active{grid-template-columns:minmax(150px,1fr) auto!important;width:100%!important;min-width:0!important;position:relative!important;z-index:2}
  .today-row .reason-entry-active input{width:100%!important;min-width:0!important;box-sizing:border-box!important}
}
.note-delete-confirm .note-delete-commit{color:#fff!important;background:#b53a2d!important;border-radius:8px!important;padding:7px 10px!important}
.parent-access-status-table{display:grid;border:1px solid var(--line);border-radius:12px;overflow:hidden;background:#fff}.parent-access-status-head,.parent-access-status-row{display:grid;grid-template-columns:1.1fr 1fr 1.4fr 1.1fr;gap:10px;align-items:center;padding:11px 13px;border-bottom:1px solid var(--line)}.parent-access-status-head{font-size:12px;font-weight:800;color:var(--muted);background:#f7f4ef}.parent-access-status-row:last-child{border-bottom:0}.parent-access-status-row>span{min-width:0;overflow:hidden;text-overflow:ellipsis}.parent-access-status-row .badge{display:inline-block;width:max-content}
.parent-access-status-row .badge.warning{background:rgba(196,74,58,.12);color:var(--red);font-weight:700}
.notification{cursor:pointer;position:relative}.notification .notification-check{margin-top:8px}.notification:focus-visible{outline:3px solid var(--red);outline-offset:2px}
.note-delete.danger-confirm{color:#fff!important;background:#b53a2d!important;border-radius:8px!important;padding:7px 10px!important}
@media(max-width:700px){.director-recent-memo{grid-template-columns:minmax(0,1fr) auto!important}.director-recent-memo>button:first-child{grid-column:1}.director-recent-memo>span{grid-column:2;text-align:right}.director-recent-memo>p{grid-column:1/-1}.director-recent-memo>small{grid-column:1;grid-row:3;text-align:left!important}.director-recent-memo>.note-delete,.director-recent-memo>.note-delete-confirm{grid-column:2;grid-row:3;justify-self:end}}
/* 오늘 학생은 데스크톱 배치를 유지하고, 모바일에서만 반별 접기 목록으로 표시한다. */
.today-class-group,.today-class-students{display:contents}.today-class-toggle{display:none}
@media(max-width:760px){
  .today-list{display:block!important}
  .today-class-group{display:block;margin:0 0 10px;border:1px solid var(--line);border-radius:14px;background:#fff;overflow:hidden}
  .today-class-toggle{display:grid;width:100%;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:10px;padding:14px 15px;border:0;background:#f8f4ee;color:var(--ink);text-align:left}
  .today-class-toggle span{min-width:0}.today-class-toggle b,.today-class-toggle small{display:block}.today-class-toggle b{font-size:15px}.today-class-toggle small{margin-top:3px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.today-class-toggle em{font-style:normal;font-weight:800;color:var(--red)}.today-class-toggle i{font-style:normal;font-size:18px;transition:transform .15s ease}.today-class-group.expanded .today-class-toggle i{transform:rotate(180deg)}
  .today-class-students{display:none;padding:9px}.today-class-group.expanded .today-class-students{display:block}.today-class-students .today-row{margin-bottom:8px!important}.today-class-students .today-row:last-child{margin-bottom:0!important}
}
@media(min-width:761px){
  #todayStudents.today-list{display:block!important}
  #todayStudents .today-class-group{display:block;margin:0 0 10px;border:1px solid var(--line);border-radius:11px;background:#fff;overflow:hidden}
  #todayStudents .today-class-toggle{display:grid;width:100%;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:12px;padding:9px 13px;border:0;border-bottom:1px solid var(--line);background:#f4eee7;color:var(--ink);text-align:left}
  #todayStudents .today-class-toggle span{display:flex;align-items:center;gap:10px;min-width:0}
  #todayStudents .today-class-toggle b{font-size:14px}
  #todayStudents .today-class-toggle small{color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  #todayStudents .today-class-toggle em{font-style:normal;font-weight:800;color:var(--red)}
  #todayStudents .today-class-toggle i{font-style:normal;font-size:17px;transition:transform .15s ease}
  #todayStudents .today-class-group.expanded .today-class-toggle i{transform:rotate(180deg)}
  #todayStudents .today-class-students{display:none;padding:5px}
  #todayStudents .today-class-group.expanded .today-class-students{display:block}
  #todayStudents .today-class-students .today-row:last-child{margin-bottom:0!important}
}

/* PC attendance controls: keep all status buttons on one line and give notes the space reclaimed from empty reason columns. */
@media(min-width:1024px){
  .today-row .attendance-cell>.status-group,
  .today-row>div:nth-child(4)>.status-group{
    display:flex!important;
    flex-wrap:nowrap!important;
    align-items:center!important;
    gap:5px!important;
    min-width:0!important;
  }
  .today-row .attendance-cell>.status-group .status-btn,
  .today-row>div:nth-child(4)>.status-group .status-btn{
    flex:1 1 0!important;
    min-width:0!important;
    width:auto!important;
    height:30px!important;
    min-height:30px!important;
    padding:4px 7px!important;
    white-space:nowrap!important;
    word-break:keep-all!important;
    line-height:1!important;
    font-size:11px!important;
  }
  .today-row>div:nth-child(4)>.status-group .status-btn{
    min-width:58px!important;
  }
  .today-row:not(:has(.saved-reason-summary)):not(:has(.reason-entry-active)){
    grid-template-columns:minmax(110px,.85fr) 48px minmax(140px,1.2fr) minmax(115px,1fr) minmax(80px,.65fr) 0 minmax(300px,2.4fr)!important;
    gap:5px!important;
  }
  .hide-word-test .today-row:not(:has(.saved-reason-summary)):not(:has(.reason-entry-active)){
    grid-template-columns:minmax(110px,.85fr) 48px minmax(140px,1.2fr) minmax(115px,1fr) 0 0 minmax(300px,2.4fr)!important;
  }
  .weekly-note-cell{
    grid-template-columns:minmax(80px,.45fr) minmax(260px,2.55fr)!important;
    gap:5px!important;
    min-width:0!important;
  }
  .weekly-note-entry{
    grid-template-columns:minmax(0,1fr) 68px!important;
    gap:4px!important;
    min-width:0!important;
  }
  .weekly-note-entry input{
    min-width:0!important;
    width:100%!important;
    white-space:nowrap!important;
  }
}

/* 학생 관리 화면의 조회 범위(내 담당/전체) 선택 */
.student-scope-label{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:800;color:var(--muted);white-space:nowrap}
.student-scope-label select{width:auto;min-width:130px}
@media(max-width:700px){.student-scope-label{width:100%}.student-scope-label select{flex:1;min-width:0}}

/* 오늘 학생 표 — 헤더 7칸과 데이터 행 7칸을 하나의 격자로 통일한다.
   앞쪽 구간별 규칙들이 6~8칸으로 서로 달랐고, 사유가 없는 행만 열을 접는 규칙이
   있어 헤더와 칸이 어긋났다. 마지막에 한 번에 정리한다. */
@media(min-width:900px){
  .today-head,.today-row,.hide-word-test .today-head,.hide-word-test .today-row,.today-row:not(:has(.saved-reason-summary)):not(:has(.reason-entry-active)),.hide-word-test .today-row:not(:has(.saved-reason-summary)):not(:has(.reason-entry-active)){
    display:grid!important;
    grid-template-columns:minmax(100px,.85fr) 48px minmax(150px,1.5fr) minmax(100px,.85fr) minmax(105px,.9fr) minmax(130px,1.2fr) minmax(175px,1.75fr)!important;
    gap:10px!important;align-items:start!important}
  .today-head>span,.today-head>span:nth-child(n){display:block!important}
  .today-row>div,.hide-word-test .today-row>div,
  .today-row>div:nth-child(n),.hide-word-test .today-row>div:nth-child(n){
    grid-column:auto!important;grid-row:auto!important;display:block!important;min-width:0}
  .today-row .mobile-label{display:none!important}
  .today-head{padding:11px 15px!important}
  .today-row,.hide-word-test .today-row{padding:14px!important}
}
@media(min-width:1280px){
  .today-head,.today-row,.hide-word-test .today-head,.hide-word-test .today-row,.today-row:not(:has(.saved-reason-summary)):not(:has(.reason-entry-active)),.hide-word-test .today-row:not(:has(.saved-reason-summary)):not(:has(.reason-entry-active)){
    grid-template-columns:minmax(118px,.85fr) 56px minmax(195px,1.5fr) minmax(118px,.85fr) minmax(128px,.9fr) minmax(165px,1.2fr) minmax(235px,1.75fr)!important;
    gap:12px!important}
}

/* 색으로 꽉 채운 알약 대신 테두리와 글씨에만 색을 쓴다.
   배경을 채우면 글씨가 묻혀 내용이 안 보이던 문제(모든 교직원 화면 공통). */
.warning-text,.ok-text{
  display:inline-block!important;background:transparent!important;
  padding:3px 9px!important;border-radius:20px!important;
  font-size:12px!important;font-weight:700!important;margin:2px 4px 2px 0!important;
  line-height:1.5!important}
.warning-text{color:#a8302f!important;border:1px solid #d9a3a1!important}
.ok-text{color:#3a5a46!important;border:1px solid #a7c0b1!important}

/* 2026-09-25 폴더폰 정렬 보정
   - 701~899px(펼친 화면): 학생·수업·출결·숙제를 한 줄에 위쪽 기준으로 맞추고,
     단어시험·숙제 사유·학생 메모는 그 아래 전체 폭으로 내린다.
   - 900~1599px(폴더폰 데스크톱 보기·노트북): 7칸이 한 줄에 들어가지 않아 학생 메모가
     표 밖으로 넘쳤다. 학생 메모를 줄 아래 전체 폭으로 내리고,
     단어시험이 없는 반(hide-word-test)은 제목과 칸에서 단어시험을 함께 뺀다. */
@media(min-width:701px) and (max-width:899px){
  .today-row,.hide-word-test .today-row{display:grid!important;grid-template-columns:minmax(90px,.9fr) 58px minmax(170px,1.5fr) minmax(120px,1fr)!important;align-items:start!important;gap:8px 10px!important}
  .today-row>div:nth-child(-n+4){grid-column:auto!important;grid-row:1!important}
  .today-row>div:nth-child(n+5){grid-column:1/-1!important;grid-row:auto!important}
  .hide-word-test .today-row>div:nth-child(5),.today-row>.word-test-empty{display:none!important}
  .today-row>div:nth-child(3) .status-group,.today-row .attendance-cell>.status-group{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:4px!important}
  .today-row>div:nth-child(4) .status-group{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:4px!important}
  .today-row>div:nth-child(2),.today-row>div:nth-child(2) *{white-space:nowrap!important;word-break:keep-all!important}
  .today-row .status-btn{white-space:nowrap!important;word-break:keep-all!important;min-width:0!important;width:100%!important;padding-left:2px!important;padding-right:2px!important}
}
@media(min-width:900px) and (max-width:1599px){
  .today-head,.today-row,.hide-word-test .today-head,.hide-word-test .today-row,.today-row:not(:has(.saved-reason-summary)):not(:has(.reason-entry-active)){
    grid-template-columns:minmax(84px,.9fr) 40px minmax(130px,1.3fr) minmax(100px,1fr) minmax(100px,1fr) minmax(86px,1fr)!important;gap:8px!important}
  .hide-word-test .today-head,.hide-word-test .today-row,.hide-word-test .today-row:not(:has(.saved-reason-summary)):not(:has(.reason-entry-active)){
    grid-template-columns:minmax(84px,.9fr) 40px minmax(130px,1.3fr) minmax(100px,1fr) minmax(100px,1.3fr)!important}
  .today-head>span:nth-child(7),.hide-word-test .today-head>span:nth-child(7){display:none!important}
  .today-row>div:nth-child(7),.hide-word-test .today-row>div:nth-child(7){grid-column:1/-1!important}
  .hide-word-test .today-head>span:nth-child(5),.hide-word-test .today-row>div:nth-child(5){display:none!important}
  .today-row>div:nth-child(3) .status-group,.today-row .attendance-cell>.status-group{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:4px!important}
  .today-row>div:nth-child(4) .status-group{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:4px!important}
  .today-row .status-btn{white-space:nowrap!important;word-break:keep-all!important;min-width:0!important;width:100%!important;padding-left:2px!important;padding-right:2px!important}
}

/* ===== 2026-09-26 20차: 강조 박스 색 통일(검정 -> 주황) + 코칭교사 '내 반' 숨김 ===== */
/* 선택된 탭·카드·버튼이 검정/남색으로 꽉 차서 답답하다는 원장 의견.
   브랜드 주황 한 가지(--accent-fill)로 통일한다.
   #b2512f 은 흰 글씨와 5.1:1 로 4.5:1 기준을 넘긴다(기존 --gold #c8653f 는 3.9:1 로 미달). */
:root{--accent-fill:#b2512f;--accent-fill-hover:#9c4526}

.staff-view-nav button.active,
.parent-view-nav button.active,
.parent-category-tabs button.active,
.operations-tabs button.active,
.settings-hub-tabs button.active,
.student-record-tabs .status-btn.active,
.side-nav button.active,
.task-card.active,
.status-btn.selected,
.parent-calendar-weekdays,
.teacher-command-head,
.primary{background:var(--accent-fill);color:#fff}
.status-btn.selected{border-color:var(--accent-fill)}
/* 평가(상·중·하)·히스토리 필터는 배경을 채우지 않고 테두리와 글씨에만 색을 쓴다
   (원장 결정 2026-09-26: 배경을 채우면 글씨가 묻힌다). 흰 배경 위 #b2512f 는 5.11:1. */
.eval-level.selected,.history-filter.active{
  background:#fff!important;color:var(--accent-fill)!important;
  border:2px solid var(--accent-fill)!important;font-weight:800!important}
.task-card.active strong,.teacher-command-head h2,.teacher-command-head time{color:#fff}
/* 흰 글씨 75% 는 주황 위에서 3.6:1 로 흐리다. 92% 로 올려 4.5:1 을 맞춘다. */
.teacher-command-head p{color:rgba(255,255,255,.92)}
.primary:hover{background:var(--accent-fill-hover)}
/* 가독성을 위해 검정을 유지하는 곳: 상단 브랜드 바(.topbar)와 왼쪽 사이드바 배경. */

/* 코칭교사는 배정된 담당 반이 없다(원장 결정 2026-09-26). 빈 '내 반' 칸을 화면에서 뺀다. */
body.coach-workspace #myClassesSection{display:none!important}

/* ===== 2026-09-27 21차: 평가 카드 압축 ===== */
/* 항목 이름이 버튼 위에 따로 한 줄을 차지하고 '미평가'가 두세 줄로 쪼개져
   카드 하나가 694px 였다. 한 화면에 학생이 서너 명밖에 안 보인다(원장 확인 2026-09-27).
   이름과 버튼을 한 줄에 놓고 글자·여백을 줄여 카드를 절반 가깝게 낮춘다. */

/* 항목 이름 + 버튼을 한 줄에 */
.evaluation-card .evaluation-row{
  display:grid;grid-template-columns:70px minmax(0,1fr);
  align-items:center;gap:8px;margin:0 0 3px}
.evaluation-card .evaluation-row>strong{
  font-size:11.5px;line-height:1.2;word-break:keep-all}
.evaluation-card .eval-levels{
  display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:4px}
.evaluation-card .eval-level{
  width:100%;justify-self:stretch;box-sizing:border-box;
  white-space:nowrap;display:flex;align-items:center;justify-content:center;
  min-height:30px;height:30px;padding:0 4px;font-size:12px;line-height:1.1}

/* 특이사항 칸이 라벨 위로 겹치고 글이 잘렸다. 라벨을 위로 올리고 높이를 준다. */
.evaluation-card .evaluation-note-label,
.evaluation-card label:has(.evaluation-note){display:block;width:100%;margin-top:5px;font-size:11.5px}
.evaluation-card .evaluation-note{
  display:block;width:100%;min-height:44px;margin-top:2px;
  font-size:12px;line-height:1.4;box-sizing:border-box}

/* 카드 머리·꼬리 여백 줄이기 */
.evaluation-card{padding:10px}
.evaluation-card .evaluation-card-head{gap:1px;margin-bottom:3px}
.evaluation-card .evaluation-card-head button{font-size:11px;padding:3px 9px;min-height:0}
.evaluation-card .badge{font-size:10px;padding:1px 6px}
.evaluation-card h3{font-size:13.5px;margin:1px 0}
.evaluation-card .evaluation-state,.evaluation-card .evaluation-message{font-size:10.5px;margin:0}
.evaluation-card .simple-feedback-pending,
.evaluation-card .simple-feedback-result{margin-top:6px;padding:8px 9px}
.evaluation-card .simple-feedback-pending strong,
.evaluation-card .simple-feedback-result strong{font-size:12px}
.evaluation-card .simple-feedback-pending p,
.evaluation-card .simple-feedback-result p{font-size:11px;line-height:1.4;margin:2px 0 5px}
.evaluation-card .simple-feedback-pending button,
.evaluation-card .simple-feedback-result button{font-size:11.5px;padding:5px 10px;min-height:0}
.evaluation-grid{gap:10px}

/* 손가락으로 누르는 휴대폰에서는 버튼을 조금 키운다. */
@media(max-width:899px){
  .evaluation-card .evaluation-row{grid-template-columns:72px minmax(0,1fr)}
  .evaluation-card .eval-level{min-height:38px;height:38px;font-size:12.5px}
  .evaluation-card .evaluation-note{min-height:60px}
}

/* 피드백 작성창 (원장 결정 2026-09-27)
   '확인·수정' 버튼으로 작성창을 다시 열 수 있게 되면서, 그동안 가려져 있던
   기본 textarea 폭(가로 20칸 ≈ 182px)이 드러났다. 본문 칸을 카드 폭 전체로 넓힌다.
   display 는 건드리지 않는다 — .hidden 으로 닫는 동작을 깨뜨리지 않기 위해서다. */
#feedbackComposer{width:100%;margin-top:16px}
#feedbackComposer>label{display:block;margin:14px 0 0;font-size:13px;font-weight:700;color:#3a352f}
#feedbackComposer textarea{display:block;width:100%;margin-top:8px;padding:12px;border:1px solid var(--line);border-radius:10px;font:inherit;line-height:1.7;box-sizing:border-box;resize:vertical}
#feedbackComposer .feedback-record-summary{margin-top:12px}
#feedbackComposer .evaluation-actions{margin-top:16px}
#feedbackParentPreview .feedback-body{margin-top:8px;line-height:1.75;white-space:pre-wrap}
@media(max-width:899px){
  #feedbackComposer textarea{padding:11px;font-size:15px}
}
/* 2026-09-28 내 반 카드 → 반 학생 명단 → 퇴원 요청 (색은 테두리·글씨에만) */
.my-class-students-dialog{width:min(560px,calc(100vw - 32px));max-height:80vh;overflow:auto;padding:18px;border:1px solid #e2d8cf;border-radius:12px;background:#fff;color:var(--ink)}
.my-class-students-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.my-class-students-head span{font-size:.72rem;font-weight:900;color:#b2512f}
.my-class-students-head h3{margin:4px 0;font-size:1.05rem;overflow-wrap:anywhere}
.my-class-students-head p{margin:0;color:var(--muted);font-size:.82rem}
.my-class-students-head .status-btn{flex:0 0 auto}
.my-class-students-message{margin:12px 0 0;padding:8px 12px;border-left:3px solid #b2512f;color:var(--ink);font-size:.85rem}
.my-class-students-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(118px,1fr));gap:8px;margin-top:14px}
.my-class-student{display:grid;gap:2px;min-width:0;text-align:left;padding:10px 12px;border:1px solid #d8cdc3;border-radius:10px;background:#fff;color:var(--ink);font:inherit;cursor:pointer}
.my-class-student strong{font-size:.92rem;overflow-wrap:anywhere}
.my-class-student small{font-size:.72rem;color:var(--muted)}
.my-class-student:not(.is-static):not([disabled]):hover{border-color:#b2512f}
.my-class-student:not(.is-static):not([disabled]):hover small{color:#b2512f}
.my-class-student.is-pending{border-color:#b2512f;cursor:default;opacity:1}
.my-class-student.is-pending small{color:#b2512f;font-weight:700}
.my-class-student.is-static{cursor:default}
/* 2026-09-28 선생님 오늘 업무: 학생 메모 3주 경고 (색은 테두리·글씨에만) */
.memo-overdue-banner{margin:14px 0;padding:14px 16px;border:1px solid #e2d8cf;border-left:4px solid #b2512f;border-radius:12px;background:#fff;color:var(--ink)}
.memo-overdue-head{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 12px}
.memo-overdue-head strong{color:#9a3b24;font-size:1.02rem}
.memo-overdue-head span{color:var(--muted);font-size:.84rem}
.memo-overdue-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(132px,1fr));gap:8px;margin-top:10px}
.memo-overdue-item{display:grid;gap:2px;min-width:0;text-align:left;padding:8px 10px;border:1px solid #d8cdc3;border-radius:10px;background:#fff;color:var(--ink);font:inherit;cursor:pointer}
.memo-overdue-item b{font-size:.92rem;overflow-wrap:anywhere}
.memo-overdue-item small{font-size:.72rem;color:var(--muted)}
.memo-overdue-item:hover{border-color:#b2512f}.memo-overdue-item:hover small{color:#9a3b24}
/* 2026-09-28 게시판 글쓰기: 칸을 위아래로 정리하고 받는 선생님을 체크박스로 (색은 테두리·글씨에만) */
#boardPostForm:not(.hidden){display:grid;gap:14px}
#boardPostForm>label{display:grid;gap:6px;font-weight:700;color:var(--ink)}
#boardPostForm .board-recipient-fieldset{min-width:0;margin:0;padding:0;border:0}
#boardPostForm .board-recipient-fieldset legend{margin:0 0 8px;padding:0;font-weight:700;color:var(--ink)}
#boardPostForm>label input:not([type=checkbox]):not([type=file]),#boardPostForm>label select,#boardPostForm>label textarea{width:100%;box-sizing:border-box;font-weight:400}
#boardPostForm .board-recipients-native{display:none!important}
.board-recipient-checks{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:8px;font-weight:400}
.board-recipient{display:flex;align-items:center;gap:8px;min-width:0;padding:10px 12px;border:1px solid #d8cdc3;border-radius:10px;background:#fff;color:var(--ink);cursor:pointer}
.board-recipient input{width:18px;height:18px;margin:0;flex:0 0 auto;accent-color:#b2512f}
.board-recipient span{overflow-wrap:anywhere}
.board-recipient.is-checked{border:2px solid #b2512f;padding:9px 11px;color:#9a3b24;font-weight:700}
#boardPostForm>.primary{justify-self:start}
@media(max-width:480px){.board-recipient-checks{grid-template-columns:repeat(2,minmax(0,1fr))}.board-recipient{padding:9px 8px}.board-recipient.is-checked{padding:8px 7px}}
/* 2026-09-28 학생 메모 메뉴 (색은 테두리·글씨에만) */
.memo-center{display:grid;gap:14px}
.memo-center-block{padding:14px 16px;border:1px solid #e2d8cf;border-radius:12px;background:#fff;color:var(--ink)}
.memo-center-block.is-warn{border-left:4px solid #b2512f}
.memo-center-head{display:flex;justify-content:space-between;align-items:baseline;gap:10px;margin-bottom:10px}
.memo-center-head h3{margin:0;font-size:1.02rem}
.memo-center-head strong{color:#9a3b24;font-size:.92rem}
.memo-center-empty{margin:0;color:var(--muted)}
.memo-center-chips{display:grid;grid-template-columns:repeat(auto-fill,minmax(132px,1fr));gap:8px}
.memo-chip,.memo-reply,.memo-all-item{display:grid;gap:3px;min-width:0;text-align:left;padding:9px 11px;border:1px solid #d8cdc3;border-radius:10px;background:#fff;color:var(--ink);font:inherit;cursor:pointer}
.memo-chip b{overflow-wrap:anywhere}.memo-chip small,.memo-reply-meta,.memo-reply-note{font-size:.76rem;color:var(--muted);overflow-wrap:anywhere}
.memo-chip:hover,.memo-reply:hover,.memo-all-item:hover{border-color:#b2512f}
.memo-reply-list,.memo-all-list{display:grid;gap:8px}
.memo-reply.is-unread{border:2px solid #b2512f;padding:8px 10px}
.memo-reply em{font-style:normal;font-weight:800;color:#9a3b24;margin-right:6px}
.memo-reply-body{overflow-wrap:anywhere}
.memo-class+.memo-class{margin-top:12px}
.memo-class h4{margin:0 0 6px;font-size:.9rem;color:#1f3350}
.memo-student-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:6px}
.memo-student{display:flex;justify-content:space-between;align-items:center;gap:8px;min-width:0;padding:8px 10px;border:1px solid #e2d8cf;border-radius:10px}
.memo-student span{display:grid;min-width:0}.memo-student b{overflow-wrap:anywhere}.memo-student small{font-size:.74rem;color:var(--muted)}
.memo-student.is-overdue{border-color:#b2512f}.memo-student.is-overdue small{color:#9a3b24}
.memo-write{flex:0 0 auto;padding:6px 10px;border:1px solid #b2512f;border-radius:8px;background:#fff;color:#9a3b24;font:inherit;font-size:.82rem;font-weight:700;cursor:pointer}
.memo-all summary{cursor:pointer;font-weight:700}.memo-all[open] summary{margin-bottom:10px}
/* 2026-09-28 학생 메모 삭제 버튼: 글씨색만(배경 채우지 않음) */
.note-delete{color:#9a3b24!important;font-size:.8rem!important;margin-left:8px}
.memo-thread-reply .note-delete{margin:4px 0 0;padding:0}
/* 2026-09-28 피드백 작성창의 삭제 버튼: 글씨색만 */
#deleteFeedbackComposer{color:#9a3b24!important;margin-left:auto}
/* 2026-09-28 오늘 학생 표 반 특이사항 한 줄 (색은 테두리·글씨에만) */
.class-note-line{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:6px 0 8px;padding:8px 10px;border:1px solid #e2d8cf;border-left:3px solid #b2512f;border-radius:10px;background:#fff}
.class-note-line label{display:flex;align-items:center;gap:8px;flex:1 1 260px;min-width:0;margin:0}
.class-note-line label span{flex:0 0 auto;font-size:.8rem;font-weight:800;color:#9a3b24}
.class-note-line input{flex:1 1 auto;min-width:0;width:100%;padding:6px 8px;border:1px solid #d8cdc3;border-radius:8px;font:inherit;font-size:.88rem;color:var(--ink);background:#fff}
.class-note-line input[readonly]{border-style:dashed;color:var(--muted)}
.class-note-line .class-note-save{flex:0 0 auto}
.class-note-message{flex:0 0 auto;font-size:.74rem;color:var(--muted)}
/* 2026-09-28 평가·피드백 반별 묶음 (색은 테두리·글씨에만) */
.eval-group-bar{display:flex;gap:8px;justify-content:flex-end;margin:0 0 8px}
#weeklyEvaluationList .eval-class-group{display:block;grid-column:1/-1;width:100%;margin:0 0 10px;border:1px solid var(--line);border-left:3px solid #1f3350;border-radius:11px;background:#fff;overflow:hidden}
#weeklyEvaluationList .eval-class-toggle{display:grid;width:100%;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:12px;padding:10px 13px;border:0;background:#fff;color:var(--ink);text-align:left;cursor:pointer;font:inherit}
.eval-class-title{display:flex;align-items:baseline;gap:8px;min-width:0}
.eval-class-title b{font-size:14px;color:#1f3350;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.eval-class-title small{flex:0 0 auto;color:var(--muted)}
.eval-class-count{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.eval-class-count em{font-style:normal;font-size:12px;font-weight:700;color:#3a4454}
.eval-class-count em.is-pending{color:#9a3b24}
#weeklyEvaluationList .eval-class-toggle i{font-style:normal;font-size:12px;font-weight:700;color:#1f3350;border:1px solid #c9bfb3;border-radius:999px;padding:3px 9px}
.eval-class-note{margin:0;padding:6px 13px 8px;font-size:13px;color:var(--ink);border-top:1px dashed var(--line)}
.eval-class-note span{font-size:12px;font-weight:800;color:#9a3b24;margin-right:8px}
#weeklyEvaluationList .eval-class-body{display:none;padding:10px;border-top:1px solid var(--line);gap:10px}
#weeklyEvaluationList .eval-class-group.expanded .eval-class-body{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,340px),1fr))}
@media(max-width:760px){
  #weeklyEvaluationList .eval-class-toggle{grid-template-columns:minmax(0,1fr) auto;row-gap:6px}
  #weeklyEvaluationList .eval-class-count{grid-column:1/-1;grid-row:2;justify-content:flex-start}
  #weeklyEvaluationList .eval-class-toggle i{grid-column:2;grid-row:1}
  #weeklyEvaluationList .eval-class-title{flex-wrap:wrap}
  #weeklyEvaluationList .eval-class-title b{white-space:normal;overflow:visible}
  #weeklyEvaluationList .eval-class-group.expanded .eval-class-body{grid-template-columns:minmax(0,1fr);padding:8px}
}
/* 2026-09-28 원장 출결·과제 누락 상세 (색은 테두리·글씨에만) */
.director-alert-card.is-open{outline:2px solid #1f3350;outline-offset:1px}
.director-alert-detail{margin:10px 0 14px;padding:12px 14px;border:1px solid var(--line);border-left:3px solid #9a3b24;border-radius:12px;background:#fff}
.director-alert-detail-head{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:8px}
.director-alert-detail-head h3{margin:0;font-size:15px;color:#1f3350}.director-alert-detail-head h3 b{color:#9a3b24}
.director-alert-detail-head small{color:var(--muted);flex:1 1 auto}
.director-alert-teacher{padding:8px 0;border-top:1px solid var(--line)}
.director-alert-teacher header{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:4px}
.director-alert-teacher header strong{color:#1f3350;font-size:14px}.director-alert-teacher header span{color:#9a3b24;font-weight:700;font-size:13px;flex:1 1 auto}
.director-alert-class{display:grid;grid-template-columns:minmax(0,260px) minmax(0,1fr);gap:8px;align-items:start;padding:4px 0}
.director-alert-class>span{font-size:12.5px;color:#3a4454;overflow-wrap:anywhere}
.director-alert-class p{margin:0;display:flex;flex-wrap:wrap;gap:6px}
.director-alert-class .student-profile-link{border:1px solid #c9bfb3;border-radius:999px;padding:3px 10px;background:#fff;color:var(--ink);font-size:13px;cursor:pointer}
.director-alert-empty{margin:0;color:var(--muted)}
@media(max-width:760px){.director-alert-class{grid-template-columns:minmax(0,1fr)}}
/* 2026-09-28 실시간 반영 표시 (글씨에만 색) */
.live-sync-badge{margin:0 0 6px;font-size:12px;color:var(--muted);text-align:right}
.live-sync-badge::before{content:'';display:inline-block;width:7px;height:7px;margin-right:6px;border-radius:50%;border:1.5px solid #2f6b4f;vertical-align:1px}
.live-sync-badge.is-fresh{color:#2f6b4f;font-weight:700}
/* 2026-09-28 직원게시판 글 화면: 작은 버튼·한 줄 댓글 (색은 테두리·글씨에만) */
.board-post{background:transparent!important;border:1px solid var(--line);overflow:hidden}
.board-post-summary{display:grid;grid-template-columns:auto minmax(0,1fr);gap:10px;align-items:start}
.board-post-toggle{display:grid;gap:3px;width:100%;min-width:0;padding:0;border:0;background:transparent;color:var(--ink);text-align:left;cursor:pointer;font:inherit}
.board-post-toggle strong{color:#1f3350;font-size:16px;line-height:1.35;overflow-wrap:anywhere}
.board-post-toggle span{color:var(--muted);font-size:13px}
.board-post-toggle[aria-expanded="true"] strong{color:var(--accent)}
.board-inline-detail{min-width:0;margin-top:12px;padding-top:12px;border-top:1px solid var(--line)}
.board-inline-detail .board-post-meta{margin:2px 0 8px;font-size:12.5px;color:var(--muted)}
.board-inline-detail .board-post-actions{display:flex;gap:6px;margin:8px 0 10px}
.board-inline-detail .board-post-actions button{font:inherit;font-size:12px;font-weight:600;line-height:1.2;padding:4px 10px;min-height:0;border:1px solid #c9bfb3;border-radius:999px;background:transparent;color:#3a4454;cursor:pointer;width:auto}
.board-inline-detail .board-post-actions .delete-board-post{color:#9a3b24;border-color:#d9b3a6}
.board-inline-detail .board-comments{margin:6px 0}
.board-inline-detail .board-comment{margin:0;padding:6px 0;border-top:1px dashed var(--line);font-size:13.5px;color:var(--ink)}
.board-inline-detail .board-comment b{color:#1f3350}
.board-inline-detail .board-comment small{color:var(--muted);font-size:11.5px}
.board-inline-detail .board-comment-form{display:flex;gap:6px;align-items:stretch;margin-top:8px;min-width:0}
.board-inline-detail .board-comment-form textarea{flex:1 1 auto;min-width:0;min-height:34px;height:34px;padding:6px 8px;font:inherit;font-size:13.5px;resize:vertical;border:1px solid #d8cdc3;border-radius:8px;background:transparent}
.board-inline-detail .board-comment-form button{flex:0 0 auto;font:inherit;font-size:12.5px;font-weight:700;padding:0 14px;min-height:0;border:1px solid #1f3350;border-radius:8px;background:transparent;color:#1f3350;cursor:pointer;width:auto}
@media(max-width:700px){
  .board-post,.board-post-summary,.board-post-toggle,.board-inline-detail{max-width:100%;min-width:0;overflow-wrap:anywhere}
  .board-post-summary{grid-template-columns:minmax(0,1fr)}
  .board-inline-detail .board-comment-form{display:grid;grid-template-columns:minmax(0,1fr) auto}
}

/* 2026-09-28 선생님별 업무 화면: '출결 미체크'·'과제 완료' 글자가 두 줄로 쪼개지지 않게 */
.teacher-preview-session .preview-statuses{flex:0 0 auto;display:flex;flex-direction:column;gap:6px;align-items:flex-end}
.teacher-preview-session .preview-statuses span{white-space:nowrap}
.my-class-card strong{min-width:0;overflow-wrap:normal;word-break:keep-all}
.my-class-card strong .class-teacher-unit{display:inline-block;color:inherit;font:inherit;font-weight:inherit;white-space:nowrap}
#teacherPreviewToday.cards{grid-template-columns:repeat(auto-fit,minmax(min(310px,100%),1fr));gap:12px}
.teacher-preview-session{display:block;min-width:0;overflow:hidden;padding:.55rem .8rem;border-bottom:1px solid #e7ddd4;background:transparent}
.teacher-preview-session .teacher-preview-line{display:grid;grid-template-columns:minmax(8rem,1fr) auto auto;align-items:center;gap:.35rem .55rem;min-width:0;white-space:nowrap}
.teacher-preview-line strong{min-width:0;font-weight:800}
.teacher-preview-line small{color:var(--muted);font-weight:600}
.attendance-state,.homework-state{font-weight:700}
.attendance-state.is-bad,.homework-state.is-bad{color:var(--red)}
.feedback-actions-3{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:.5rem;margin-top:.75rem}
.feedback-actions-left,.feedback-actions-right{display:flex;align-items:center;gap:.4rem;min-width:0}.feedback-actions-left{flex-wrap:wrap}.feedback-actions-right{justify-content:flex-end}
.evaluation-save-row,.feedback-editor-save-row{display:flex;align-items:center;justify-content:space-between;gap:.6rem;min-height:34px;margin-top:4px}.evaluation-save-row .evaluation-message,.feedback-editor-save-row .form-message{flex:1;min-width:0;margin:0;color:#777;font-size:11.5px}.feedback-editor-save-row>div{display:flex;gap:.4rem;flex:0 0 auto}.feedback-outline-button{border:1px solid #d86c35!important;background:transparent!important;color:#bd4f20!important;border-radius:8px;padding:.42rem .72rem;font-weight:800;white-space:nowrap;cursor:pointer}.feedback-outline-button:disabled{opacity:.5}.feedback-publish-actions{margin-top:.75rem}
@media(max-width:700px){.teacher-preview-session .teacher-preview-line{white-space:normal;gap:.25rem .45rem}.feedback-actions-3{grid-template-columns:minmax(0,1fr) auto;gap:.25rem}.feedback-actions-left{flex-wrap:wrap}.feedback-actions-3 button{font-size:.75rem;padding:.35rem .5rem}}
@media(max-width:430px){.teacher-preview-session .teacher-preview-line{grid-template-columns:minmax(0,1fr) auto}.teacher-preview-line strong{grid-column:1/-1}.teacher-preview-line .attendance-state{grid-column:1}.teacher-preview-line .homework-state{grid-column:2}.feedback-actions-3{grid-template-columns:1fr}.feedback-actions-right{grid-column:1;justify-content:flex-end}.evaluation-save-row,.feedback-editor-save-row{align-items:flex-end}.feedback-editor-save-row{flex-wrap:wrap}.feedback-editor-save-row .form-message{flex-basis:100%}}
/* 2026-09-28 결석 학생은 과제 칸을 비운다(원장 결정). 휴대폰에서는 빈 칸 자체를 숨긴다. */
@media(max-width:760px){
  #todayStudents .today-row .homework-absent,
  #todayStudents .today-row .word-test-empty,
  #todayStudents .today-row .record-reason:not(:has(.reason-entry-active)):not(:has(.saved-reason-summary)){display:none!important}
}
/* 2026-09-28 원장 최근 학생 메모: 글을 누르면 전체 펼침 */
.director-recent-memo .recent-memo-body{cursor:pointer}
.director-recent-memo.is-open{align-items:start!important}
.director-recent-memo.is-open>.recent-memo-body{white-space:pre-wrap!important;overflow:visible!important;text-overflow:clip!important;overflow-wrap:anywhere;line-height:1.55}
.director-recent-memo .recent-memo-body:focus-visible{outline:2px solid #1f3350;outline-offset:2px}
.director-recent-memo.unread-card{background:#fff;border:2px solid var(--red)}.memo-new-mark{display:inline-block;margin-left:.25rem;color:var(--red);font-size:.76rem}.director-recent-memo>.memo-viewed{white-space:nowrap}

/* 59차 직원 보강 묶음: 배경 채움 없이 행과 동작을 분리한다. */
.makeup-result-row{align-items:start!important}.makeup-result-row .makeup-class-cell{min-width:0}.makeup-result-row .makeup-row-actions{display:flex;gap:7px;align-items:flex-start;flex-wrap:wrap}.makeup-absence-entry{order:10;flex:1 0 100%;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px;align-items:end}.makeup-absence-entry.hidden{display:none!important}.makeup-absence-entry .device-help{grid-column:1/-1;margin:0;color:#9a3b24}.makeup-absence-entry input{min-width:0;width:100%}.makeup-more{order:20;flex:1 0 100%;border-top:1px solid var(--line);padding-top:7px}.makeup-more summary{cursor:pointer;font-weight:700}.makeup-more p{margin:7px 0 3px;font-size:12px}.app-confirm-dialog{max-width:420px}.memo-pagination{display:flex;align-items:center;gap:5px;overflow:hidden;white-space:nowrap}.memo-pagination .hidden{display:none!important}
.director-today-makeup .coach-makeup-reason,.coach-today-makeups .coach-makeup-reason{display:none}.director-today-makeup.is-entering-absence .coach-makeup-reason,.coach-today-makeups .is-entering-absence .coach-makeup-reason{display:block}
@media(max-width:760px){.makeup-result-row{grid-template-columns:minmax(84px,.8fr) minmax(70px,.7fr)!important}.makeup-result-row>span,.makeup-result-row>.makeup-row-actions{grid-column:1/-1}.makeup-absence-entry{grid-template-columns:1fr}.makeup-absence-entry .device-help{grid-column:1}.makeup-result-row .status-btn,.makeup-result-row .text-button{min-height:40px}.memo-pagination{max-width:100%}}
@media(max-width:700px){.director-recent-memo>.memo-viewed{grid-column:2;grid-row:3;justify-self:end}}
/* 2026-09-28 원장 출결 미체크 명단에서 바로 체크 (색은 테두리·글씨에만) */
.director-alert-class .alert-attend{display:inline-flex;align-items:center;gap:6px;flex-wrap:wrap;padding:4px 8px;border:1px solid #d8cdc3;border-radius:12px;background:#fff}
.director-alert-class .alert-attend .student-profile-link{border:0;padding:2px 4px}
.alert-attend-btns{display:inline-flex;gap:4px}
.alert-attend-btns button,.alert-attend-reason button{font:inherit;font-size:12px;font-weight:700;padding:3px 9px;border:1px solid #c9bfb3;border-radius:999px;background:#fff;color:#1f3350;cursor:pointer;min-height:0;width:auto}
.alert-attend-btns button[data-att="absence_confirmed"]{color:#9a3b24;border-color:#d9b3a6}
.alert-attend-reason{display:inline-flex;gap:4px;align-items:center}
.alert-attend-reason input{width:120px;max-width:100%;padding:3px 7px;font:inherit;font-size:12.5px;border:1px solid #d8cdc3;border-radius:8px}
.alert-attend.is-done{border-color:#2f6b4f}
.alert-attend-ok{color:#2f6b4f;font-weight:700;font-size:12px}
/* 2026-09-28 원장 요청: 과제 미완료·결석은 빨간 글씨(배경은 채우지 않음) */
.status-btn[data-status="absence_confirmed"],.status-btn[data-status="incomplete"]{color:#b53a2d!important}
.status-btn.selected[data-status="absence_confirmed"],.status-btn.selected[data-status="incomplete"]{background:#fff!important;color:#b53a2d!important;border:2px solid #b53a2d!important;font-weight:800!important}
.preview-statuses span.is-bad{background:#fff!important;color:#b53a2d!important;border:1.5px solid #b53a2d}
/* 2026-09-28 결석·과제 미제출 한눈에(빨간 글씨·테두리만) */
.hist-bad{color:#b53a2d;font-weight:800}
.director-alert-class .alert-person{display:inline-flex;align-items:center;gap:6px;padding:3px 10px;border:1px solid #c9bfb3;border-radius:999px;background:#fff}
.director-alert-class .alert-person .student-profile-link{border:0;padding:0;background:none}
.director-alert-class .alert-person small{color:var(--muted);font-size:12px}
.director-alert-class .alert-person.is-bad{border-color:#b53a2d}
.director-alert-class .alert-person.is-bad .student-profile-link{color:#b53a2d;font-weight:800}
.director-alert-card[data-code="absent_today"].has-alert strong,.director-alert-card[data-code="homework_missing"].has-alert strong,.director-alert-card[data-code="homework_streak"].has-alert strong{color:#b53a2d!important}
.homework-streak-warning{margin:0 0 12px;padding:12px 14px;border:2px solid #b53a2d;border-radius:12px;background:#fff;color:#b53a2d}
.homework-streak-warning>strong{display:block;font-size:15px;margin-bottom:6px}
.homework-streak-warning p{margin:0;display:flex;flex-wrap:wrap;gap:6px 12px}
.homework-streak-warning p span{display:inline-flex;align-items:center;gap:6px}
.homework-streak-warning .student-profile-link{color:#b53a2d;font-weight:800;background:none;border:0;padding:0;text-decoration:underline}
.homework-streak-warning small{color:#3a4454}
.homework-streak-warning.is-clear{border-color:var(--line);background:#fff;color:var(--muted)}
.homework-streak-help{display:block;margin-top:6px}

.homework-streak-warning p span{flex-wrap:wrap}
.homework-streak-warning .student-profile-link{white-space:nowrap}

/* 54차: 반 배정 전 등록 예정 학생 */
.prospective-form,.prospective-card{background:transparent}
.prospective-subjects{display:flex;flex-wrap:wrap;gap:10px 18px;margin:14px 0;padding:12px 14px;border:1px solid var(--line);border-radius:14px}
.prospective-subjects legend{padding:0 7px;font-weight:700;color:var(--ink)}
.prospective-subjects label{display:flex;align-items:center;gap:7px;color:var(--ink)}
.prospective-subjects input{accent-color:#b2512f}
.prospective-list{display:grid;gap:12px}
.prospective-card{display:grid;grid-template-columns:minmax(0,1fr) minmax(250px,360px);gap:18px;align-items:start;border:1px solid var(--line)}
.prospective-card.is-overdue{border-color:#b42318;color:#9f1c14}
.prospective-card-main,.prospective-actions{min-width:0}
.prospective-actions{display:grid;gap:9px;justify-items:stretch}
.prospective-actions label{display:grid;gap:5px;font-weight:700}
.prospective-actions select{width:100%;min-width:0}
.prospective-actions .status-btn,.prospective-actions .primary,.prospective-actions .text-button{background:transparent;color:#b2512f;border:1px solid #b2512f}
.prospective-actions .primary:hover,.prospective-actions .status-btn:hover,.prospective-actions .text-button:hover{background:#fff7f2}
@media (max-width:700px){
  .prospective-card{grid-template-columns:minmax(0,1fr)}
  .prospective-subjects{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
  #prospectiveStudentSection,.prospective-form,.prospective-list,.prospective-card{max-width:100%;min-width:0;overflow-wrap:anywhere}
}

/* 61차: 주차별 피드백 작성 안 함 */
.feedback-skip{background:transparent!important;border:1px solid #b2512f!important;color:#b2512f!important;white-space:nowrap}
.feedback-skipped{border:1px solid #b2512f;background:transparent;color:var(--ink)}
.feedback-skipped>strong{color:#b2512f}
.evaluation-card.is-feedback-skipped{border-color:#c68b74}
@media (max-width:700px){.simple-feedback-result .evaluation-actions,.simple-feedback-pending .evaluation-actions{display:flex;flex-wrap:wrap}.feedback-skip{max-width:100%}}
.feedback-actions-left{display:flex!important;flex-flow:row nowrap!important;gap:6px;align-items:center}.feedback-actions-left button{white-space:nowrap;word-break:keep-all;min-width:max-content}
.makeup-place-tabs{display:grid;gap:8px;margin:12px 0}.makeup-place-tabs label{display:flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:10px;padding:11px;font-weight:800}.makeup-subheading{grid-column:1/-1;display:flex;justify-content:space-between;align-items:center;min-height:42px;margin-top:10px;padding:8px 12px;border-radius:9px;background:var(--paper,#f6f3ef)}
#directorAlertCards .director-alert-card{contain:layout;min-height:116px}.teacher-command-stats>button{min-height:116px;contain:layout}.count{display:inline-block;min-width:4ch;font-variant-numeric:tabular-nums}

/* 77e: 주간 진행 카드는 이름을 넣지 않고 세 줄만 고정해 글자 확대 때도 이웃 영역을 침범하지 않는다. */
#directorAlertCards .director-alert-card[data-code="weekly_progress"]{
  display:flex!important;flex-direction:column!important;align-items:flex-start!important;justify-content:center!important;
  grid-column:1/-1!important;gap:5px!important;min-width:0!important;overflow:hidden!important
}
#directorAlertCards .director-alert-card[data-code="weekly_progress"]>span,
#directorAlertCards .director-alert-card[data-code="weekly_progress"]>strong,
#directorAlertCards .director-alert-card[data-code="weekly_progress"]>small{
  display:block!important;position:static!important;grid-column:auto!important;grid-row:auto!important;
  width:100%!important;min-width:0!important;margin:0!important;white-space:nowrap!important;
  word-break:keep-all!important;overflow:hidden!important;text-overflow:clip!important
}
#directorAlertCards .director-alert-card[data-code="weekly_progress"]>span{font-size:15px!important;line-height:1.35!important}
#directorAlertCards .director-alert-card[data-code="weekly_progress"]>strong{font-size:clamp(11px,3vw,14px)!important;line-height:1.4!important;color:var(--accent)!important}
#directorAlertCards .director-alert-card[data-code="weekly_progress"]>small{font-size:12px!important;line-height:1.35!important;color:var(--muted)!important;min-height:0!important;max-height:none!important}

/* 71차: 보강 미배정 카드는 요약만 담고 전체 명단은 카드 아래 흐름에 펼친다. */
#directorAlertCards .director-alert-card{overflow:hidden!important}
#directorAlertCards .director-alert-card:not([data-code="makeup_unassigned"]):not([data-code="weekly_progress"])>small{display:-webkit-box!important;-webkit-box-orient:vertical;-webkit-line-clamp:2;max-height:2.9em!important;overflow:hidden!important}
#directorAlertCards .director-alert-card[data-code="makeup_unassigned"]{contain:none!important;grid-template-columns:minmax(0,1fr)!important;align-items:start!important}
#directorAlertCards .director-alert-card[data-code="makeup_unassigned"]>span,
#directorAlertCards .director-alert-card[data-code="makeup_unassigned"]>strong,
#directorAlertCards .director-alert-card[data-code="makeup_unassigned"]>small{grid-column:1!important;grid-row:auto!important;min-width:0!important;width:100%!important}
#directorAlertCards .director-alert-card[data-code="makeup_unassigned"]>strong{font-size:18px!important;line-height:1.4!important}
#directorAlertCards .director-alert-card[data-code="makeup_unassigned"]>small{display:flex!important;flex-wrap:wrap;gap:4px 10px;max-height:none!important;overflow:hidden!important}
.director-alert-overdue{display:block;flex:1 0 100%;color:#b4232a;font-style:normal;font-weight:850}
.director-unassigned-detail{grid-column:1/-1;box-sizing:border-box;display:grid;gap:12px;width:100%;min-width:0;padding:14px;border:1px solid var(--line);border-left:5px solid var(--accent);border-radius:14px;background:var(--paper);overflow:hidden}
.director-unassigned-group{min-width:0}.director-unassigned-group h3{display:flex;justify-content:space-between;gap:10px;margin:0;padding:6px 4px 9px;border-bottom:1px solid var(--line)}
.director-unassigned-row{box-sizing:border-box;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px 12px;width:100%;min-width:0;padding:10px 4px;border-bottom:1px solid var(--line)}
.director-unassigned-row:last-child{border-bottom:0}.director-unassigned-row>div:first-child{display:grid;min-width:0;gap:3px}.director-unassigned-row span{color:var(--muted);font-size:12px}.director-unassigned-row.is-overdue>div:first-child span{color:#b4232a;font-weight:850}
.director-unassigned-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px}.director-unassigned-actions button{min-height:40px;white-space:nowrap}
@media(max-width:720px){.director-unassigned-row{grid-template-columns:minmax(0,1fr)}.director-unassigned-actions{justify-content:stretch}.director-unassigned-actions button{flex:1 1 120px}.director-unassigned-detail{padding:10px}}


/* 63차: 오늘 학생 행 높이와 보강 버튼 폭을 안정시켜 저장·실시간 반영 때 화면이 흔들리지 않게 한다. */
#todayStudents .attendance-reason-entry,#todayStudents .homework-reason-entry{min-height:42px;align-content:center}
#todayStudents .record-reason{min-height:42px}
.ai-copy,.staff-makeup-copy-button{min-inline-size:5.4em;white-space:nowrap}
.floating-toast{position:fixed;left:50%;bottom:max(18px,env(safe-area-inset-bottom));z-index:9999;max-width:calc(100vw - 32px);padding:7px 12px;border-radius:999px;background:rgba(35,35,35,.92);color:#fff;font-size:12px;line-height:1.2;box-shadow:0 4px 16px rgba(0,0,0,.22);opacity:0;pointer-events:none;transform:translate(-50%,8px);transition:opacity .12s ease,transform .12s ease}
.floating-toast.is-visible{opacity:1;transform:translate(-50%,0)}
.live-sync-badge{min-height:20px;line-height:20px}
#manualRefresh{white-space:nowrap}
body:has(#app.hidden) #manualRefresh{display:none}
body{padding-top:72px}.topbar{position:fixed!important;left:0;right:0;top:0;z-index:60}

/* ===== 2026-10-04 학부모 앱 2차: 시안 B =====
   학부모 역할 클래스 아래에서만 적용해 직원 화면 규칙과 완전히 분리한다. */
body.parent-app{--parent-bg:#fbf8f3;--parent-card:#fff;--parent-ink:#2b2622;--parent-muted:#6a5f55;--parent-line:#ece3d6;--parent-accent:#b2512f;background:var(--parent-bg);color:var(--parent-ink)}
body.parent-app .topbar{background:var(--parent-bg)!important;border-bottom:1px solid var(--parent-line)!important;box-shadow:none!important}
body.parent-app .topbar .brand strong{color:var(--parent-accent)!important;font-weight:900}body.parent-app .topbar .brand>span{display:none}
body.parent-app .header-actions{gap:12px}body.parent-app #parentHeaderName{color:var(--parent-ink);font-size:14px;white-space:nowrap}body.parent-app #manualRefresh,body.parent-app #bell{display:none!important}
body.parent-app #logout{color:var(--parent-muted)!important}body.parent-app .sidebar,body.parent-app #staffViewNav,body.parent-app .welcome-line,body.parent-app #nav{display:none!important}
body.parent-app .app-shell{display:block!important}body.parent-app .workspace{box-sizing:border-box;width:min(100%,560px)!important;max-width:560px!important;margin:0 auto!important;padding:24px 14px 70px!important;background:transparent!important}
body.parent-app #familyDashboard{display:flex;flex-direction:column;gap:16px}body.parent-app #parentAnnouncementStrip{order:1}body.parent-app #parentPrimaryMenu{order:2}body.parent-app #parentTodayMakeups{order:3}body.parent-app #familyCalendarSection{order:4}body.parent-app #familyOverview{order:5}body.parent-app #absenceForm{order:6}body.parent-app #makeupForm{order:7}body.parent-app #consultationForm,body.parent-app #familyFeedbackSection,body.parent-app #parentNewsSection{order:8}
body.parent-app .parent-announcement-strip{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px;width:100%;min-height:48px;margin:0;padding:11px 13px;border:1px solid var(--parent-line);border-radius:12px;background:var(--parent-card);color:var(--parent-ink);text-align:left;cursor:pointer}
body.parent-app .parent-announcement-strip.hidden{display:none!important}body.parent-app .parent-announcement-strip b{color:var(--parent-accent);font-size:12px}body.parent-app .parent-announcement-strip span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}body.parent-app .parent-announcement-strip em{color:var(--parent-muted);font-size:11px;font-style:normal}
body.parent-app .parent-primary-menu{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}body.parent-app .parent-primary-menu button,body.parent-app .parent-primary-menu a{display:flex;min-width:0;min-height:46px;align-items:center;justify-content:center;gap:6px;padding:8px 5px;border:1px solid var(--parent-accent);border-radius:11px;background:#fff;color:var(--parent-accent);font:inherit;font-size:13px;font-weight:800;text-decoration:none;cursor:pointer}
body.parent-app .parent-primary-menu svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:0 0 auto}
body.parent-app #parentFeedbackUnread{min-width:20px;height:20px;padding:0 5px;border:1px solid currentColor;border-radius:999px;line-height:18px;text-align:center;font-size:11px}
body.parent-app .consultation-subjects legend{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}body.parent-app .consultation-subjects legend small{white-space:nowrap;color:var(--parent-muted)}
body.parent-app .parent-today-makeups{display:grid;gap:8px;padding:14px;border:1px solid var(--parent-accent);border-radius:13px;background:#fff}body.parent-app .parent-today-makeups.hidden{display:none!important}body.parent-app .parent-today-makeups p{display:grid;gap:4px;margin:0}body.parent-app .parent-today-makeups b{color:var(--parent-accent)}body.parent-app .parent-today-makeups span{color:var(--parent-muted);font-size:13px}
body.parent-app .parent-calendar-heading{margin:0!important;padding:0!important}body.parent-app .parent-calendar-heading>div:first-child,body.parent-app .parent-native-controls{display:none!important}
body.parent-app #calendarSummary{display:block;width:100%}body.parent-app .parent-month-controls{display:grid;grid-template-columns:44px minmax(150px,1fr) 44px;align-items:center;gap:8px}body.parent-app .parent-month-controls strong{text-align:center;font-size:21px;color:var(--parent-ink);white-space:nowrap}body.parent-app .parent-month-controls button{min-height:44px;border:1px solid var(--parent-line);border-radius:10px;background:#fff;color:var(--parent-accent);font-size:25px;cursor:pointer}
body.parent-app .parent-calendar-legend{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;margin-top:10px;color:var(--parent-muted);font-size:12px}body.parent-app .parent-calendar-legend span{display:flex;align-items:center;gap:5px}body.parent-app .parent-calendar-legend i{display:inline-block;width:20px;border-top:3px solid var(--parent-accent)}body.parent-app .parent-calendar-legend .makeup-line{border-top-style:dashed}
body.parent-app .parent-month-recap{margin:0 0 10px;padding:10px 12px;border-left:4px solid var(--parent-accent);color:var(--parent-ink);font-size:14px;font-weight:800}
body.parent-app .parent-calendar-legend .attended-line{border-color:#4f8657}body.parent-app .parent-calendar-legend .absent-line{border-color:#b64b43}body.parent-app .parent-calendar-legend .makeup-line{border-color:#77716b;border-top-style:solid}
body.parent-app .parent-calendar-legend .absence-request-line{border-color:#b64b43;border-top-style:dashed}
body.parent-app .parent-calendar-weekdays{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));margin-top:10px;border:1px solid var(--parent-line);border-bottom:0;border-radius:12px 12px 0 0;background:#fff!important;color:var(--parent-muted)!important}body.parent-app .parent-calendar-weekdays span{padding:9px 2px;text-align:center;font-size:12px;font-weight:800;color:#6a5f55!important}body.parent-app .parent-calendar-weekdays span:nth-child(6){color:#2f5aa8!important}body.parent-app .parent-calendar-weekdays span:nth-child(7){color:#b4232a!important}
body.parent-app .parent-calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));border-left:1px solid var(--parent-line);border-top:1px solid var(--parent-line)}body.parent-app .parent-calendar-day{appearance:none;min-width:0;min-height:88px;padding:5px;border:0;border-right:1px solid var(--parent-line);border-bottom:1px solid var(--parent-line);border-radius:0;background:#fff;color:var(--parent-ink);text-align:left;font:inherit}body.parent-app button.parent-calendar-day.has-events{cursor:pointer}body.parent-app .parent-calendar-day:disabled{opacity:1}body.parent-app .parent-calendar-day>b{display:block;margin-bottom:4px;font-size:12px}body.parent-app .parent-calendar-day:nth-child(7n+6)>b{color:#2f5aa8}body.parent-app .parent-calendar-day:nth-child(7n)>b{color:#b4232a}body.parent-app .parent-calendar-day.is-today>b{font-weight:900;text-decoration:underline 2px var(--parent-accent);text-underline-offset:3px}
body.parent-app .parent-calendar-lesson{display:block;overflow:visible;margin:3px 0;padding:4px 3px 4px 6px;border:1px solid var(--parent-line)!important;border-left:4px solid transparent!important;border-radius:6px;background:#fff!important;color:var(--parent-ink);white-space:normal;overflow-wrap:anywhere;line-height:1.2}body.parent-app .parent-calendar-lesson strong{display:block;font-size:10px}body.parent-app .parent-calendar-lesson em{display:block;overflow:visible;color:var(--parent-muted);font-size:9px;font-style:normal;overflow-wrap:anywhere}
body.parent-app .parent-calendar-lesson[data-subject="수학"]{border-left-color:#d97a1f!important}body.parent-app .parent-calendar-lesson[data-subject="영어"]{border-left-color:#3f6a9e!important}body.parent-app .parent-calendar-lesson[data-subject="과학"]{border-left-color:#c9a227!important}body.parent-app .parent-calendar-lesson.is-makeup{border:1px dashed #9a948c!important;border-left:4px dashed #9a948c!important;color:#6a5f55}
body.parent-app .parent-calendar-lesson.is-attended{border-color:#8ebc96!important;border-left-color:#4f8657!important;background:#edf7ef!important;color:#214c2a}body.parent-app .parent-calendar-lesson.is-calendar-absent{border-color:#e3a29d!important;border-left-color:#b64b43!important;background:#fff0ef!important;color:#72251f}body.parent-app .parent-calendar-lesson.is-makeup{border-style:solid!important;border-left-style:solid!important;background:#f1f0ee!important;color:#3f3b37}body.parent-app .parent-calendar-lesson.is-makeup-pending{border-style:dashed!important;border-left-style:dashed!important;background:#fff!important}
body.parent-app .parent-calendar-lesson.is-absence-request{border:1px dashed #d98f89!important;border-left:4px dashed #b64b43!important;background:#fff8f7!important;color:#72251f}
body.parent-app #calendarSummary>.calendar-stat{display:none!important}body.parent-app .parent-calendar-weekdays{background:transparent!important;border-inline:0!important;border-top:0!important}
body.parent-app .parent-primary-menu{position:static!important;top:auto!important;z-index:auto!important}
body.parent-app .parent-news-empty{display:grid;min-height:260px;place-content:center;text-align:center;gap:18px}
body.parent-app .family-overview{display:grid;gap:12px;margin:0}body.parent-app .parent-child-card{padding:18px;border:1px solid var(--parent-line);border-radius:14px;background:#fff}body.parent-app .parent-child-card h2{margin:0 0 12px;color:var(--parent-ink);font-size:21px}body.parent-app .parent-child-lessons{display:grid;gap:7px}body.parent-app .parent-child-lessons p{display:grid;grid-template-columns:auto 1fr;gap:9px;margin:0;color:var(--parent-muted);font-size:13px}body.parent-app .parent-child-lessons b{color:var(--parent-ink)}
body.parent-app .parent-outline-button,body.parent-app .parent-home-back{min-height:44px;padding:9px 13px;border:1px solid var(--parent-accent);border-radius:10px;background:#fff;color:var(--parent-accent);font-weight:800;cursor:pointer}body.parent-app .parent-child-absence{margin-top:14px}body.parent-app .parent-upcoming-makeup{display:grid;gap:7px;margin-top:16px;padding-top:13px;border-top:1px solid var(--parent-line)}body.parent-app .parent-upcoming-makeup>strong{color:var(--parent-accent);font-size:13px}body.parent-app .parent-upcoming-makeup p{display:grid;gap:2px;margin:0;font-size:13px}body.parent-app .parent-upcoming-makeup span,body.parent-app .parent-upcoming-makeup small{color:var(--parent-muted)}
body.parent-app .absence-form,body.parent-app #familyFeedbackSection,body.parent-app #parentNewsSection{padding:16px;border:1px solid var(--parent-line);border-radius:14px;background:#fff}body.parent-app .parent-home-back{margin-bottom:14px}body.parent-app .primary{border:1px solid var(--parent-accent)!important;background:#fff!important;color:var(--parent-accent)!important}
body.parent-app .parent-day-dialog,body.parent-app .parent-announcement-dialog{width:min(92vw,520px);max-height:82vh;overflow:auto;padding:20px;border:1px solid var(--parent-line);border-radius:15px;background:#fff;color:var(--parent-ink)}body.parent-app .parent-day-dialog::backdrop,body.parent-app .parent-announcement-dialog::backdrop{background:rgba(43,38,34,.38)}body.parent-app .parent-day-head{display:flex;align-items:center;justify-content:space-between}body.parent-app .parent-day-children{display:flex;gap:8px;margin:14px 0}body.parent-app .parent-day-children button{min-height:44px;padding:8px 14px;border:1px solid var(--parent-accent);border-radius:10px;background:#fff;color:var(--parent-accent);font-weight:800}body.parent-app .parent-day-children button.active{background:#fff7f3;box-shadow:inset 0 0 0 1px var(--parent-accent)}body.parent-app .parent-day-detail{display:grid;gap:8px}body.parent-app .parent-day-detail article{display:grid;gap:6px;padding:12px;border:1px solid var(--parent-line);border-radius:10px}body.parent-app .parent-day-detail span{color:var(--parent-muted);font-size:13px}
body.parent-app .parent-day-actions{display:flex;flex-wrap:wrap;gap:8px}
body.parent-app .parent-password-dialog{width:min(92vw,440px);padding:22px;border:1px solid var(--parent-line);border-radius:15px;color:var(--parent-ink)}body.parent-app .parent-password-dialog form{display:grid;gap:12px}body.parent-app .parent-password-dialog label{display:grid;gap:5px}body.parent-app #parentPasswordChange{white-space:nowrap;color:var(--parent-accent)!important}
body.parent-app .parent-consultation-thread .consultation-comments{display:grid;gap:8px;margin-top:12px;padding-top:12px;border-top:1px solid var(--parent-line)}body.parent-app .parent-consultation-thread .consultation-comments p{display:grid;gap:3px;margin:0;padding:9px;border-left:3px solid var(--parent-accent)}body.parent-app .parent-consultation-thread .consultation-comments b{color:var(--parent-accent)}body.parent-app .parent-consultation-thread .consultation-comments small{color:var(--parent-muted)}
@media(max-width:500px){body.parent-app .workspace{padding-inline:10px!important}body.parent-app #parentHeaderName{font-size:12px}body.parent-app .header-actions{gap:5px}body.parent-app #parentPasswordChange{max-width:74px;padding-inline:4px;font-size:10px}body.parent-app .parent-primary-menu button,body.parent-app .parent-primary-menu a{font-size:12px}body.parent-app .parent-calendar-day{min-height:76px;padding:3px}body.parent-app .parent-calendar-lesson{padding-left:4px;white-space:normal}body.parent-app .parent-calendar-lesson strong,body.parent-app .parent-calendar-lesson em{display:block;overflow-wrap:anywhere;line-height:1.2}}
@media(max-width:899px){body{padding-top:62px}}
@media(max-width:560px){#manualRefresh{padding:8px 10px;font-size:12px}}
.makeup-list-row{grid-template-columns:minmax(110px,.75fr) minmax(70px,.45fr) minmax(54px,.35fr) minmax(250px,1.8fr) minmax(95px,.65fr) minmax(220px,1fr);gap:7px;padding:7px 9px}
.makeup-teacher-group{grid-column:1/-1;margin-top:8px;padding:7px 9px 4px;border-bottom:1px solid var(--line);color:#6f625b;font-size:12px}.makeup-teacher-group:first-child{margin-top:0}.makeup-teacher-group strong{font-weight:800}
.makeup-class-cell{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere}
.makeup-row-actions{flex-wrap:nowrap;white-space:nowrap}
.makeup-row-actions .status-btn{white-space:nowrap;word-break:keep-all;min-width:max-content;padding-inline:10px}
.makeup-row-actions select{min-width:170px;max-width:210px}
@media(max-width:700px){.makeup-list-row{grid-template-columns:minmax(0,1fr) minmax(0,auto);width:100%;max-width:100%;padding:8px;gap:4px 8px}.makeup-row-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);width:100%;min-width:0}.makeup-row-actions select,.makeup-row-actions input{grid-column:1/-1;width:100%;min-width:0}.makeup-row-actions .status-btn{width:100%;min-width:0;white-space:nowrap}.makeup-row-actions .status-btn:only-child{grid-column:1/-1}.makeup-class-cell{text-align:left!important;grid-column:1/-1!important;grid-row:auto!important}.makeup-teacher-group{padding-inline:2px}}
.prospective-notes{margin-top:14px;padding-top:12px;border-top:1px solid var(--line);color:var(--ink)}
.prospective-notes h4{margin:0 0 8px}.prospective-notes article{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 10px;padding:9px 0;border-top:1px dashed var(--line)}
.prospective-notes article p{grid-column:1/-1;margin:0;white-space:pre-wrap}.prospective-notes article small{color:var(--muted)}
.prospective-note-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;margin-top:10px}.prospective-note-form textarea{width:100%;box-sizing:border-box}.prospective-note-form .form-message{grid-column:1/-1}
.memo-pagination{display:flex;justify-content:center;gap:6px;padding:12px}.memo-pagination .status-btn{min-width:36px}.memo-pagination .active{border-color:#b2512f;color:#8f3d22}
.board-attachment-list{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0}.board-attachment-list span{display:inline-flex;align-items:center;gap:6px;padding:5px 8px;border:1px solid var(--line);border-radius:999px}
.board-attachment-list button{border:0;background:transparent;color:#9f1c14;font-size:18px;line-height:1;cursor:pointer}
.future-enrollment-row{border-color:#b2512f!important;color:#8f3d22}
.status-btn[data-kind],.eval-level{transition:transform .14s ease,border-color .14s ease,color .14s ease}.status-btn[data-kind]:active,.status-btn[data-kind].pressing,.eval-level:active{transform:scale(.94)}
.record-save-check{margin-left:5px;color:#2f6b3b;font-weight:900;animation:record-check 1s ease both}.record-save-error{grid-column:1/-1;color:#b42318;font-weight:700}
@keyframes record-check{0%{opacity:0;transform:scale(.7)}20%,70%{opacity:1;transform:scale(1)}100%{opacity:0}}
@media(max-width:700px){.prospective-note-form{grid-template-columns:1fr}.prospective-notes article{grid-template-columns:1fr}.board-attachment-list span{max-width:100%;overflow-wrap:anywhere}}

/* 65차 최종 우선순위: 게시판 PC 한 줄/휴대폰 두 줄, 학생 메모 접기 목록 */
.board-post-summary{display:grid;grid-template-columns:78px minmax(220px,1fr) 120px 92px 72px 78px;align-items:center;gap:8px;min-height:42px;padding:7px 10px}
.board-post-toggle{min-width:0;text-align:left;overflow:hidden}.board-post-toggle strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.board-post-author,.board-post-summary time,.board-comment-count,.board-receipt-count{font-size:12.5px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.board-post-summary time,.board-comment-count,.board-receipt-count{text-align:right}
.board-read-receipts{margin:10px 0;padding:9px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.board-read-receipts p{margin:4px 0;font-size:13px;line-height:1.5}
.memo-line-item{border:1px solid #d8cdc3;border-radius:10px;background:#fff;overflow:hidden}
.memo-line-toggle{display:grid;grid-template-columns:88px 72px 92px minmax(180px,1fr) 118px;gap:8px;align-items:center;width:100%;padding:9px 11px;border:0;background:transparent;color:var(--ink);text-align:left;cursor:pointer}
.memo-line-toggle>span,.memo-line-toggle time{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.memo-line-student{font-weight:800}.memo-line-subject,.memo-line-author,.memo-line-toggle time{font-size:12.5px;color:var(--muted)}
.memo-line-preview{font-size:14px}.memo-line-detail{padding:0 11px 11px;border-top:1px solid var(--line)}
.memo-line-detail>p{margin:10px 0;white-space:pre-wrap;line-height:1.6}.memo-line-detail .memo-thread-actions{display:flex;flex-wrap:wrap;gap:8px}
@media(max-width:700px){
  .board-post-summary{grid-template-columns:minmax(0,1fr) auto auto auto;grid-template-rows:auto auto;padding:8px;gap:5px 8px}
  .board-read-badge{grid-column:1}.board-post-toggle{grid-column:1/-1;grid-row:1}.board-post-toggle strong{padding-left:66px}
  .board-post-author{grid-column:1;grid-row:2}.board-post-summary time{grid-column:2;grid-row:2}.board-comment-count{grid-column:3;grid-row:2}.board-receipt-count{grid-column:4;grid-row:2}
  .memo-line-toggle{grid-template-columns:minmax(0,1fr) auto auto;grid-template-rows:auto auto;gap:4px 7px}
  .memo-line-student{grid-column:1}.memo-line-author{grid-column:2}.memo-line-toggle time{grid-column:3}.memo-line-subject{display:none}.memo-line-preview{grid-column:1/-1;grid-row:2}
}
.holiday-banner{position:relative;box-sizing:border-box;width:100%;margin:0 0 16px;padding:12px 16px;border:1px solid #d58a37;border-radius:12px;color:#8a4d0f;background:#fffaf1;font-weight:700;line-height:1.45}
.holiday-grade-choices,.holiday-class-choices{display:flex;flex-wrap:wrap;gap:8px 14px;margin-top:8px}
.holiday-grade-choices label,.holiday-class-choices label{display:flex;align-items:center;gap:5px;min-width:max-content}
.holiday-class-choices{max-height:220px;overflow:auto;padding:8px;border:1px solid var(--line,#ddd);border-radius:10px}
.overdue-daily{margin:0 0 18px;border:2px solid #a14b2a;border-radius:14px;padding:14px;background:transparent;color:var(--ink,#292521)}
.overdue-daily .section-bar{margin:0 0 10px}.overdue-daily h2 b{color:#934022}.overdue-group{border-top:1px solid var(--line,#ddd);padding:10px 0}.overdue-group header{display:flex;gap:10px;align-items:center;color:#6a3b29}.overdue-group header b{margin-left:auto}
.overdue-row{display:grid;grid-template-columns:minmax(132px,.8fr) minmax(90px,.7fr) minmax(84px,.6fr) minmax(190px,1fr);gap:10px;align-items:center;padding:9px 0;border-top:1px dashed var(--line,#ddd)}.overdue-row>div{display:flex;gap:6px;flex-wrap:wrap}.overdue-row button,.workload-detail-toggle{min-height:38px;border:1px solid #a14b2a;border-radius:8px;background:transparent;color:#7d321a;font-weight:800;padding:7px 10px;cursor:pointer}.workload-detail{margin-top:10px;padding:9px;border-left:3px solid #a14b2a}.workload-detail p{margin:5px 0}
@media(max-width:560px){.overdue-daily{padding:12px}.overdue-row{grid-template-columns:1fr 1fr;gap:7px}.overdue-row>div{grid-column:1/-1}.overdue-row button{flex:1;min-height:44px}.overdue-group header{flex-wrap:wrap}}
/* 61 withdrawal analytics: borders and text only, no filled chart backgrounds. */
#withdrawalAnalyticsSection{max-width:100%;overflow:hidden}
.withdrawal-summary-grid,.withdrawal-stat-columns{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:12px 0}
.withdrawal-summary-grid button,.withdrawal-stat-row{min-height:44px;border:1px solid #d8cbbd;background:transparent;color:inherit;border-radius:10px;padding:10px;text-align:left}
.withdrawal-summary-grid b{display:block;font-size:1.5rem;color:#8d452d}.withdrawal-stat-row{display:grid;width:100%;grid-template-columns:110px 1fr;position:relative;margin:6px 0}
.withdrawal-stat-row i{position:absolute;left:0;bottom:0;border-bottom:3px solid #8d452d}.withdrawal-event-card{border-left:3px solid #8d452d}.withdrawal-tabs{display:flex;flex-wrap:wrap}
@media(max-width:600px){.withdrawal-summary-grid,.withdrawal-stat-columns{grid-template-columns:1fr}.withdrawal-filter{grid-template-columns:1fr}.withdrawal-event-card{overflow-wrap:anywhere}}
/* 62차: 추가 개별 보강 학생·과목 검색 */
.individual-makeup-dialog{width:min(620px,calc(100vw - 32px));max-height:calc(100vh - 32px);overflow:auto}
.individual-student-picker{display:grid;gap:10px;margin:14px 0}
.individual-student-picker label,.individual-student-picker input{width:100%;min-width:0}
.individual-search-results{display:grid;gap:6px;max-height:260px;overflow:auto;border:1px solid var(--line);border-radius:12px;padding:6px}
.individual-search-results>button{display:grid;gap:3px;width:100%;padding:10px 12px;text-align:left;border:1px solid var(--line);border-radius:10px;background:transparent;color:var(--ink)}
.individual-search-results>button:hover,.individual-search-results>button:focus-visible{border-color:var(--accent);color:var(--accent)}
.individual-search-results span{display:block;font-size:.86rem;color:var(--muted)}
.individual-selected{padding:11px 12px;border-left:3px solid var(--accent);font-weight:700}
.individual-time-grid{grid-template-columns:1.4fr 1fr 1fr}
@media(max-width:600px){.individual-makeup-dialog{width:calc(100vw - 20px);padding:16px}.individual-time-grid{grid-template-columns:1fr 1fr}.individual-time-grid label:first-child{grid-column:1/-1}.individual-search-results{max-height:220px}}
.makeup-results-header{display:block}
.makeup-results-header>.makeup-results-heading{display:grid;gap:8px;width:100%}
.makeup-results-title{display:flex;align-items:center;gap:9px;min-width:0;white-space:nowrap}
.makeup-results-title h2{margin:0;white-space:nowrap}
.makeup-results-title .count{flex:0 0 auto}
.makeup-results-heading>.device-help{margin:0;display:block}
.makeup-results-action{display:flex;align-items:center}
.individual-makeup-apply{min-height:44px;padding:9px 15px;border:2px solid #a65335;border-radius:10px;background:transparent;color:#8d452d;font-weight:800;white-space:nowrap;cursor:pointer}
.makeup-individual-top{display:flex;width:100%;margin:0 0 14px}.makeup-individual-top .individual-makeup-apply{order:-1}#makeupPendingSection,#makeupResultsSection,#makeupPendingList,#makeupResultsList{box-sizing:border-box;min-width:0;max-width:100%}.makeup-list-row>*{max-width:100%;overflow-wrap:anywhere}.makeup-row-actions details{max-width:100%}.makeup-row-actions details p{white-space:normal}
.individual-makeup-apply:hover,.individual-makeup-apply:focus-visible{border-color:#7d321f;color:#7d321f}
@media(max-width:600px){.makeup-results-title{gap:7px}.makeup-results-title .section-index{flex:0 0 auto}.makeup-results-title h2{font-size:1.15rem}.makeup-results-action,.makeup-individual-top,.individual-makeup-apply{width:100%}.individual-makeup-apply{display:block}.makeup-row-actions details{grid-column:1/-1;width:100%}}

/* Bundle: compact class progress and week-specific feedback rest. */
.weekly-progress-table{width:100%;min-width:0}.weekly-progress-table-head,.weekly-progress-table-row{display:grid;grid-template-columns:minmax(0,1fr) 100px 100px;gap:10px;align-items:start;padding:12px 8px;border-bottom:1px solid #ddd}.weekly-progress-table-head{font-weight:700;font-size:13px}.weekly-progress-table-row>div{min-width:0;overflow-wrap:anywhere}.weekly-progress-table-row small{display:block;color:#666;margin-top:4px}.weekly-progress-table-row.is-clear{color:#999;background:#f6f6f6}.weekly-progress-names summary{cursor:pointer;font-weight:750;color:#a35428;list-style:none}.weekly-progress-names ul{padding-left:0;list-style:none;font-size:13px;line-height:1.8}.weekly-progress-names:not([open]) ul{display:none}.feedback-rest-actions{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.feedback-rest-options{display:grid;gap:8px;max-height:400px;overflow:auto}.feedback-rest-options label{display:flex;align-items:flex-start;gap:8px}.feedback-rest-options input{width:auto}.feedback-rest-options span{min-width:0;overflow-wrap:anywhere}.feedback-rest-settings{min-width:0}.parent-makeup-notice{line-height:1.7;white-space:normal;overflow-wrap:anywhere}.parent-day-actions{display:flex;gap:8px;flex-wrap:wrap}.prospective-existing-student{max-width:100%}
@media(max-width:480px){.weekly-progress-table-head,.weekly-progress-table-row{grid-template-columns:minmax(0,1fr) 72px 80px;gap:6px;padding:10px 4px;font-size:13px}.weekly-progress-table-head{font-size:12px}.feedback-rest-actions button{max-width:100%;white-space:normal}}

.pre-admission-records summary{font-weight:700;cursor:pointer}.pre-admission-timeline article{padding:12px 0;border-bottom:1px solid #ddd}.pre-admission-timeline h4{margin:4px 0}.pre-admission-timeline p{white-space:normal;overflow-wrap:anywhere;margin:6px 0}.pre-admission-timeline small{color:#666}#studentAdmissionCandidates select{max-width:100%;width:100%}

/* 2026-10-14 긴급: 보강 메모 전체 너비, 버튼 잘림 방지 */
.makeup-list-row{box-sizing:border-box;width:100%;min-width:0;max-width:100%;display:grid!important;grid-template-columns:minmax(110px,.9fr) minmax(60px,.5fr) minmax(130px,1.25fr) minmax(130px,1.2fr) minmax(75px,.6fr) auto!important;align-items:start;gap:7px 10px}
.makeup-list-row>time,.makeup-list-row>strong,.makeup-list-row>span{grid-column:auto!important;grid-row:auto!important;min-width:0;word-break:keep-all;overflow-wrap:break-word}
.makeup-list-row>.makeup-row-actions{grid-column:auto!important;min-width:0;max-width:100%;display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px;white-space:normal}
.makeup-list-row>.makeup-row-actions>.status-btn,.makeup-list-row>.makeup-row-actions>.text-button{flex:0 0 auto;min-width:0;white-space:nowrap;padding-inline:9px}
.makeup-list-row>.makeup-row-actions>select{min-width:0;width:100%;max-width:230px;flex:1 1 100%}
.makeup-row-note{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:start;padding-top:5px;border-top:1px solid var(--line);min-width:0;white-space:normal}
.makeup-row-note-text{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;line-height:1.45;word-break:normal;overflow-wrap:anywhere;min-width:0;color:var(--muted)}
.makeup-row-note.is-expanded .makeup-row-note-text{display:block;overflow:visible}
.makeup-row-note-toggle{white-space:nowrap;align-self:start;padding:0 2px;min-height:24px}
.makeup-row-note-toggle[hidden]{display:none!important}
@media(max-width:1100px){
 .makeup-list-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:6px 10px}
 .makeup-list-row>time{grid-column:1!important}.makeup-list-row>strong{grid-column:2!important;text-align:right}
 .makeup-list-row>span{grid-column:1/-1!important;text-align:left!important}
 .makeup-list-row>.makeup-row-actions{grid-column:1/-1!important;justify-content:flex-start;margin-top:3px}
 .makeup-list-row>.makeup-row-actions>.status-btn,.makeup-list-row>.makeup-row-actions>.text-button{width:auto;flex:0 1 auto;white-space:normal;word-break:keep-all}
 .makeup-list-row>.makeup-row-actions>select{max-width:100%}
 .makeup-list-row .makeup-absence-entry,.makeup-list-row .makeup-more{flex-basis:100%;width:100%;box-sizing:border-box}
}

/* v136: keep teacher, pending-only and date controls usable on small screens. */
#weeklyEvaluationSection .section-bar{flex-wrap:wrap}
#weeklyEvaluationSection .evaluation-toolbar{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px;max-width:100%;min-width:0}
#weeklyEvaluationSection .evaluation-toolbar select{width:auto;max-width:100%;min-width:8rem}
#weeklyEvaluationSection .evaluation-toolbar label{display:inline-flex;align-items:center;gap:6px;min-height:44px;margin:0;white-space:nowrap}
#weeklyEvaluationSection .evaluation-toolbar input[type=checkbox]{width:18px;height:18px;min-height:0;flex:none;margin:0}
#weeklyEvaluationSection .evaluation-toolbar input[type=date]{width:auto;min-width:0;max-width:100%}
@media(max-width:600px){#weeklyEvaluationSection .evaluation-toolbar{width:100%;justify-content:flex-start}#weeklyEvaluationSection .evaluation-toolbar input[type=date]{flex:1 1 150px}}

/* v137: only primary teachers' eleven task cards and student memo heading. */
#teacherCommandCenter .teacher-compact-stats{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}
#teacherCommandCenter .teacher-compact-stats .teacher-command-stats{display:contents}
#teacherCommandCenter .teacher-compact-stats button{height:50px;min-height:0;padding:3px 7px;gap:0 6px}
#teacherCommandCenter .teacher-compact-stats button span{font-size:12px}
#teacherCommandCenter .teacher-compact-stats button small{font-size:10px}
#staffDashboard.teacher-today-compact .today-head>span:last-child{visibility:hidden}
#staffDashboard.teacher-today-compact .weekly-note-cell{grid-template-columns:minmax(0,1fr)!important}
#staffDashboard.teacher-today-compact .weekly-note-entry{grid-template-columns:minmax(0,1fr) 68px!important}
#staffDashboard.teacher-today-compact .weekly-note-entry input{height:30px!important;min-height:30px!important}
#staffDashboard.teacher-today-compact .weekly-note-entry .weekly-note-add{width:68px!important;min-width:68px!important}
@media(max-width:700px){#teacherCommandCenter .teacher-compact-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* v138: parent feedback signature only. */
#familyFeedbacks .feedback-body>.parent-feedback-signature{margin:1.75em 0 0;text-align:right}

/* 원장 학생 메모 메뉴에만 적용 */
#directorMemoSection{min-width:0}
#directorMemoContent{display:grid;gap:8px}
#directorMemoSection .memo-line-item{padding:0}
#directorMemoSection .director-memo-controls{display:grid;gap:12px;margin-bottom:16px}
#directorMemoSection .director-memo-scopes,#directorMemoSection .director-memo-views{display:flex;gap:8px;flex-wrap:wrap}
#directorMemoSection .director-memo-controls button{border:1px solid var(--line);background:var(--paper);color:var(--ink);border-radius:8px;padding:9px 12px}
#directorMemoSection .director-memo-controls button.active{border-color:#b2512f;color:#b2512f}
#directorMemoSection input,#directorMemoSection select{max-width:100%;min-width:0}
#directorMemoSection .memo-line-toggle{grid-template-columns:90px minmax(70px,1fr) 65px 90px minmax(0,2fr) 125px}
#directorMemoSection .director-memo-class{font-size:12px;overflow-wrap:anywhere}
#directorMemoSection .director-memo-overdue{display:grid;grid-template-columns:90px minmax(0,1fr) 65px 110px 110px;gap:12px;padding:14px 10px;border-bottom:1px solid var(--line);overflow-wrap:anywhere}
#directorMemoPages{display:flex;flex-wrap:nowrap;gap:4px;margin-top:18px;max-width:100%}
#directorMemoPages button{flex:0 1 auto;min-width:0;white-space:nowrap;border:1px solid var(--line);background:transparent;color:var(--ink);border-radius:7px;padding:7px 8px}
#directorMemoPages button[aria-current="page"]{border-color:#b2512f;color:#b2512f;background:transparent}
@media(max-width:700px){#directorMemoSection .memo-line-toggle{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:5px}#directorMemoSection .memo-line-student{grid-column:1;grid-row:1}#directorMemoSection .director-memo-class{grid-column:2;grid-row:1}#directorMemoSection .memo-line-subject{display:block;grid-column:1;grid-row:2}#directorMemoSection .memo-line-author{grid-column:2;grid-row:2}#directorMemoSection .memo-line-toggle time{grid-column:1/-1;grid-row:3}#directorMemoSection .memo-line-preview{grid-column:1/-1;grid-row:4}#directorMemoSection .director-memo-overdue{grid-template-columns:1fr 1fr;gap:6px}}

@media(max-width:700px){#directorMemoPages{gap:2px}#directorMemoPages button{flex:1 1 0;font-size:12px;line-height:1.4;padding:7px 3px}#directorMemoPages button[data-director-group]{flex:0 0 auto}}

/* Director overdue memo uses the existing student-history memo form. */
#studentHistoryPanel.director-overdue-composer > :not(.section-bar):not(#studentProfileDetail){display:none!important}
#directorMemoContent .director-memo-overdue[role="button"]{cursor:pointer}

/* Staff-board list view only. */
#boardViewFilters{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}
#boardViewFilters button{background:transparent;border:1px solid #d8cdc3;color:inherit;padding:8px 12px;border-radius:6px}
#boardViewFilters button[aria-pressed="true"]{border-color:#b2512f;color:#b2512f;background:transparent}

/* Additional individual makeup fields only. */
.individual-makeup-dialog .individual-reason-field,.individual-makeup-dialog .individual-note-field,.staff-makeup-dialog .individual-reason-field{display:flex;flex-direction:column;gap:8px;width:100%;min-width:0;margin:12px 0}
.individual-makeup-dialog .individual-note{display:block;width:100%;box-sizing:border-box;min-width:0}

/* Parent child selection and narrow-screen header only. */
body.parent-app #parentChildButtons{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 8px}
body.parent-app #parentChildButtons button,body.parent-app .parent-day-children button{background:transparent;color:var(--parent-ink);border:1px solid #c9c2bb;border-radius:8px;padding:10px 16px;min-height:44px}
body.parent-app #parentChildButtons button[aria-pressed="true"],body.parent-app .parent-day-children button.active{background:transparent!important;border-color:#b2512f!important;color:#b2512f!important}
body.parent-app #parentChildMessage:empty{display:none}
@media(max-width:600px){body.parent-app .topbar{flex-wrap:wrap}body.parent-app .header-actions{flex-wrap:wrap;min-width:0;max-width:100%;justify-content:flex-end}body.parent-app #parentHeaderName{white-space:normal;overflow-wrap:anywhere;flex-basis:100%;order:9;text-align:right;max-width:100%}body.parent-app .brand{flex-shrink:0}}

body.parent-app:has(#familyDashboard:not(.hidden)) #notificationSection{display:block!important}
body.parent-app .notification:not(.unread-card) .notification-dot{visibility:hidden}

body.parent-app #notificationSection #notifications{height:auto!important;max-height:none!important;overflow:visible!important}

body.parent-app #familyDashboard[aria-busy="true"] :is(#familyOverview,#parentTodayMakeups,#calendarEvents,#calendarSummary,#familyFeedbacks,#parentConsultations,#absenceForm,#makeupForm){visibility:hidden;pointer-events:none}

/* Direct completion dialog: keep date and time selection on separate rows. */
#makeupDirectCompleteDialog>form>label{display:grid;gap:6px;margin:12px 0}
#makeupDirectCompleteDialog .direct-date,#makeupDirectCompleteDialog .direct-slot{width:100%;min-width:0;box-sizing:border-box}

/* Staff history: completed makeup stays directly below its absence. */
#studentHistoryList .history-linked-makeups{margin:7px 0 0 12px}
#studentHistoryList .history-linked-makeup{font-size:13px;line-height:1.6;overflow-wrap:anywhere;margin:3px 0;color:#555}
