/* AnnotationLayer primitive — v77 */

.jny-annl { position: relative; }

.jny-annl .annl-gutter {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
}

.jny-annl .annl-marker {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 6px 10px;
  background: var(--jny-surface-2, #1a2238);
  border: 1px solid var(--jny-border, #2a3148);
  border-radius: 8px;
  color: var(--jny-ink, #e4e4e4);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.jny-annl .annl-marker.is-resolved { opacity: .55; }
.jny-annl .annl-marker:hover { background: var(--jny-surface-3, #222a44); }

.jny-annl .annl-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--jny-accent, #c8a840);
  flex-shrink: 0;
}

.jny-annl .annl-scope {
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--jny-ink-dim, #9ea4b7);
}
.jny-annl .annl-scope-private         { background: rgba(200, 168, 64, .15); color: #d4b860; }
.jny-annl .annl-scope-circle          { background: rgba(74, 144, 226, .15); color: #6fa8e0; }
.jny-annl .annl-scope-public          { background: rgba(76, 175, 80, .15);  color: #7bc27f; }
.jny-annl .annl-scope-provider-signed { background: rgba(208, 95, 95, .15);  color: #e78a8a; }

.jny-annl .annl-preview {
  flex: 1;
  font-size: 13px;
  color: var(--jny-ink-dim, #aab0c0);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.jny-annl .annl-add {
  position: fixed;
  z-index: 40;
  padding: 6px 12px;
  background: var(--jny-accent, #c8a840);
  color: #1a0e05;
  border: none;
  border-radius: 6px;
  font: 13px/1 system-ui, sans-serif;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .3);
}

/* Bottom-sheet drawer per WW audit — single scroll context */
.jny-annl .annl-drawer {
  position: fixed;
  left: 0; right: 0;
  bottom: var(--jny-kbd-h, 0px);
  max-height: 60vh;
  background: var(--jny-surface-1, #141a2a);
  border-top: 1px solid var(--jny-border, #2a3148);
  border-radius: 14px 14px 0 0;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, .4);
  z-index: 50;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.jny-annl .annl-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid var(--jny-border, #2a3148);
}
.jny-annl .annl-drawer-title { font-size: 13px; }
.jny-annl .annl-drawer-close {
  background: none; border: none; color: inherit;
  font-size: 16px; cursor: pointer;
  min-width: 44px; min-height: 44px;
}
.jny-annl .annl-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 14px;
}
.jny-annl .annl-anchor {
  margin: 0 0 10px;
  padding: 8px 10px;
  border-left: 3px solid var(--jny-accent, #c8a840);
  background: rgba(255, 255, 255, 0.04);
  color: var(--jny-ink-dim, #aab0c0);
  font-style: italic;
  font-size: 13px;
}
.jny-annl .annl-note,
.jny-annl .annl-reply {
  padding: 8px 10px;
  background: var(--jny-surface-2, #1a2238);
  border-radius: 8px;
  margin-bottom: 8px;
}
.jny-annl .annl-note p,
.jny-annl .annl-reply p { margin: 4px 0 0; font-size: 14px; line-height: 1.5; }

.jny-annl .annl-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 8px;
}
.jny-annl .annl-actions button {
  background: none;
  border: 1px solid var(--jny-border, #2a3148);
  color: inherit;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  min-height: 32px;
}
.jny-annl .annl-resolved-badge {
  font-size: 11px;
  padding: 4px 10px;
  background: rgba(76, 175, 80, .15);
  color: #7bc27f;
  border-radius: 999px;
}

.jny-annl .annl-drawer-form {
  display: flex;
  gap: 8px;
  padding: 10px 14px;
  border-top: 1px solid var(--jny-border, #2a3148);
}
.jny-annl .annl-drawer-form textarea {
  flex: 1;
  min-height: 40px;
  background: var(--jny-surface-2, #0e1220);
  color: inherit;
  border: 1px solid var(--jny-border, #2a3148);
  border-radius: 6px;
  padding: 8px;
  font: inherit;
  resize: vertical;
}
.jny-annl .annl-drawer-form button {
  background: var(--jny-accent, #c8a840);
  color: #1a0e05;
  border: none;
  padding: 0 14px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  min-height: 40px;
}
