.fi-teacher-result-comment{display:inline-flex;align-items:center;margin:2px 0 2px 6px;padding:2px 7px;border:1px solid #ccdced;border-radius:5px;background:#edf4fc;color:#32628e;font:500 11px/1.4 system-ui,-apple-system,"Segoe UI",sans-serif;cursor:pointer;vertical-align:middle;white-space:nowrap;}
.fi-teacher-result-comment:hover{background:#e0edfc;border-color:#9fbddd;}
.fi-teacher-result-comment:focus-visible,.fi-teacher-comment-close:focus-visible{outline:2px solid #258de0;outline-offset:2px;}
.fi-teacher-comment-dialog{box-sizing:border-box;width:420px;max-width:calc(100vw - 28px);max-height:75vh;padding:18px;border:1px solid #d7e3ee;border-radius:12px;background:#fff;color:#243c51;box-shadow:0 16px 55px #16364d33;font:400 13px/1.5 system-ui,-apple-system,"Segoe UI",sans-serif;overflow:auto;}
.fi-teacher-comment-dialog::backdrop{background:#19324766;}
.fi-teacher-comment-dialog h2{margin:0 0 5px;font:600 16px/1.3 system-ui,-apple-system,"Segoe UI",sans-serif;}
.fi-teacher-comment-context{margin:0 0 12px;color:#718297;font-size:11px;overflow-wrap:anywhere;}
.fi-teacher-comment-body{white-space:pre-wrap;overflow-wrap:anywhere;}
.fi-teacher-comment-close{display:block;margin:16px 0 0 auto;padding:6px 14px;border:1px solid #cbdbea;border-radius:6px;background:#f0f6fc;color:#32628e;font:500 12px/1.4 system-ui,-apple-system,"Segoe UI",sans-serif;cursor:pointer;}

/* Align comment actions consistently at the right edge of the result cell. */
td > .fi-teacher-result-comment{float:right;margin-left:10px;margin-right:0;}
