.cut-edit-panel {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  z-index: 1001;
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.cut-edit-panel[hidden] {
  display: none !important;
}

.cut-edit-thumb {
  width: 160px;
  height: 90px;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.8);
}

.cut-edit-thumb canvas {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.cut-edit-cut-hint {
  position: absolute;
  bottom: 6px;
  z-index: 650;
  transform: translateX(-50%);
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(18, 18, 20, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #8e8e93;
  font-size: 10px;
  line-height: 1.3;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

.cut-edit-cut-hint[hidden] {
  display: none !important;
}

.cut-marker-layer {
  position: absolute;
  inset: 0;
  z-index: 22;
  pointer-events: none;
}

.cut-marker-hit {
  position: absolute;
  top: var(--timeline-ruler-h, 20px);
  bottom: 0;
  width: 16px;
  margin-left: -8px;
  pointer-events: auto;
  cursor: ew-resize;
  touch-action: none;
}

.cut-marker-hit.is-active {
  z-index: 2;
}

.cut-marker-hit.is-hover:not(.is-active) {
  outline: 1px solid rgba(52, 199, 89, 0.55);
  outline-offset: -1px;
  border-radius: 2px;
}

.cut-marker-grip {
  position: absolute;
  left: 50%;
  top: calc(50% + 4px);
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #f5f5f7;
  border: 2px solid #34c759;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

.cut-marker-grip::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  border-left: 2px solid #34c759;
  border-right: 2px solid #34c759;
}

body.shot-refine-active.cut-edit-playhead-hidden #playhead {
  opacity: 0;
  pointer-events: none;
}

body.shot-refine-armed #cutMarkerLayer {
  pointer-events: none;
}

body.shot-refine-armed .cut-marker-hit {
  pointer-events: auto;
}

.workspace-toast {
  position: fixed;
  left: 50%;
  bottom: 72px;
  transform: translateX(-50%) translateY(8px);
  /* Above scene-detect / loading modals (z-index 999999) so reminders stay visible. */
  z-index: 1000001;
  max-width: min(92vw, 420px);
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(28, 28, 30, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f5f5f7;
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.workspace-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
