.hk-edit { width: 100%; min-width: 0; max-width: 720px; margin: 0 auto; color: #ece7f6; text-align: left; }
.hk-edit[hidden], .hk-edit [hidden], .hk-edit-fallback-hidden { display: none !important; }
.hk-edit-frame { --edit-height: min(62vh, 530px); position: relative; width: min(100%, calc(var(--edit-height) * var(--edit-ratio, .5625))); aspect-ratio: var(--edit-aspect, 9/16); margin-inline: auto; overflow: hidden; border-radius: 12px; background: #0e0b14; cursor: pointer; }
.hk-edit-frame .hk-edit-video { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-height: none; object-fit: contain; background: #0e0b14; }
.hk-edit-controls { display: flex; align-items: center; min-height: 38px; gap: 8px; }
.hk-edit-play { width: 36px; min-height: 36px; padding: 0; border: 0; border-radius: 7px; background: transparent; color: inherit; cursor: pointer; }
.hk-edit-play:hover { background: #282131; }
.hk-edit-time { flex: none; color: #ccc2d5; font-size: 12px; font-variant-numeric: tabular-nums; }
.hk-edit-seek:not(:focus-visible) { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); }
.hk-edit-seek:focus-visible { width: 100%; accent-color: #b594ec; }
.hk-edit-track { position: relative; display: flex; width: 100%; min-width: 0; height: 44px; margin: 2px 0 8px; }
.hk-edit-clip { position: relative; flex: 1 0 42px; min-width: 0; }
.hk-edit-clip.is-selected { z-index: 1; }
.hk-edit-select { position: absolute; inset: 0; width: 100%; padding: 0; overflow: hidden; border: 1px solid #4e3e60; border-radius: 6px; background: #32263f; cursor: pointer; }
.hk-edit-clip[data-kind="source"] .hk-edit-select { border-color: #4b4257; background: #25202e; }
.hk-edit-frames { position: absolute; inset: 0; display: flex; opacity: .8; }
.hk-edit-frames canvas { flex: 1 1 0; width: 0; height: 100%; object-fit: cover; }
.hk-edit-clip.is-selected .hk-edit-select { outline: 2px solid #d0adfd; outline-offset: -2px; }
.hk-edit-clip.is-selected .hk-edit-frames { opacity: 1; }
.hk-edit-select:focus-visible, .hk-edit-handle:focus-visible, .hk-edit-play:focus-visible { outline: 2px solid #ead6ff; outline-offset: 2px; }
.hk-edit-handle { position: absolute; z-index: 2; top: -4px; bottom: -4px; width: min(27px, 53%); padding: 0; border: 0; background: transparent; cursor: ew-resize; touch-action: none; }
.hk-edit-handle.is-start { left: -3px; }
.hk-edit-handle.is-end { right: -3px; }
.hk-edit-handle::before { content: ''; position: absolute; top: 4px; bottom: 4px; width: 9px; border-radius: 4px; background: #d0adfd; }
.hk-edit-handle.is-start::before { left: 3px; }
.hk-edit-handle.is-end::before { right: 3px; }
.hk-edit-handle::after { content: ''; position: absolute; top: 50%; width: 2px; height: 12px; transform: translateY(-50%); border-radius: 1px; background: #362342; }
.hk-edit-handle.is-start::after { left: 6px; }
.hk-edit-handle.is-end::after { right: 6px; }
.hk-edit-playhead { position: absolute; z-index: 3; top: -3px; bottom: -3px; width: 2px; transform: translateX(-50%); border-radius: 2px; background: #fff; box-shadow: 0 0 4px #1a1123; pointer-events: none; }
.hk-edit-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; }
.hk-edit-actions:empty { display: none; }
.hk-edit-download, .hk-edit-hook-only { min-height: 40px; padding: 7px 13px; border: 1px solid #554168; border-radius: 9px; background: #30253a; color: #f6ecff; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.hk-edit-download:hover { background: #3b2b49; }
.hk-edit-hook-only { padding-inline: 3px; border-color: transparent; background: transparent; color: #c4b5d1; font-weight: 500; }
.hk-edit-download:disabled, .hk-edit-hook-only:disabled { opacity: .55; cursor: wait; }
.hk-edit-save { color: #ddc4ff; font-size: 13px; }
.hk-edit-feedback { margin: 6px 0 0; color: #d8bedf; font-size: 13px; }
@media (max-width: 600px) {
  .hk-edit-frame { --edit-height: 54vh; }
  .hk-edit-track { height: 42px; }
}
