.tl-marker-tools,
.tl-marker-editor {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.tl-marker-tools > .form-select {
  flex: 1 1 150px;
  width: auto;
  min-width: 0;
  max-width: 260px;
  min-height: 32px;
  padding-block: 3px;
}

.tl-marker-editor { align-items: end; margin-top: 10px; margin-bottom: 0; }
.tl-marker-editor > div:first-child { flex: 1 1 150px; max-width: 260px; }
.tl-marker-editor > div:nth-child(2) { max-width: 130px; }
.tl-marker-editor > .btn { min-height: 40px; }

.tl-shortcuts { margin-inline-start: auto; color: var(--sc-muted); font-size: var(--sc-type-caption); }
.tl-shortcuts[open] { flex-basis: 100%; margin-inline-start: 0; }
.tl-shortcuts > summary { cursor: pointer; width: fit-content; }
.tl-shortcuts > label { display: flex; align-items: center; gap: 5px; margin-top: 8px; }
.tl-shortcuts > dl {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: baseline;
  gap: 5px 12px;
  margin: 8px 0 0;
}
.tl-shortcuts dd { margin: 0; }

.tl-marker-lane {
  position: relative;
  height: 34px;
  border-bottom: 1px solid var(--tl-border);
  background: var(--sc-surface-soft);
}

.tl-marker-label {
  position: sticky;
  left: 0;
  z-index: 5;
  display: block;
  width: 138px;
  height: 100%;
  padding: 8px 12px;
  border-right: 1px solid var(--tl-border);
  background: var(--sc-surface-soft);
  color: var(--sc-muted);
  font-size: var(--sc-type-caption);
}

.tl-marker-pins { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.tl-marker-pin {
  position: absolute;
  top: 4px;
  height: 25px;
  padding: 2px 5px;
  overflow: hidden;
  border: 1px solid var(--sc-border-strong);
  border-inline-start: 3px solid var(--sc-success);
  border-radius: var(--sc-radius-xs);
  background: var(--sc-surface-raised);
  color: var(--sc-text);
  text-align: start;
  font-size: var(--sc-type-caption);
  pointer-events: auto;
}
.tl-marker-pin span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-marker-pin.is-compact { padding-inline: 0; border-inline-start-width: 1px; background: var(--sc-success); }
.tl-marker-pin.is-compact span { visibility: hidden; }
.tl-marker-pin[aria-pressed="true"] { z-index: 2; border-color: var(--sc-success); }
.tl-marker-pin:focus-visible { z-index: 3; outline: 2px solid var(--tl-accent); outline-offset: 1px; }
.tl-marker-guides { position: absolute; inset: 68px 0 0; z-index: 3; pointer-events: none; }
.tl-marker-guides span {
  position: absolute;
  inset-block: 0;
  border-left: 1px dashed var(--sc-success);
  opacity: .38;
}
.tl-marker-guides span.is-selected { opacity: .85; }
