.timeline-panel {
    height: 150px;
    background: #fff;
    border-top: 1px solid var(--line)
}

.timeline-head {
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
    border-bottom: 1px solid var(--line);
    font-size: 11px
}

.timeline-head b {
    margin-right: 12px
}

.timeline-head span {
    color: #9aa3b1
}

.timeline-current-time {
    display: inline-block;
    min-width: 46px;
    margin-left: 10px;
    font-variant-numeric: tabular-nums;
    color: #667286 !important
}

.timeline-current-label {
    margin-left: 10px
}

.timeline-actions {
    display: flex;
    gap: 6px
}

.mini-action,
.small-square {
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 6px;
    padding: 6px 9px;
    font-size: 10px;
    color: #667286;
    cursor: pointer
}

.timeline-body {
    height: 108px;
    position: relative;
    overflow: hidden;
    padding-left: 82px
}

.ruler {
    height: 25px;
    border-bottom: 1px solid #edf0f4;
    position: relative
}

.ruler span {
    position: absolute;
    top: 7px;
    transform: translateX(-50%);
    font-size: 9px;
    color: #a1a9b5;
    white-space: nowrap;
    pointer-events: none
}

.ruler span:first-child {
    transform: none
}

.ruler span:last-child:not(:first-child) {
    transform: translateX(-100%)
}

.ruler-tick::after {
    content: "";
    position: absolute;
    top: 11px;
    left: 50%;
    height: 5px;
    border-left: 1px solid #cbd1dc
}

.ruler span:first-child::after {
    left: 0
}

.ruler span:last-child:not(:first-child)::after {
    left: 100%
}

.audio-tracks {
    position: relative;
    height: 75px;
    padding-top: 10px
}

.audio-row {
    height: 30px;
    position: relative;
    margin-bottom: 4px
}

.track-name {
    position: absolute;
    left: -76px;
    width: 70px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 9px;
    color: #788396
}

.audio-source-clip {
    position: absolute;
    top: 2px;
    height: 25px;
    min-width: 1px;
    overflow: hidden;
    border-radius: 6px;
    background: #e5e8ed;
    border: 1px solid #d6dae1
}

.audio-clip-used {
    position: absolute;
    top: -1px;
    bottom: -1px;
    overflow: hidden;
    border-radius: 5px;
    background: #e9edff;
    border: 1px solid #cbd2ff;
    color: #5263dc;
    padding: 4px 5px;
    font-size: 9px;
    white-space: nowrap
}

.audio-clip-used::before,
.audio-clip-used::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #5263dc
}

.audio-clip-used::before {
    left: 0
}

.audio-clip-used::after {
    right: 0
}

.audio-clip-label {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none
}

.timeline-playhead {
    position: absolute;
    z-index: 5;
    top: 0;
    bottom: 0;
    width: 16px;
    margin-left: -8px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: ew-resize;
    touch-action: none
}

.timeline-playhead::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 7px;
    width: 2px;
    background: #e44758;
    box-shadow: 0 0 2px rgb(0 0 0 / 20%)
}

.timeline-playhead::after {
    content: "";
    position: absolute;
    top: 0;
    left: 3px;
    border-top: 8px solid #e44758;
    border-right: 5px solid transparent;
    border-left: 5px solid transparent
}

.timeline-playhead:focus-visible {
    outline: 2px solid #e44758;
    outline-offset: -2px
}

.timeline-playhead:active {
    cursor: grabbing
}

.audio-row>button {
    position: absolute;
    right: 4px;
    top: 5px;
    border: 0;
    background: transparent;
    color: #a3acb9;
    cursor: pointer
}

.audio-empty {
    font-size: 10px;
    color: #a1a9b5;
    padding: 16px 8px
}