/* Compact on-script teacher comments:
   criterion identity is a short header, with full-width text beneath. */
.onpage-stamp{border-radius:5px!important;box-shadow:0 1px 4px #112c4424}
.onpage-note-body{right:0;left:0;max-width:none;width:100%;overflow:visible}
.onpage-note-line{letter-spacing:normal;white-space:pre;box-sizing:border-box}
.onpage-note-header{max-width:calc(100% - 45px);overflow:hidden;text-overflow:ellipsis}
.onpage-circle{border-width:.75px}
.onpage-stamp .note-resize-handle{
  width:16px;min-width:16px;height:16px;
  border-radius:5px 0 3px 0;
  opacity:0;transition:opacity .12s ease,background .12s ease;
  background:rgba(235,244,249,.96);
}
.onpage-stamp:hover .note-resize-handle,
.onpage-stamp.active .note-resize-handle,
.onpage-stamp:focus-within .note-resize-handle{opacity:1}
.onpage-stamp .note-resize-handle::after{right:3px;bottom:3px;width:7px;height:7px}
.stamp-layer .stamp-placement-preview{border-radius:5px}
.stamp-placement-preview .preview-body{width:100%;white-space:nowrap;overflow:visible}
.stamp-placement-preview .preview-header{max-width:calc(100% - 45px);white-space:nowrap}
.note-quick-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin:6px 0 11px}
.note-quick-actions:has(> :only-child){grid-template-columns:1fr}
.note-quick-actions .btn{font-size:11px;min-height:38px;padding:8px;white-space:normal;line-height:1.3}
.note-quick-actions #compactStamp,.note-quick-actions #compactDraft{border:1px solid #9ec6d6;background:#ecf7fb;color:#265f7e}
.note-quick-actions #compactStamp:hover,.note-quick-actions #compactDraft:hover{background:#dbeef7}
.note-quick-actions #findClearSpace{border:1px solid #c0dcd2;background:#f2faf7;color:#376d5e}
.note-quick-actions #findClearSpace:hover{background:#e3f3ed}
.annotation-notice.source-warning{color:#79591e;background:#fff8e7;border-color:#e7d5a1}
.placement-assist.warning{color:#875b1d;background:#fff3d7;border-color:#ead1a1}
@media(max-width:650px){
  .onpage-stamp .note-resize-handle{width:20px;min-width:20px;height:20px}
  .note-quick-actions{grid-template-columns:1fr 1fr}
  .note-quick-actions .btn{font-size:11.5px;min-height:40px}
}
@media(prefers-reduced-motion:reduce){
  .onpage-stamp .note-resize-handle{transition:none}
}
