.chat-menu56{box-sizing:border-box;width:min(320px,calc(100vw - 32px));max-height:calc(100dvh - 40px);border:1px solid #d6e0e8;border-radius:16px;padding:18px;background:#fff;color:#17344f;box-shadow:0 12px 44px #112d4340;font:inherit;direction:rtl}
.chat-menu56::backdrop{background:#112d4366}
.chat-menu56 h2{font-size:16px;text-align:center;margin:0 0 14px}
.chat-menu56 [role=menu]{display:flex;flex-direction:column;gap:8px}
.chat-menu56 button{display:block;box-sizing:border-box;width:100%;min-height:44px;margin:0;padding:10px 14px;border:0;border-radius:9px;background:#17344f;color:#fff;font:inherit;font-size:14px;cursor:pointer;writing-mode:horizontal-tb}
.chat-menu56 button.delete-action53{background:#be123c!important;color:#fff!important}
.chat-menu56 button.close-action{background:#657680;margin-top:12px}
.chat-menu56 button:focus-visible{outline:3px solid #6999c1;outline-offset:3px}
[data-chat-message56]{touch-action:pan-y pinch-zoom;-webkit-touch-callout:none}
[data-chat-message56]:focus-visible{outline:2px solid #6999c1;outline-offset:3px}
@media(pointer:coarse){[data-chat-message56]>:is(b,p,small){-webkit-user-select:none;user-select:none}}
/* Let list content use the available width instead of forcing nowrap overflow. */
body[data-age-group] .shell #content :is(.exam-row41,.score-row55,.teacher-class-row,.receipt-head55){overflow:visible!important;max-width:100%!important;box-sizing:border-box!important;white-space:normal!important}
body[data-age-group] .shell #content .exam-row41{flex-wrap:wrap!important;gap:5px!important}
body[data-age-group] .shell #content .exam-row41>.exam-row-info41{flex:1 1 120px!important;min-width:0!important;max-width:100%!important}
body[data-age-group] .shell #content .exam-row41>button:not(.exam-row-info41){flex:0 1 auto!important;min-width:0!important;max-width:100%!important;padding:6px 7px!important;white-space:normal!important;overflow-wrap:anywhere!important}
body[data-age-group] .shell #content .exam-row-info41 :is(b,small){display:block!important;max-width:100%!important;min-width:0!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;overflow-wrap:anywhere!important}
body[data-age-group] .shell #content .score-row55{flex-wrap:wrap!important;gap:5px 10px!important}
body[data-age-group] .shell #content .score-row55>*{flex:0 1 auto!important;min-width:0!important;max-width:100%!important;white-space:normal!important;overflow-wrap:anywhere!important;box-sizing:border-box!important}
body[data-age-group] .shell #content .score-row55>b{flex:1 1 100px!important}
body[data-age-group] .shell #content .integrity-summary55{min-width:0!important;max-width:100%!important;white-space:normal!important}
body[data-age-group] .shell #content .integrity-summary55[open]{flex:1 1 100%!important;width:100%!important;min-width:0!important}
body[data-age-group] .shell #content .integrity-summary55 :is(summary,p,li){white-space:normal!important;overflow-wrap:anywhere!important;max-width:100%!important}
body[data-age-group] .shell #content .teacher-class-row{gap:6px!important;min-width:0!important}
body[data-age-group] .shell #content .teacher-class-row>*{flex:1 1 0!important;min-width:0!important;white-space:normal!important;overflow-wrap:anywhere!important}
body[data-age-group] .shell #content .receipt-head55{flex-wrap:wrap!important;gap:5px 10px!important;min-width:0!important}
body[data-age-group] .shell #content .receipt-head55>*{flex:0 1 auto!important;min-width:0!important;max-width:100%!important;white-space:normal!important;overflow-wrap:anywhere!important}
body[data-age-group] .shell #content .receipt-head55>h3{flex:1 1 130px!important}
body[data-age-group] .shell #content :is(.table-scroll,.table-wrapper,.table-responsive):not(.import48 .table-scroll){min-width:0!important;max-width:100%!important}
body[data-age-group] .shell #content :is(.admin-table,.entity-list52):not(.import48 table){table-layout:fixed!important;width:100%!important;min-width:0!important;max-width:100%!important}
body[data-age-group] .shell #content :is(.admin-table,.entity-list52):not(.import48 table) :is(th,td){min-width:0!important;width:auto!important;max-width:100%!important;white-space:normal!important;overflow-wrap:anywhere!important;word-break:normal!important;padding:7px 4px!important;box-sizing:border-box!important}
body[data-age-group] .shell #content .entity-list52 .name-button44{display:block!important;width:100%!important;min-width:0!important;max-width:100%!important;white-space:normal!important;overflow-wrap:anywhere!important;text-overflow:clip!important;padding:6px 4px!important}
body[data-age-group] .shell #content :is(.admin-table,.entity-list52):not(.import48 table) :is(a,button,b,span){min-width:0!important;max-width:100%!important;white-space:normal!important;overflow-wrap:anywhere!important;box-sizing:border-box!important}
body[data-age-group] .shell #content .library-item46>b{white-space:normal!important;overflow:visible!important;text-overflow:clip!important;overflow-wrap:anywhere!important}
body[data-age-group] .shell #content .library-file-action46{flex:0 0 64px!important;min-width:0!important}
body[data-age-group] .shell #content .grade-students50>button{white-space:normal!important;overflow-wrap:anywhere!important;min-width:0!important}
@media(max-width:380px){
 body[data-age-group] .shell #content :is(.admin-table,.entity-list52):not(.import48 table) :is(td,th){font-size:11px!important;padding-inline:3px!important}
 body[data-age-group] .shell #content .entity-list52 :is(a,button){font-size:11px!important}
 body[data-age-group] .shell #content .teacher-student-actions{gap:3px!important}
 body[data-age-group] .shell #content .teacher-student-actions>:is(a.btn,button){flex-basis:42px!important;width:42px!important;font-size:10px!important}
 body[data-age-group] .shell #content .teacher-student-head{min-width:0!important}
}
/* Keep action words intact; give the exam description its own line on phones. */
body[data-age-group] .shell #content .exam-row41>button:not(.exam-row-info41){overflow-wrap:normal!important;word-break:normal!important;white-space:normal!important;min-width:58px!important}
@media(max-width:600px){
 body[data-age-group] .shell #content .exam-row41>.exam-row-info41{flex:1 1 100%!important;width:100%!important}
 body[data-age-group] .shell #content .exam-row41>button:not(.exam-row-info41){flex:1 1 0!important;width:auto!important;min-width:0!important;padding:7px 4px!important}
 body[data-age-group] .shell #content .exam-row-info41 b{font-size:13px!important}
 body[data-age-group] .shell #content .exam-row-info41 small{font-size:11px!important}
}
