html, body { position: relative; }

#clarteno-notes-wrapper {
  position: absolute !important;
  left: 0; top: 0;
  width: 0; height: 0;
  margin: 0; padding: 0;
  pointer-events: none;
  z-index: 9999;
}

.clarteno-sticky-note {
  position: absolute !important;
  width: 220px;
  padding: 14px 10px;
  border-radius: 6px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.22);
  pointer-events: auto;
  user-select: none;
  z-index: 9999;
  background: #ffeb3b;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.4;
  max-height: 230px;
  overflow-y: auto;
  overflow-x: hidden;
}

.clarteno-draggable {
  cursor: grab;
}

.clarteno-draggable:active {
  cursor: grabbing;
}

/* Toolbar (top bar with delete button) */
.clarteno-toolbar {
  display: flex;
  justify-content: flex-end;
  padding: 0;
  min-height: 20px;
}

.clarteno-delete {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 20px;
  opacity: 0.4;
  padding: 0 12px;
  color: inherit;
  line-height: 1;
  transition: opacity 0.15s;
}

.clarteno-sticky-note:hover .clarteno-delete {
  opacity: 0.8;
}

/* Content */
.clarteno-content {
  font-size: 13px;
  font-weight: 700;
  padding: 2px 10px 10px;
  outline: none;
  min-height: 30px;
  word-break: break-word;
  cursor: text;
}

.clarteno-content:empty:before {
  content: attr(data-placeholder);
  opacity: 0.35;
  font-weight: 400;
  pointer-events: none;
}

[contenteditable]:focus {
  outline: none;
  user-select: text;
  cursor: text;
}

.clarteno-visibility {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 15px;
  opacity: 0.4;
  padding: 0 2px;
  color: inherit;
  line-height: 1;
  transition: opacity 0.15s;
}

.clarteno-sticky-note:hover .clarteno-visibility {
  opacity: 0.8;
}

.clarteno-popover {
  display: none;
  position: fixed;
  min-width: 180px;
  background: #fff;
  color: #333;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  padding: 8px 0;
  z-index: 10000;
}

.clarteno-popover--open {
  display: block;
}

.clarteno-popover-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  cursor: pointer;
  font-size: 12px;
  user-select: none;
}

.clarteno-popover-row:hover {
  background: #f5f5f5;
}

.clarteno-popover-row input {
  margin: 0;
  cursor: pointer;
}

.clarteno-popover-empty {
  padding: 6px 12px;
  font-size: 12px;
  opacity: 0.5;
}

/* Hide under 1280px */
@media (max-width: 1279px) {
  #clarteno-notes-wrapper { display: none !important; }
}
