.annotation-header-actions {
  display:flex; align-items:center; flex-wrap:wrap; gap:8px; flex-shrink:0;
}
@media(max-width:1000px) { .annotation-header-actions { flex-shrink:1 } }
.annotation-dock {
  position:fixed; z-index:30; left:0; top:0; width:48px;
  color:var(--nav-ink,#f7f3ed); line-height:1; isolation:isolate;
}
.annotation-bar,.annotation-launch {
  background:var(--nav,#202939); border:1px solid #657488; border-radius:13px;
  box-shadow:0 4px 16px #14233440;
}
.annotation-bar {
  display:flex; flex-direction:column; align-items:center; gap:3px;
  padding:4px; max-height:min(calc(100dvh - 16px),var(--annotation-max-height,100dvh));
}
.annotation-dock button {
  display:grid; place-items:center; flex:none; width:100%; min-width:0; height:33px;
  padding:0; border:1px solid transparent; border-radius:8px; color:inherit;
  background:transparent; cursor:pointer;
}
.annotation-dock svg { display:block; width:20px; height:20px; pointer-events:none }
.annotation-dock button:focus-visible { outline:2px solid #afdbff; outline-offset:-2px }
.annotation-dock button:hover:not(:disabled) { background:#ffffff22 }
.annotation-dock button[aria-pressed="true"] {
  color:#182838; background:#deebf7; border-color:#adc8e0;
}
.annotation-dock button:disabled { cursor:default; opacity:.44 }
.annotation-dock .annotation-launch {
  height:48px; background:var(--nav,#202939); border:1px solid #657488; border-radius:50%;
}
.annotation-dock .annotation-launch:hover { background:#35455b }
.annotation-dock .annotation-grip { height:24px; touch-action:none; cursor:grab; color:#cad5e3; user-select:none }
.annotation-dock[data-moving] .annotation-grip { cursor:grabbing }
.annotation-dock .annotation-collapse { height:28px }
.annotation-controls {
  width:100%; min-height:0; overflow-y:auto; overflow-x:hidden; overscroll-behavior:contain; scrollbar-width:none;
}
.annotation-controls::-webkit-scrollbar { display:none }
.annotation-group { display:grid; gap:2px }
.annotation-group + .annotation-group { border-top:1px solid #ffffff33; margin-top:4px; padding-top:4px }
.annotation-dock .annotation-color { height:25px }
.annotation-color::before {
  content:""; width:13px; height:13px; border-radius:50%; background:var(--swatch); border:1px solid #26384b;
}
.annotation-color[data-color="gold"] { --swatch:#fff200 }
.annotation-color[data-color="pink"] { --swatch:#ee7a9b }
.annotation-color[data-color="blue"] { --swatch:#65b3ec }
.annotation-note { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap }
@media (pointer:coarse) { .annotation-dock .annotation-grip { height:33px } }
.annotation-layer {
  position:absolute; z-index:2; inset:0; width:100%; height:100%; pointer-events:none;
}
.annotation-layer[data-tool="marker"],.annotation-layer[data-tool="pen"],.annotation-layer[data-tool="eraser"] {
  pointer-events:auto; cursor:crosshair; touch-action:none;
}
.annotation-layer:focus { outline:none }
.annotation-layer[data-tool="marker"] { cursor:url("marker-tip.svg?v=2") 5 22,crosshair }
.annotation-layer[data-tool="pen"] { cursor:url("pen-tip.svg") 6 26,crosshair }
.annotation-layer[data-tool="eraser"] {
  cursor:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28'%3E%3Ccircle cx='14' cy='14' r='11.5' fill='none' stroke='white' stroke-width='3'/%3E%3Ccircle cx='14' cy='14' r='11.5' fill='none' stroke='%23243448' stroke-width='1.5'/%3E%3C/svg%3E") 14 14,crosshair;
}
