img[data-course-enlarge]{cursor:zoom-in}
img[data-course-enlarge]:hover{outline:2px solid var(--focus);outline-offset:2px}
img[data-course-enlarge]:focus-visible{outline:3px solid var(--focus);outline-offset:3px}
.course-image-open{display:block;width:max-content;margin:5px 0 14px auto;padding:5px 10px;font-size:15px}
#courseImageViewer{width:calc(100vw - 16px);max-width:calc(100vw - 16px);height:calc(100dvh - 16px);max-height:calc(100dvh - 16px);padding:12px;overflow:hidden;display:flex;flex-direction:column;gap:10px}
#courseImageViewer:not([open]){display:none}
.course-image-toolbar{display:flex;align-items:center;justify-content:space-between;gap:15px;flex-shrink:0}
#courseImageTitle{margin:0;font-size:21px;line-height:28px}
.course-image-tools{display:flex;align-items:center;gap:7px;flex-shrink:0}
.course-image-tools button{min-height:36px;padding:6px 12px}
#courseImageScale{font:15px Consolas,monospace;min-width:55px;text-align:center}
#courseImageClose{float:none;font-size:24px;line-height:22px;margin-left:8px}
#courseImagePane{flex:1;min-height:0;overflow:auto;background:var(--surface-recessed);border:1px solid var(--line);border-radius:5px;cursor:grab;touch-action:none;overscroll-behavior:contain}
#courseImagePane.dragging{cursor:grabbing}
.course-image-surface{width:max-content;min-width:100%;min-height:100%;display:grid;place-items:center}
#courseImageLarge{display:block;max-width:none;max-height:none;object-fit:contain;user-select:none;-webkit-user-drag:none;background:#fff}
#courseImageHelp{font-size:14px;line-height:20px;margin:0;color:var(--muted);flex-shrink:0}
@media(max-width:850px){#courseImageTitle{font-size:17px}.course-image-tools{gap:4px}.course-image-tools button{padding-inline:8px}}
