.teacher-special-section{margin:16px 0;padding:16px 0;border-block:1px solid #ccdcd8}
.teacher-special-section header{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.teacher-special-section h2,.teacher-special-dialog h2{font-size:20px;letter-spacing:0;margin:0 0 12px}
.teacher-special-section article{padding:12px 0;border-top:1px solid #dde5e2;overflow-wrap:anywhere}
.teacher-special-section button,.teacher-special-dialog button{min-height:44px;padding:10px 14px;border-radius:6px;white-space:normal}
.teacher-special-dialog{box-sizing:border-box;width:min(520px,calc(100% - 24px));max-height:calc(100dvh - 24px - env(safe-area-inset-bottom,0px));overflow:hidden;border:1px solid #adbfba;border-radius:8px;padding:16px 16px calc(16px + env(safe-area-inset-bottom,0px));color:#183d34;background:#fff}
.teacher-special-dialog[open]{display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:8px}
.teacher-special-dialog header{display:flex;align-items:center;justify-content:space-between;gap:8px}
.teacher-special-dialog [data-special-body]{min-height:0;overflow:auto;overscroll-behavior:contain;overflow-wrap:anywhere}
.teacher-special-dialog footer{position:sticky;bottom:0;border-top:1px solid #ccdcd8;padding:10px 0 0;background:#fff}
.teacher-special-dialog input[type=number]{box-sizing:border-box;width:100%;min-height:44px;font:inherit}
.teacher-special-dialog fieldset{min-width:0;margin-block:12px;border:1px solid #ccdcd8}
.teacher-special-dialog article{padding-block:12px;border-bottom:1px solid #ccdcd8}
.teacher-special-dialog::backdrop{background:rgba(0,0,0,.5)}
.teacher-special-dialog label{display:block;margin:12px 0}
.teacher-special-dialog textarea,.teacher-special-dialog select{box-sizing:border-box;display:block;width:100%;font:inherit;margin-top:6px;padding:10px}
.teacher-special-dialog [data-special-actions]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.teacher-special-dialog [data-special-actions] button{min-width:0;overflow-wrap:anywhere}
.teacher-special-dialog [data-special-message]{color:#964414;overflow-wrap:anywhere;max-height:64px;overflow:auto;margin:8px 0 0}
.teacher-special-dialog [data-special-message]:empty{display:none}
.teacher-special-dialog .special-close{float:right;background:transparent;color:#183d34;border:0;font-size:24px;width:44px;height:44px}
