/* Shared teacher feedback; no permission or page-specific behavior. */
.teacher-feedback-dialog,.teaching-dialog {
  box-sizing:border-box;width:min(540px,calc(100% - 32px));max-height:calc(100dvh - 32px);overflow:auto;
  padding:26px;border:1px solid #ccdce5;border-top:5px solid #b77716;border-radius:14px;
  background:#fff;color:#14293a;box-shadow:0 18px 60px #14293a26;
  font:16px/1.55 "DM Sans","Noto Sans Tamil",system-ui,sans-serif;overflow-wrap:anywhere;
}
.teacher-feedback-dialog::backdrop,.teaching-dialog::backdrop {background:#14293a80;}
.teacher-feedback-dialog[data-tone=danger] {border-top-color:#a22b2b;}
.teacher-feedback-dialog h2,.teaching-dialog h2 {margin:0 0 12px;font-family:"Source Serif 4","Noto Sans Tamil",Georgia,serif;font-size:23px;line-height:1.25;font-weight:650;}
.teacher-feedback-dialog p {margin:0 0 24px;white-space:pre-line;}
.teacher-feedback-actions,.teaching-dialog .teacher-actions {display:flex;justify-content:flex-end;flex-wrap:wrap;gap:10px;}
.teacher-feedback-dialog button,.teaching-dialog button {box-sizing:border-box;min-height:44px;padding:10px 16px;border:1px solid #a9c6d8;border-radius:8px;background:#fff;color:#173f54;font:inherit;font-weight:600;cursor:pointer;}
.teacher-feedback-dialog .teacher-feedback-accept {background:#173f54;color:#fff;border-color:#173f54;}
.teacher-feedback-dialog[data-tone=danger] .teacher-feedback-accept {background:#942323;border-color:#942323;}
.teacher-feedback-dialog :focus-visible,.teacher-feedback-notice :focus-visible,.teaching-dialog :focus-visible {outline:3px solid #935021;outline-offset:3px;}
.teacher-feedback-notice {box-sizing:border-box;display:flex;align-items:flex-start;gap:16px;padding:16px 18px;border:1px solid #b6cfdd;border-left:5px solid #245b83;border-radius:10px;background:#f0f7fc;color:#14293a;font:15px/1.5 "DM Sans","Noto Sans Tamil",system-ui,sans-serif;overflow-wrap:anywhere;}
.teacher-feedback-notice[data-tone=error] {background:#fff5f3;border-color:#dfb2aa;border-left-color:#a22b2b;}
.teacher-feedback-notice[data-tone=success] {background:#eff8f0;border-color:#b4d2ba;border-left-color:#317047;}
.teacher-feedback-notice p {margin:0;white-space:pre-line;}
.teacher-feedback-notice strong {display:block;margin-bottom:4px;}
.teacher-feedback-floating {position:fixed;z-index:1000;right:20px;bottom:20px;width:min(480px,calc(100% - 40px));box-shadow:0 8px 28px #14293a26;}
.teacher-feedback-dismiss {flex:none;margin-left:auto;min-width:44px;min-height:44px;border:0;border-radius:6px;color:inherit;background:transparent;font-size:24px;cursor:pointer;}
.teaching-dialog {border-top-color:#245b83;}
.teaching-dialog fieldset {border:1px solid #c8dce8;border-radius:10px;margin:16px 0;}
.teaching-dialog .teaching-choice {display:inline-flex;align-items:center;min-height:44px;gap:8px;margin-right:12px;}
.teaching-dialog input[type=checkbox] {width:20px;height:20px;}
.teaching-dialog input:not([type=checkbox]) {box-sizing:border-box;width:100%;font:inherit;min-height:44px;padding:8px;border:1px solid #a9c6d8;border-radius:8px;}
.teaching-dialog label[for=teaching-name] {display:block;font-weight:600;}
.teaching-dialog [hidden] {display:none;}
@media(max-width:480px) {.teacher-feedback-dialog,.teaching-dialog {padding:20px;}.teacher-feedback-actions {flex-direction:column;}.teacher-feedback-actions button {width:100%;}}
@media print {.teacher-feedback-dialog,.teacher-feedback-notice {display:none!important;}}
