/* ============================================================
   NOTEBOOK — editable sheet + custom context menu
   (chat/split/ask-buttons removed — see tag lab-v1-chat-and-ask)
   ============================================================ */

/* ---- Editable sheet ---- */
article.sheet[contenteditable="true"]:focus {
  outline: none;
}
article.sheet[contenteditable="true"] {
  caret-color: #1a73e8;
}
article.sheet ::selection {
  background: rgba(26, 115, 232, 0.18);
}

/* ---- Custom context menu ---- */
.ctx-menu {
  position: fixed;
  z-index: 100;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 10px;
  box-shadow:
    0 6px 20px rgba(60, 64, 67, 0.18),
    0 2px 6px rgba(60, 64, 67, 0.10);
  padding: 4px;
  min-width: 180px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  user-select: none;
  animation: ctxFade 0.12s ease-out;
}
@keyframes ctxFade {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.ctx-menu[hidden] { display: none; }
.ctx-menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: transparent;
  border: none;
  padding: 8px 12px;
  font-family: inherit;
  font-size: 13px;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  border-radius: 6px;
  transition: background 0.1s;
}
.ctx-menu button:hover {
  background: #f1f3f4;
}
.ctx-menu button svg {
  width: 14px;
  height: 14px;
  color: var(--ink-soft);
  flex-shrink: 0;
}
