/* ── BURGER MENU ── */
.burger-menu {
  position: absolute; top: 26px; right: 0;
  background: var(--surface2);
  border: 1px solid var(--border-hi);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  min-width: 158px; z-index: 500; overflow: visible;
  animation: menuIn 0.12s ease forwards;
}

@keyframes menuIn {
  from { opacity: 0; transform: scale(0.96) translateY(-4px); }
  to   { opacity: 1; transform: scale(1)    translateY(0); }
}

.bm-item {
  padding: 8px 13px; font-size: 13px; cursor: pointer;
  color: var(--text-muted); transition: background 0.1s, color 0.1s;
  display: flex; align-items: center; gap: 9px;
  white-space: nowrap; position: relative;
}
.bm-item:hover { background: var(--surface3); color: var(--text); }
.bm-item.done-active { color: var(--green); }
.bm-item.danger:hover { background: var(--red-soft); color: var(--red); }
.bm-item.disabled { opacity: 0.3; cursor: not-allowed; pointer-events: none; }
.bm-item.has-sub::after {
  content: '';
  margin-left: auto; padding-left: 8px;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 5px solid var(--text-dim);
}
.bm-item.has-sub:hover::after { border-left-color: var(--text-muted); }

.bm-icon { font-size: 11px; width: 14px; text-align: center; flex-shrink: 0; }
.bm-sep { height: 1px; background: var(--border); margin: 3px 0; }

/* ── COLOUR SUBMENU ── */
.colour-submenu {
  position: absolute; top: -4px; left: calc(100% + 4px);
  background: var(--surface2);
  border: 1px solid var(--border-hi);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  padding: 10px; z-index: 501;
  display: none;
  animation: menuIn 0.1s ease forwards;
}
.bm-item.has-sub:hover .colour-submenu { display: block; }

.colour-grid {
  display: grid; grid-template-columns: repeat(8, 20px); gap: 7px;
}
.colour-swatch {
  width: 20px; height: 20px; border-radius: 50%;
  cursor: pointer; border: 2px solid transparent;
  transition: transform 0.12s, border-color 0.12s;
}
.colour-swatch:hover { transform: scale(1.2); }
.colour-swatch.selected { border-color: rgba(255,255,255,0.8); transform: scale(1.1); }
