/* Mouse presentation controls stay outside the page navigation. */
#annotationCanvas{position:fixed;inset:0;width:100vw;height:100vh;z-index:40;pointer-events:none}
.annotation-pen-active #annotationCanvas{pointer-events:auto;cursor:crosshair}
.annotation-toolbar{position:fixed;right:18px;bottom:90px;display:none;align-items:center;gap:8px;z-index:60;padding:0;border:0;background:transparent}
.annotation-toolbar button{min-height:44px;padding:8px 12px;font-size:13px}
.annotation-toolbar button[hidden]{display:none}
.annotation-toolbar svg{width:18px;height:18px;color:#e5252a;flex:none}
.annotation-toolbar button[aria-pressed=true]{background:#fff0f0;color:#9b161b;border-color:#d9363d}
.annotation-active .masthead,.annotation-active #courseDock,.annotation-active .course-context{position:relative;z-index:50}
.annotation-active .course-main .source-area.hover-magnifying .detail-panel{display:none}
.presenter-lens{position:fixed;z-index:35;border:3px solid white;border-radius:50%;box-shadow:0 0 0 1px #16353c66,0 8px 30px #0005;overflow:hidden;pointer-events:none;background:white;box-sizing:content-box}
.presenter-lens img{position:absolute;max-width:none;max-height:none;pointer-events:none;user-select:none}
.presenter-spotlight{position:fixed;z-index:30;pointer-events:none;background:rgba(0,0,0,.46);mask-image:radial-gradient(circle 54px at var(--spot-x) var(--spot-y),transparent 52px,#000 55px);-webkit-mask-image:radial-gradient(circle 54px at var(--spot-x) var(--spot-y),transparent 52px,#000 55px)}
.presenter-lens[hidden],.presenter-spotlight[hidden]{display:none}
@media(any-hover:hover) and (any-pointer:fine){.annotation-toolbar{display:flex}}
@media print{#annotationCanvas,.annotation-toolbar,.presenter-lens,.presenter-spotlight{display:none!important}}

.annotation-colors{display:flex;gap:2px}.annotation-toolbar .annotation-colors button{width:44px;padding:6px;min-width:44px}.annotation-color-swatch{width:18px;height:18px;border-radius:50%;border:1px solid #58656a;display:block}.annotation-color-swatch.red{background:#e5252a}.annotation-color-swatch.yellow{background:#ffd400}.annotation-toolbar .annotation-colors button[aria-pressed=true]{background:#eef3f6;box-shadow:inset 0 0 0 2px #173a49;border-color:#173a49}
.annotation-text-layer{position:fixed;inset:0;z-index:42;pointer-events:none;display:none}.annotation-text-active .annotation-text-layer{pointer-events:auto;cursor:text}.annotation-note{position:absolute;max-width:calc(100vw - 12px);font-family:inherit;font-size:28px;font-weight:600;line-height:1.3;white-space:pre-wrap;overflow-wrap:anywhere;text-shadow:0 1px 2px #000,0 -1px 1px #0008;user-select:none;pointer-events:none;cursor:move;padding:2px 4px}.annotation-note[hidden]{display:none}.annotation-text-active .annotation-note{pointer-events:auto}.annotation-editor{position:absolute;width:min(360px,calc(100vw - 12px));padding:8px;background:#fff;border:2px solid #173a49;border-radius:8px;box-shadow:0 6px 22px #0003;cursor:default}.annotation-editor textarea{display:block;resize:vertical;width:100%;min-height:100px;max-height:50vh;padding:6px;border:1px solid #839199;border-radius:4px;background:#f4f6f7;font-family:inherit;font-size:28px;font-weight:600;line-height:1.3;text-shadow:0 1px 1px #0008}.annotation-editor>span{display:block;font-size:11px;line-height:1.5;color:#344955;margin-top:6px}
@media(any-hover:hover) and (any-pointer:fine){.annotation-text-layer{display:block}}@media print{.annotation-text-layer{display:none!important}}

.annotation-tools{display:flex;align-items:center;flex-wrap:wrap;gap:7px;max-width:calc(100vw - 96px);padding:6px;border:1px solid var(--line);border-radius:14px;background:#fff;box-shadow:0 3px 16px #103a3e24}.annotation-tools[hidden]{display:none}.annotation-toolbar .annotation-menu-toggle{width:44px;height:44px;min-width:44px;padding:10px;border:1px solid var(--line);border-radius:50%;background:#fff;box-shadow:0 3px 16px #103a3e24;flex:none}.annotation-toolbar .annotation-menu-toggle svg{width:20px;height:20px;color:var(--ink)}.annotation-toolbar .annotation-menu-toggle[aria-expanded=true]{border-color:var(--accent);background:var(--soft)}
