.jmc-editor .jmt-timeline { position: relative; display: flex; flex-direction: column; box-sizing: border-box; width: 100%; height: 100%; min-width: 0; min-height: 207px; padding: 13px 16px 23px; overflow: visible; border-radius: 8px; background: #202022; color: #c6c6cd; font: 12px/20px "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif; white-space: normal; user-select: none; }
.jmc-editor .jmt-timeline *, .jmc-editor .jmt-timeline *::before, .jmc-editor .jmt-timeline *::after { box-sizing: border-box; }
.jmc-editor .jmt-timeline [hidden] { display: none !important; }
.jmc-editor .jmt-toolbar { display: grid; flex: 0 0 55px; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: start; gap: 12px; min-width: 0; height: 55px; padding: 0 0 13px; cursor: grab; touch-action: none; }
.jmc-editor .jmt-toolbar-left, .jmc-editor .jmt-toolbar-center, .jmc-editor .jmt-toolbar-right { display: flex; align-items: center; gap: 6px; min-width: 0; height: 42px; }
.jmc-editor .jmt-toolbar-center { gap: 10px; }
.jmc-editor .jmt-toolbar-right { justify-content: flex-end; }
.jmc-editor .jmt-icon-button { display: grid; flex: 0 0 42px; place-items: center; width: 42px; height: 42px; min-height: 0; padding: 9px; border: 0; border-radius: 6px; background: transparent; color: #f5f5f5; font-size: 11px; line-height: 16px; }
.jmc-editor .jmt-icon-button svg { display: block; width: 24px; height: 24px; }
.jmc-editor .jmt-icon-button:hover { background: #ffffff0d; color: #e4e4ec; }
.jmc-editor .jmt-icon-button:disabled { opacity: .25; cursor: not-allowed; }
.jmc-editor .jmt-clock { color: #f5f5f5; font-size: 18px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.jmc-editor .jmt-play { color: #f5f5f5; padding: 6px; }
.jmc-editor .jmt-play svg { width: 30px; height: 30px; }
.jmc-editor .jmt-fullscreen { display: flex; flex: 0 0 auto; align-items: center; gap: 8px; width: auto; padding: 9px 0 9px 9px; color: #f5f5f5; font-size: 18px; white-space: nowrap; }
.jmc-editor .jmt-play.is-playing { background: #ffffff0d; }
.jmc-editor .jmt-play.is-playing svg { display: none; }
.jmc-editor .jmt-play.is-playing::after { content: ""; width: 16px; height: 22px; border-right: 5px solid currentColor; border-left: 5px solid currentColor; }
.jmc-editor .jmt-deck { display: flex; flex: 1 1 auto; align-items: stretch; gap: 0; min-width: 0; min-height: 116px; }
.jmc-editor .jmt-track-controls { display: flex; flex: 0 0 62px; flex-direction: column; align-items: flex-start; width: 62px; padding-top: 53px; }
.jmc-editor .jmt-mute.is-active { color: #f2b6a3; background: #d9816312; }
.jmc-editor .jmt-viewport { flex: 1 1 auto; min-width: 0; min-height: 0; max-height: 100%; overflow: auto; border-radius: 5px; scrollbar-width: thin; scrollbar-color: #ffffff21 transparent; }
.jmc-editor .jmt-surface { position: relative; width: 960px; min-height: 116px; }
.jmc-editor .jmt-ruler { position: relative; width: 100%; height: 32px; outline: none; cursor: ew-resize; touch-action: none; }
.jmc-editor .jmt-ruler-mark { position: absolute; top: 0; height: 32px; padding-left: 8px; color: #73737e; font-size: 12px; line-height: 20px; font-variant-numeric: tabular-nums; width: max-content; white-space: nowrap; pointer-events: none; }
.jmc-editor .jmt-ruler-mark::after { content: ""; position: absolute; bottom: 2px; left: 0; width: 1px; height: 4px; background: #ffffff17; }
.jmc-editor .jmt-ruler-mark.is-minor { padding: 0; }
.jmc-editor .jmt-ruler-mark.is-minor::after { height: 3px; opacity: .55; }
.jmc-editor .jmt-ruler-mark:last-child { padding-right: 3px; padding-left: 0; transform: translateX(-100%); }
.jmc-editor .jmt-ruler-mark:last-child::after { right: 0; left: auto; }
.jmc-editor .jmt-track { position: relative; width: 100%; min-width: 0; height: 84px; border: 0; border-radius: 5px; background: #28282b; cursor: crosshair; }
.jmc-editor .jmt-track + .jmt-track { margin-top: 12px; }
.jmc-editor .jmt-track-audio { height: 18px; overflow: hidden; background: #303033; cursor: ew-resize; }
.jmc-editor .jmt-audio-segment { position: absolute; top: 0; bottom: 0; overflow: hidden; pointer-events: none; }
.jmc-editor .jmt-audio-segment.is-muted { opacity: .35; }
.jmc-editor .jmt-audio-segment .jmt-clip-waveform { inset: 0; width: 100%; height: 100%; }
.jmc-editor .jmt-audio-segment .jmt-clip-placeholder { font-size: 9px; line-height: 18px; padding: 0 4px; }
.jmc-editor .jmt-add-media { position: absolute; top: 50%; left: 50%; display: inline-flex; justify-content: center; align-items: center; gap: 6px; min-height: 28px; padding: 4px 10px; transform: translate(-50%, -50%); border: 0; border-radius: 6px; background: transparent; color: #80808b; font-size: 18px; line-height: 24px; white-space: nowrap; }
.jmc-editor .jmt-add-media svg { width: 24px; height: 24px; }
.jmc-editor .jmt-add-media:hover { background: #ffffff06; color: #b1b1bd; }
.jmc-editor .jmt-track-add { position: absolute; z-index: 6; top: 0; display: grid; place-items: center; width: 84px; height: 84px; padding: 27px; border: 1px solid #ffffff12; border-radius: 5px; background: #2b2b30; color: #a2a2af; }
.jmc-editor .jmt-track-add svg { width: 26px; height: 26px; }
.jmc-editor .jmt-track-add:hover { background: #37373e; color: #ededf3; }
.jmc-editor .jmt-playhead { position: absolute; z-index: 7; top: 25px; bottom: 0; left: 0; width: 1px; background: #d6d6dfb3; pointer-events: none; }
.jmc-editor .jmt-playhead::before { content: ""; position: absolute; top: -5px; left: -4px; width: 9px; height: 7px; clip-path: polygon(0 0, 100% 0, 100% 55%, 50% 100%, 0 55%); background: #dedee7; }
.jmc-editor .jmt-clip { position: absolute; z-index: 2; top: 0; bottom: 0; min-width: 3px; overflow: visible; border: 1px solid #7d72a35c; border-radius: 4px; background: #4a3e6652; color: #c7bedb; cursor: grab; touch-action: none; outline: none; }
.jmc-editor .jmt-clip-audio { border-color: #37a9bd70; background: #26474e; color: #36c2dd; }
.jmc-editor .jmt-clip-image { border-color: #657f915c; background: #3e526552; }
.jmc-editor .jmt-clip.is-selected { z-index: 4; border-color: #c8c2da; box-shadow: 0 0 0 1px #c8c2da55; }
.jmc-editor .jmt-clip.is-dragging { z-index: 8; opacity: .85; cursor: grabbing; box-shadow: 0 3px 14px #0004; }
.jmc-editor .jmt-clip.is-drop-target { border-right: 3px solid #c3dbed; }
.jmc-editor .jmt-clip-thumbnail { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border-radius: 3px; opacity: 1; object-fit: cover; pointer-events: none; }
.jmc-editor .jmt-clip-caption { position: absolute; top: 5px; right: 10px; left: 10px; overflow: hidden; color: inherit; font-size: 10px; line-height: 17px; white-space: nowrap; text-overflow: ellipsis; text-shadow: 0 1px 2px #0008; pointer-events: none; }
.jmc-editor .jmt-clip-duration { position: absolute; bottom: 3px; left: 10px; color: #e0dce89c; font-size: 9px; line-height: 15px; font-variant-numeric: tabular-nums; text-shadow: 0 1px 2px #0008; pointer-events: none; }
.jmc-editor .jmt-clip-muted { position: absolute; right: 8px; bottom: 3px; color: #d8afa7; font-size: 9px; line-height: 15px; pointer-events: none; }
.jmc-editor .jmt-trim { position: absolute; z-index: 5; top: 0; bottom: 0; display: none; width: 8px; min-height: 0; padding: 0; border: 0; border-radius: 3px; background: #c8c2da; cursor: ew-resize; touch-action: none; }
.jmc-editor .jmt-trim::after { content: ""; position: absolute; top: calc(50% - 6px); left: 3px; width: 1px; height: 12px; background: #3e354b; }
.jmc-editor .jmt-trim-start { left: -1px; }
.jmc-editor .jmt-trim-end { right: -1px; }
.jmc-editor .jmt-clip.is-selected .jmt-trim, .jmc-editor .jmt-clip:focus-within .jmt-trim { display: block; }
.jmc-editor .jmt-status { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.jmc-editor .jmt-preview { position: absolute; z-index: 20; bottom: calc(100% + 14px); left: 50%; width: 320px; max-width: calc(100vw - 80px); padding: 0; transform: translateX(-50%); overflow: hidden; border: 1px solid #ffffff15; border-radius: 10px; background: #18181bf5; box-shadow: 0 10px 30px #0006; }
.jmc-editor .jmt-preview-header { display: flex; justify-content: space-between; align-items: center; gap: 10px; height: 32px; padding: 3px 6px 3px 12px; color: #858590; font-size: 10px; }
.jmc-editor .jmt-preview-header .jmt-icon-button { flex-basis: 24px; width: 24px; height: 24px; padding: 5px; }
.jmc-editor .jmt-preview-header .jmt-icon-button svg { width: 14px; height: 14px; }
.jmc-editor .jmt-preview-visual { display: grid; place-items: center; min-height: 150px; background: #0a0a0d; }
.jmc-editor .jmt-preview-media:is(img, video) { display: block; width: 100%; max-height: 220px; object-fit: contain; }
.jmc-editor .jmt-preview-empty { padding: 24px 14px; color: #6f6f7b; font-size: 11px; text-align: center; }
.jmc-editor .jmt-preview-audio { height: 0; overflow: hidden; }
.jmc-editor .jmt-timeline :is(button, [tabindex]):focus-visible { outline: 2px solid #b3bfdf; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  .jmc-editor .jmt-timeline, .jmc-editor .jmt-timeline * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Local clip previews: actual source frames and trimmed PCM envelopes, without filenames. */
.jmc-editor .jmt-clip-content { position: absolute; inset: 0; min-width: 0; min-height: 0; overflow: hidden; border-radius: 3px; pointer-events: none; }
.jmc-editor .jmt-clip-content .jmt-clip-duration { left: 5px; bottom: 2px; padding: 0 3px; border-radius: 3px; background: #0005; color: #fff; font-size: 10px; line-height: 16px; }
.jmc-editor .jmt-clip-waveform { position: absolute; inset: 3px 0; display: block; width: 100%; height: calc(100% - 6px); overflow: hidden; color: #36c2dd; }
.jmc-editor .jmt-clip-placeholder { display: grid; place-items: center; width: 100%; height: 100%; padding: 3px; overflow: hidden; color: #93939d; font-size: 9px; line-height: 14px; white-space: nowrap; }
