/* Group 3 (rows 122, 164, 166, 167): the bubble menu, the edit sheet and the held sending look.
   Every colour is a token from style.css; only G4 adds tokens. */

/* Rows 122 and 167: one look for every menu and dialog: the surface, a hairline, radius 14. */
.bubble-menu,
.edit-sheet {
  background: var(--surface);
  color: var(--text);
  border: 0.5px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 8px 28px var(--shadow-lift);
}
.bubble-menu {
  position: fixed;
  z-index: 40;
  min-width: 220px;
  overflow-y: auto;
  padding: 4px 0;
}
.bubble-menu button {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 0 16px;
  text-align: left;
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
}
.bubble-menu button + button { border-top: 0.5px solid var(--line); }
.bubble-menu button[data-action="hide"] { color: var(--danger); }
.bubble-menu button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

/* Row 166: the edit sheet. */
.edit-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: var(--shadow-lift);
}
.edit-sheet {
  width: min(560px, 100%);
  margin: 0 0 env(safe-area-inset-bottom);
  padding: 16px;
  display: grid;
  gap: 12px;
}
.edit-sheet h2 { margin: 0; font-size: 1.0625rem; }
.edit-field {
  width: 100%;
  min-height: 88px;
  max-height: 40vh;
  font: inherit;
  color: inherit;
  background: var(--bg);
  border: 0.5px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  resize: vertical;
}
.edit-said { margin: 0; color: var(--danger); }
.edit-row { display: flex; justify-content: flex-end; gap: 8px; }
.edit-row button { min-height: 44px; padding: 0 16px; border-radius: 10px; font: inherit; }
.edit-save { background: var(--accent); color: var(--accent-text); border: 0; }
.edit-save:disabled { opacity: 0.45; }
.edit-cancel { background: none; color: var(--text); border: 0.5px solid var(--line); }
.edited-mark { font-size: 0.75em; opacity: 0.75; margin-right: 4px; }

/* Row 164: the held sending look on a stored bubble, then an ease into the sent look. */
.bubble.mine.held {
  background: var(--surface);
  color: var(--text);
  outline: 1.5px dashed var(--accent);
  outline-offset: -1.5px;
}
.bubble.mine.easing {
  transition: background-color 200ms ease-out, color 200ms ease-out, outline-color 200ms ease-out;
}
@media (prefers-reduced-motion: reduce) {
  .bubble.mine.easing { transition: none; }
}
