.round-strip-items {
  display: flex;
  align-items: center;
  gap: 5px;
  flex: 1 0 auto;
  min-width: 0;
  min-height: 38px;
  padding: 3px 4px;
  box-sizing: border-box;
  user-select: none;
  touch-action: none;
}
.round-strip-group {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px calc(6px + var(--group-insert-tail, 0px)) 3px 6px;
  border: 1px solid rgba(var(--line-strong-rgb), 0.32);
  border-radius: 5px;
  background: rgba(var(--panel-2-rgb), 0.32);
  flex: 0 0 auto;
  transform: translateX(var(--group-insert-shift, 0px));
  margin-inline-end: var(--group-insert-outside, 0px);
  transition: transform 280ms cubic-bezier(.22, 1, .36, 1), padding-inline-end 280ms cubic-bezier(.22, 1, .36, 1), margin-inline-end 280ms cubic-bezier(.22, 1, .36, 1);
}
.round-economy-group {
  display: grid;
  grid-template-rows: 18px auto;
  gap: 3px;
  flex: 0 0 auto;
  min-width: 120px;
  padding: 0 10px;
  border-inline-start: 1px solid var(--line);
}
.round-economy-heading {
  color: var(--muted);
  font-size: var(--font-caption);
  font-weight: 500;
  line-height: 18px;
  letter-spacing: 0;
  white-space: nowrap;
  position: sticky;
  left: 10px;
  justify-self: start;
  max-width: 230px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.round-economy-members { display: flex; align-items: flex-end; gap: 5px; }
.analyser-shell .analyser-dock button.round-economy-heading {
  border: 0;
  border-radius: 2px;
  background: transparent;
  padding: 0;
  min-height: 18px;
  height: 18px;
  font-size: var(--font-caption);
  font-weight: 500;
  line-height: 18px;
  text-align: left;
  color: var(--muted);
  cursor: pointer;
  scale: 1;
}
.analyser-shell .analyser-dock button.round-economy-heading:hover,
.analyser-shell .analyser-dock button.round-economy-heading[aria-pressed="true"] { color: var(--accent); }
.round-rail.is-economy-grouped .round-strip-item.round-pill { cursor: pointer; touch-action: pan-x; }
.analyser-shell .controls-panel :is(.round-economy-toggle, .replay-option-toggle) {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: var(--font-control);
  cursor: pointer;
}
:is(.round-economy-toggle, .replay-option-toggle) input {
  appearance: none;
  width: 30px;
  min-width: 30px;
  height: 18px;
  min-height: 18px;
  margin: 0;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-2);
  cursor: pointer;
}
:is(.round-economy-toggle, .replay-option-toggle) input::before {
  content: '';
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  transition: transform 150ms;
}
:is(.round-economy-toggle, .replay-option-toggle) input:checked { background: var(--selection); border-color: var(--accent); }
:is(.round-economy-toggle, .replay-option-toggle) input:checked::before { transform: translateX(12px); background: var(--accent); }
:is(.round-economy-toggle, .replay-option-toggle) input:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.replay-option-toggle:has(input:disabled) { opacity: .5; cursor: default; }
.replay-option-toggle input:disabled { cursor: default; }
@media (prefers-reduced-motion: reduce) {
  :is(.round-economy-toggle, .replay-option-toggle) input::before { transition: none; }
}
.round-strip-item.round-pill {
  --insert-shift: 0px;
  --insert-gap: 0px;
  --insert-tail: 0px;
  position: relative;
  flex: 0 0 38px;
  width: 38px;
  height: 36px;
  min-height: 36px;
  padding: 0 3px 3px;
  border-radius: 4px;
  cursor: grab;
  touch-action: none;
  user-select: none;
  transform: translateX(var(--insert-shift, 0px));
  margin-inline-start: var(--insert-gap, 0px);
  margin-inline-end: var(--insert-tail, 0px);
  transition: transform 280ms cubic-bezier(.22, 1, .36, 1), margin-inline-start 280ms cubic-bezier(.22, 1, .36, 1), margin-inline-end 280ms cubic-bezier(.22, 1, .36, 1), background-color 160ms ease, box-shadow 160ms ease;
}
.round-strip-item.round-pill:active { cursor: grabbing; }
.round-strip-labeled-item {
  --insert-shift: 0px; --insert-gap: 0px; --insert-tail: 0px;
  position: relative; display: grid; grid-template-rows: 18px auto; justify-items: center; gap: 3px;
  flex: 0 0 auto; align-self: flex-end; min-width: 36px; max-width: 148px; padding: 0 6px;
  border-inline: 1px solid var(--line); cursor: grab; user-select: none; touch-action: none;
  transform: translateX(var(--insert-shift)); margin-inline-start: var(--insert-gap); margin-inline-end: var(--insert-tail);
  transition: transform 280ms cubic-bezier(.22, 1, .36, 1), margin-inline-start 280ms cubic-bezier(.22, 1, .36, 1), margin-inline-end 280ms cubic-bezier(.22, 1, .36, 1), opacity 180ms ease;
}
.round-strip-item-caption { display: block; min-width: 36px; max-width: 132px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); font-size: var(--font-caption); font-weight: 500; line-height: 18px; text-align: center; }
.round-strip-labeled-item.is-dragging { opacity: .3; }
.round-strip-item-caption { cursor: text; }
.round-strip-labeled-item.round-strip-ghost { display: grid; background: transparent; border-block: 0; border-inline: 1px solid var(--accent); border-radius: 0; }
.round-strip-labeled-item[data-drop="group"] > .round-strip-item { background: rgba(var(--accent-rgb), 0.22); box-shadow: inset 0 0 0 1px var(--accent); }
.round-strip-labeled-item[data-drop="pending"] > .round-strip-item { background: rgba(var(--accent-rgb), 0.12); }
.round-strip-labeled-item[data-drop="before"]::before,
.round-strip-labeled-item[data-drop="after"]::after { content: ''; position: absolute; top: 0; bottom: 0; width: 2px; background: var(--accent); pointer-events: none; }
.round-strip-labeled-item[data-drop="before"]::before { left: -4px; }
.round-strip-labeled-item[data-drop="after"]::after { right: -4px; }
.is-selecting-rounds .round-strip-item.round-pill,
.is-selecting-rounds .round-strip-item.round-pill:active { cursor: crosshair; }
.round-strip-item.round-pill.is-excerpt { border-style: dashed; border-color: var(--line-strong); }
.round-strip-item.round-pill.is-selected {
  border-color: var(--accent);
  background: var(--selection);
  box-shadow: inset 0 0 0 1px var(--accent);
}
.round-strip-item.is-selected::after {
  content: '\2713';
  position: absolute;
  top: -4px;
  right: -3px;
  display: grid;
  place-items: center;
  width: 11px;
  height: 11px;
  border-radius: 3px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: var(--font-micro);
  line-height: 1;
}
.round-strip-selection-count { display: block; padding: 6px; color: var(--muted); white-space: nowrap; font-size: var(--font-caption); }
.round-strip-drag-count { position: absolute; right: -10px; top: -8px; min-width: 18px; padding: 2px 4px; border-radius: 4px; background: var(--accent); color: var(--accent-ink); font-size: var(--font-caption); line-height: 14px; text-align: center; }
.round-strip-drag-action {
  position: absolute;
  left: 0;
  bottom: calc(100% + 8px);
  width: max-content;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--panel-2);
  color: var(--text);
  font-size: var(--font-control);
  font-weight: 600;
  line-height: 16px;
  white-space: nowrap;
}
.round-strip-drag-action[hidden] { display: none; }
.round-strip-dragging, .round-strip-dragging * { cursor: grabbing !important; }
.round-strip-item.is-dragging { opacity: .3; }
.round-strip-ghost {
  position: fixed !important;
  left: 0;
  top: 0;
  z-index: 2100;
  pointer-events: none;
  background: var(--panel-2);
  color: var(--text);
  border: 1px solid var(--accent);
  transition: none !important;
  box-sizing: border-box;
  will-change: transform;
}
.round-strip-item.is-slide { display: grid; place-content: center; }
#addPresentationCanvasButton[hidden], #addPresentationSceneButton[hidden] { display: none; }
.round-strip-item[data-drop="group"] {
  transform: translateX(var(--insert-shift, 0px)) scale(.96);
  background: rgba(var(--accent-rgb), 0.22);
  box-shadow: inset 0 0 0 1px var(--accent), 0 0 0 2px rgba(var(--accent-rgb), 0.251);
}
.round-strip-item[data-drop="pending"] { background: rgba(var(--accent-rgb), 0.12); }
.round-strip-group.is-drop-target { border-color: var(--accent); background: rgba(var(--selection-rgb), 0.19); }
.round-strip-item[data-drop="before"]::before,
.round-strip-item[data-drop="after"]::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  border-radius: 1px;
  background: var(--accent);
}
.round-strip-item[data-drop="before"]::before { left: -4px; }
.round-strip-item[data-drop="after"]::after { right: -4px; }
.round-strip-slide-icon {
  display: block;
  width: 17px;
  height: 13px;
  border: 1.25px solid currentColor;
  border-radius: 2px;
}
.round-strip-tail { min-width: 40px; align-self: stretch; flex: 1; }
.shared-round-strip { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; padding: 8px 2px; }
.shared-round-strip .round-strip-item { cursor: pointer; }
.round-strip-menu {
  position: fixed;
  z-index: 2000;
  padding: 4px;
  border: 1px solid rgba(var(--accent-rgb), 0.35);
  border-radius: 6px;
  background: var(--panel-2);
  box-shadow: 0 8px 28px #0008;
}
.round-strip-title-dialog {
  width: min(360px, calc(100vw - 32px)); box-sizing: border-box; padding: 20px;
  color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: 8px;
}
.round-strip-title-dialog::backdrop { background: #0008; }
.round-strip-title-dialog h2 { margin: 0 0 16px; font-size: 17px; }
.round-strip-title-dialog input { width: 100%; box-sizing: border-box; padding: 9px 10px; background: var(--bg); color: var(--text); border: 1px solid var(--line-strong); border-radius: 4px; }
.round-strip-title-dialog footer { display: flex; justify-content: end; gap: 8px; margin-top: 16px; }
.round-strip-title-dialog button { padding: 7px 12px; color: var(--text); background: var(--panel-2); border: 1px solid var(--line); border-radius: 4px; cursor: pointer; }
.round-strip-title-dialog button[type="submit"] { background: var(--selection); border-color: var(--accent); }
.round-strip-menu button {
  display: block;
  width: 100%;
  padding: 8px 12px;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
}
.round-strip-menu button:hover,
.round-strip-menu button:focus-visible { background: rgba(var(--accent-rgb), 0.2); }
.round-strip-menu button[role="menuitemradio"][aria-checked="true"] { background: var(--selection); }
#roundRail[aria-busy="true"] .round-strip-item { cursor: progress; }
.map-shell.presentation-canvas-active { grid-template-rows: minmax(0, 1fr) auto; }
.map-shell.presentation-canvas-active > .playback-panel { display: grid; }
.presentation-canvas-active .seek-row,
.presentation-canvas-active #playPauseButton,
.presentation-canvas-active #markRoundButton,
.presentation-canvas-active .speed-control,
.presentation-canvas-active #addClipButton { visibility: hidden; pointer-events: none; }
@media (prefers-reduced-motion: reduce) {
  .round-strip-item.round-pill, .round-strip-group, .round-strip-labeled-item { transition: none; }
}
