body {
  margin: 0;
  min-width: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

#subs {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 8px;
}

#subs .cue {
  margin: 0 0 4px;
  padding: 0;
}

.shadowing-cue {
  display: block;
  width: 100%;
  min-height: 58px;
  margin: 0;
  padding: 3px 9px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: start;
  cursor: pointer;
}

.shadowing-cue > span {
  display: block;
  line-height: 1.4;
}

.shadowing-cue-time {
  color: var(--accent);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.shadowing-cue .cue-zh {
  margin-top: 1px;
}

.shadowing-cue:focus-visible {
  outline-offset: -2px;
}

.practice-bar {
  padding-inline: 6px;
}

.practice-controls,
.practice-transport {
  flex-wrap: nowrap;
  gap: 3px;
}

.practice-transport {
  flex: 1 1 auto;
  min-width: 0;
}

.practice-tools {
  gap: 3px;
  padding-left: 0;
  border-left: 0;
}

.sentence-nav,
.sentence-end {
  flex: 0 0 auto;
  min-width: 0;
}

.practice-bar button {
  min-width: 32px;
  min-height: 44px;
  padding-inline: 4px;
}

.practice-bar #speed-button {
  min-width: 36px;
}

#play-toggle-label {
  display: none;
}

.shadowing-control-icon {
  width: 16px;
  height: 16px;
  display: block;
  margin: auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.shadowing-panel-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
  flex: none;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}

#shadowing-panel-title {
  margin: 0;
  font-size: 15px;
}

#shadowing-panel-pair {
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}
