/* CT2 工具专用右键菜单（两模式共用，挂 body） */
.ct2-menu {
  position: fixed; z-index: 1000; min-width: 190px; max-width: 380px;
  max-height: calc(100vh - 8px); overflow-y: auto;
  padding: 4px; background: var(--panel); color: var(--text);
  border: 1px solid var(--line-strong); border-radius: 8px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, .28);
  font: 12.5px/1.4 "Segoe UI", "Microsoft YaHei", system-ui, sans-serif;
  user-select: none;
}
.ct2-menuItem {
  display: flex; align-items: center; gap: 6px; padding: 5px 9px;
  border-radius: 5px; cursor: pointer; white-space: nowrap;
}
.ct2-menuItem:hover, .ct2-menuItem.active { background: var(--accent-weak); }
.ct2-menuItem.disabled { color: var(--muted); cursor: default; pointer-events: none; }
.ct2-menuItem.header {
  color: var(--muted); font-size: 10.5px; font-weight: 600;
  padding: 3px 9px 2px; cursor: default; pointer-events: none;
}
.ct2-menuItem.danger .ct2-menuLabel { color: var(--danger); }
.ct2-menuLabel { flex: 1; overflow: hidden; text-overflow: ellipsis; }
.ct2-menuShortcut {
  color: var(--muted); font: 10.5px "Cascadia Mono", "Consolas", monospace;
  margin-left: auto; padding-left: 16px;
}
.ct2-menuCheck { width: 13px; color: var(--accent); font-size: 11px; text-align: center; }
.ct2-menuSep { height: 1px; background: var(--line); margin: 4px 6px; }

.ct2-toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 1200;
  transform: translateX(-50%) translateY(8px);
  background: var(--text); color: var(--panel); padding: 8px 14px; border-radius: 8px;
  font: 12px "Segoe UI", "Microsoft YaHei", system-ui, sans-serif;
  opacity: 0; transition: opacity .15s, transform .15s; pointer-events: none;
  max-width: 80vw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ct2-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
