.annotation-dock{--ink:#173f35;position:fixed;right:clamp(10px,2vw,24px);bottom:clamp(12px,2vw,24px);z-index:90;font:600 14px/1.2 system-ui,sans-serif;color:#173f35;pointer-events:none}.annotation-dock *{box-sizing:border-box}.annotation-launcher,.annotation-panel{pointer-events:auto;box-shadow:0 14px 40px rgba(20,42,36,.2)}.annotation-launcher{display:flex;align-items:center;gap:9px;margin-left:auto;border:1px solid rgba(23,63,53,.18);border-radius:999px;padding:11px 15px;background:#fffdf7;color:var(--ink);font:inherit;cursor:pointer}.annotation-launcher svg,.annotation-tool svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}.annotation-panel{display:none;width:min(350px,calc(100vw - 20px));margin-bottom:10px;border:1px solid rgba(23,63,53,.15);border-radius:18px;background:rgba(255,253,247,.97);backdrop-filter:blur(14px);overflow:hidden}.annotation-dock.is-open .annotation-panel{display:block;animation:annotation-in .18s ease-out}.annotation-head{display:flex;align-items:center;justify-content:space-between;padding:13px 14px;border-bottom:1px solid rgba(23,63,53,.12)}.annotation-head strong{font-size:14px}.annotation-close{border:0;background:transparent;color:inherit;font-size:22px;line-height:1;cursor:pointer}.annotation-tools{display:grid;grid-template-columns:repeat(5,1fr);gap:7px;padding:11px}.annotation-tool{display:flex;align-items:center;justify-content:center;gap:6px;min-height:42px;border:1px solid rgba(23,63,53,.14);border-radius:11px;background:#fff;color:var(--ink);font:inherit;cursor:pointer}.annotation-tool[aria-pressed=true]{background:#173f35;color:#fff;border-color:#173f35}.annotation-options{display:flex;align-items:center;gap:10px;padding:0 12px 11px}.annotation-options label{display:flex;align-items:center;gap:6px;font-size:12px}.annotation-options input[type=color]{width:31px;height:31px;padding:2px;border:1px solid #ccd6d1;border-radius:8px;background:#fff}.annotation-options input[type=range]{width:92px;accent-color:#173f35}.annotation-note-wrap{padding:0 11px 11px}.annotation-note{display:block;width:100%;min-height:94px;resize:vertical;border:1px solid #ccd6d1;border-radius:11px;padding:10px;background:#fffdf9;color:#183b33;font:500 14px/1.45 system-ui,sans-serif}.annotation-note:focus,.annotation-tool:focus-visible,.annotation-launcher:focus-visible,.annotation-action:focus-visible{outline:3px solid #f2b544;outline-offset:2px}.annotation-actions{display:flex;gap:8px;padding:11px;border-top:1px solid rgba(23,63,53,.12)}.annotation-action{flex:1;border:0;border-radius:10px;padding:10px;font:700 13px system-ui,sans-serif;cursor:pointer}.annotation-save{background:#173f35;color:#fff}.annotation-delete{background:#f5e7e1;color:#8b2e23}.annotation-hint{margin:0;padding:0 12px 11px;color:#60726c;font:500 11px/1.35 system-ui,sans-serif}.annotation-canvas{position:fixed;inset:0;z-index:80;touch-action:none;pointer-events:none}.annotation-canvas.is-active{pointer-events:auto;cursor:crosshair}.annotation-canvas.is-erasing{cursor:cell}.annotation-toast{position:fixed;left:50%;bottom:26px;z-index:100;transform:translate(-50%,20px);padding:10px 14px;border-radius:999px;background:#173f35;color:#fff;font:600 13px system-ui,sans-serif;opacity:0;pointer-events:none;transition:.2s}.annotation-toast.is-visible{opacity:1;transform:translate(-50%,0)}@keyframes annotation-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}@media(max-width:640px){.annotation-launcher span{display:none}.annotation-launcher{padding:12px}.annotation-panel{max-height:70vh;overflow:auto}.annotation-tools{grid-template-columns:repeat(3,1fr)}}@media(prefers-reduced-motion:reduce){.annotation-dock.is-open .annotation-panel{animation:none}.annotation-toast{transition:none}}@media print{.annotation-dock,.annotation-canvas,.annotation-toast{display:none!important}}
.annotation-dock{--projection-toolbar-clearance:5rem;bottom:calc(clamp(12px,2vw,24px) + var(--projection-toolbar-clearance))}
body .annotation-dock{bottom:calc(clamp(12px,2vw,24px) + 5rem)}

/* Refined lesson toolkit: compact, calm, and readable from the classroom. */
.annotation-panel {
  width: min(392px, calc(100vw - 24px));
  border-radius: 22px;
  border-color: rgb(22 63 53 / .14);
  box-shadow: 0 22px 58px rgb(20 42 36 / .22);
}
.annotation-head { padding: 1.1rem 1.2rem; }
.annotation-head strong { font-size: .95rem; letter-spacing: -.01em; }
.annotation-teacher-note { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: .7rem; padding: .8rem 1.1rem; border-bottom: 1px solid rgb(22 63 53 / .1); background: #f5f9f6; }
.annotation-teacher-note button { min-height: 34px; border: 1px solid #9dbbae; border-radius: 999px; padding: 0 .75rem; background: #fff; color: var(--ink); font: 800 .72rem/1 var(--font-ui, system-ui, sans-serif); cursor: pointer; }
.annotation-teacher-note button[aria-pressed=true] { border-color: var(--ink); background: var(--ink); color: #fff; }.annotation-teacher-note span { color: #6b8178; font: 600 .67rem/1.3 var(--font-ui, system-ui, sans-serif); }
.annotation-close { width: 32px; height: 32px; border-radius: 50%; }
.annotation-close:hover { background: #edf3ef; }
.annotation-tools { grid-template-columns: repeat(5, 1fr); gap: .45rem; padding: 1rem 1.1rem .7rem; }
.annotation-tool {
  flex-direction: column;
  gap: .32rem;
  min-height: 66px;
  padding: .5rem .25rem;
  border-color: #d6e0da;
  border-radius: 14px;
  font: 750 .72rem/1 var(--font-ui, system-ui, sans-serif);
  transition: transform .16s ease, background .16s ease, box-shadow .16s ease;
}
.annotation-tool:hover { transform: translateY(-2px); border-color: #9dbbae; box-shadow: 0 5px 14px rgb(22 63 53 / .1); }
.annotation-tool[aria-pressed=true] { box-shadow: 0 6px 14px rgb(22 63 53 / .2); }
.annotation-options { gap: 1.25rem; padding: .65rem 1.15rem 1rem; }
.annotation-options input[type=color] { width: 38px; height: 38px; border-radius: 11px; }
.annotation-options input[type=range] { width: 100px; }
.annotation-hint { padding: 0 1.15rem 1rem; color: #6b8178; }
.annotation-actions { display: grid; grid-template-columns: 1fr 1.18fr; gap: .65rem; padding: .9rem 1.1rem 1.1rem; }
.annotation-action { min-height: 48px; border-radius: 13px; }
.annotation-launcher { min-height: 48px; box-shadow: 0 12px 30px rgb(20 42 36 / .18); transition: transform .16s ease, box-shadow .16s ease; }
.annotation-launcher:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgb(20 42 36 / .24); }
@media (max-width: 640px) {
  .annotation-tools { grid-template-columns: repeat(5, 1fr); padding-inline: .75rem; gap: .3rem; }
  .annotation-tool { min-height: 58px; border-radius: 11px; font-size: .64rem; }
  .annotation-options, .annotation-actions { padding-inline: .85rem; }
}
