/* The timeline: transport bar, row names, canvas, hover preview, scrollbar. */
/* timeline */
.timeline {
  position: relative;
  z-index: 10;
  background: var(--panel);
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 16px rgba(16, 16, 24, 0.04);
}
.tl-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding-block: 6px;
  padding-left: var(--gl);
  padding-right: var(--gr);
  border-bottom: 1px solid var(--line);
}
.tl-left {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}
.tcb {
  font-family: var(--f-mono);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
  border: 0;
  background: none;
  border-radius: 7px;
  padding: 3px 6px;
  margin-left: -6px;
  cursor: text;
  color: var(--text);
}
.tcb:hover {
  background: var(--panel-2);
}
.tcin {
  font-family: var(--f-mono);
  font-size: 15px;
  font-weight: 500;
  width: 9.5ch;
  height: 28px;
  padding: 0 6px;
  margin-left: -6px;
  border-radius: 7px;
  border: 1.5px solid var(--accent);
  background: var(--panel);
  outline: none;
}
.tcsub {
  font-family: var(--f-ui);
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  color: var(--text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-variant-numeric: tabular-nums;
}
.tl-mid {
  display: flex;
  align-items: center;
  gap: 2px;
}
.playbtn {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--text);
  color: var(--panel);
  margin: 0 4px;
}
.playbtn:hover {
  opacity: 0.88;
}
.playbtn svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
  stroke: none;
}
.tl-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}
.tl-right .btn {
  margin-left: 4px;
}
.tl-body {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  padding-left: var(--gl);
  padding-right: var(--gr);
  padding-bottom: 10px;
}
.tl-names {
  display: grid;
  grid-template-rows: 28px 44px 28px 28px;
  border-right: 1px solid var(--line);
}
.tl-names > div {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding-right: 12px;
  font-size: 12px;
  color: var(--text-2);
}
.tl-names .nh {
  font-weight: 600;
  color: var(--text);
}
.tl-names .nm {
  border-top: 1px solid var(--line);
}
.tl-names .nm:last-child {
  border-bottom: 1px solid var(--line);
}
.tl-names svg.i {
  width: 14px;
  height: 14px;
  color: var(--text-3);
}
.tl-names .mt {
  margin-left: auto;
  font-family: var(--f-ui);
  font-size: 11px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.tl-names .reg svg.i,
.tl-names .reg .nmt {
  color: var(--region);
}
.tlwrap {
  position: relative;
  min-width: 0;
}
#tl {
  display: block;
  width: 100%;
  height: 128px;
  cursor: col-resize;
  touch-action: none;
}
.tltip {
  position: absolute;
  z-index: 30;
  bottom: calc(100% + 56px);
  pointer-events: none;
  display: grid;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: var(--bar);
  color: var(--bar-text);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.07),
    0 14px 34px rgba(0, 0, 0, 0.3);
}
.tlpv {
  position: relative;
  display: grid;
  justify-items: center;
}
.tltip canvas {
  display: block;
  border-radius: 8px;
  background: #000;
}
.tltc {
  position: absolute;
  left: 6px;
  bottom: 6px;
  display: flex;
  gap: 5px;
  align-items: baseline;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(10, 10, 12, 0.72);
  backdrop-filter: blur(6px);
  font: 600 10.5px/16px var(--f-mono);
  color: #fff;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.tltc i {
  font-style: normal;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.6);
}
.tlpv canvas[hidden] + .tltc {
  position: static;
  background: none;
  padding: 3px 6px;
}
.tlseg {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 3px 6px 4px;
  font-size: 12px;
  color: var(--bar-dim);
  white-space: nowrap;
}
.tlseg b {
  font-weight: 600;
  color: var(--bar-text);
}
.tlseg .sk {
  width: 14px;
  height: 6px;
  flex: none;
  border-radius: 2px;
  background: #fff;
}
.tlseg .sk.mv {
  height: 0;
  border-top: 1.5px solid #8e9bff;
  border-radius: 0;
  position: relative;
}
.tlseg .sk.mv::before,
.tlseg .sk.mv::after {
  content: '';
  position: absolute;
  top: -4.5px;
  width: 1.5px;
  height: 7px;
  background: #8e9bff;
}
.tlseg .sk.mv::before {
  left: 0;
}
.tlseg .sk.mv::after {
  right: 0;
}
.tlseg em {
  font-style: normal;
  margin-left: auto;
  padding-left: 8px;
  color: var(--bar-dim);
}
.tl-names .nh {
  justify-content: space-between;
}
.tlchk {
  margin-left: auto;
  color: var(--accent-text);
}
.tlz {
  display: flex;
  align-items: center;
  gap: 1px;
  padding: 2px;
  border-radius: 9px;
  background: var(--panel-2);
}
.tlz .ib.sm {
  width: 24px;
  height: 24px;
}
.tlz svg.i {
  width: 13px;
  height: 13px;
}
.tlzl {
  min-width: 44px;
  height: 24px;
  padding: 0 6px;
  border: 0;
  border-radius: 6px;
  background: none;
  font: 600 11.5px var(--f-ui);
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
}
.tlzl:hover {
  background: var(--panel-3);
  color: var(--text);
}
.tsep2 {
  width: 1px;
  height: 18px;
  margin: 0 4px;
  background: var(--line);
}
.tlscroll {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 2px;
  height: 6px;
  border-radius: 3px;
  background: color-mix(in srgb, var(--text) 6%, transparent);
  touch-action: none;
}
.tlthumb {
  position: absolute;
  top: 0;
  bottom: 0;
  min-width: 24px;
  border-radius: 3px;
  background: color-mix(in srgb, var(--text) 30%, transparent);
  cursor: grab;
}
.tlthumb:hover,
.tlthumb.drag {
  background: color-mix(in srgb, var(--text) 45%, transparent);
}
.nmx {
  width: 20px;
  height: 20px;
  margin-left: 4px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text-3);
  flex: none;
}
.nmx:hover {
  background: var(--panel-2);
  color: var(--text);
}
.nmx svg.i {
  width: 12px;
  height: 12px;
}
#tlMenu {
  top: 74px;
  left: var(--gl);
  right: auto;
}
