.an-note {
  background: rgba(0,123,255,0.15) !important;border: 2px solid rgba(0,123,255,.6);
  border-radius: 50%;
  position: absolute;
  min-width: 20px;
  min-height: 20px;
  box-sizing: border-box;
  overflow: visible;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  z-index: 5000;
}


/* Added in 1.5.3-stable: visual save states */
.an-note.an-save-error { border-color:#d9534f !important; outline:none !important; }
.an-note.an-saved-once { border-color:#5cb85c !important; outline:none !important; }


/* 1.5.4-signal2: temporary thicker outline after Save */
.an-note.an-border-thick {
  border-width:4px !important;
  transition: border-width .4s ease;
}


/* 1.5.4-signal3: Save status badges */
.an-save-status {
  position:absolute;
  top:-22px;
  left:0;
  background:#222;
  color:#fff;
  font-size:11px;
  line-height:1.2;
  padding:2px 6px;
  border-radius: 50%;
  box-shadow:0 2px 4px rgba(0,0,0,.25);
  pointer-events:none;
  opacity:0;
  transform:translateY(-4px);
  transition:opacity .25s ease, transform .25s ease;
  z-index:5025;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;
}
/* modified in signal4 */
.an-save-status.show { opacity:1; transform:translateY(0); }
.an-save-status.saving { background:#1976d2; }
.an-save-status.ok { background:#2e7d32; }
.an-save-status.err { background:#c62828; }


/* 1.5.4-signal4: refined badge position inside note */
.an-save-status {
  top:4px;
  right:4px;
  left:auto;
  transform:none;
  background: rgba(0,123,255,0.15) !important;border:1px solid rgba(255,255,255,.15);
}


/* Enable native text selection inside note labels */
.an-comment-display{user-select:text;-webkit-user-select:text;-ms-user-select:text;}


/* Ensure comment editor UI sits above the note circle while editing */
.an-comment-bubble,
.an-comment-popup {
  z-index: 10000 !important;
}

/* v1.8.25: allow hiding notes instantly without a page reload */
.an-notes-hidden .an-note,
.an-notes-hidden .an-comment-bubble,
.an-notes-hidden .an-comment-popup,
.an-notes-hidden .an-comment-display {
  display: none !important;
}
