.teacher-translation { position: fixed; z-index: 250; width: min(310px, calc(100vw - 16px)); padding: 16px 18px; background: #fff; border: 1px solid #d4cbed; border-radius: 16px; box-shadow: 0 10px 36px #30284529; color: #303445; font: 14px/1.5 system-ui, sans-serif; overflow-wrap: anywhere; max-height: calc(100vh - 24px); overflow: auto; }
.teacher-translation-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #766b90; margin-bottom: 6px; }
.teacher-translation-header button { border: 0; background: transparent; color: inherit; cursor: pointer; font-size: 22px; line-height: 1; padding: 2px 5px; }
.teacher-translation strong { font-size: 17px; }
.teacher-translation p { margin: 6px 0; }
.teacher-translation-source { display: block; color: #827b8b; font-size: 11px; }
