.sample-dialog {
  width: min(790px, calc(100vw - 32px));
  max-height: min(84dvh, 820px);
  padding: 0;
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.sample-dialog[open] {
  display: flex;
  flex-direction: column;
}
.sample-dialog::backdrop {
  background: rgb(0 0 0/0.64);
}
.sample-dialog header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
.sample-dialog h2 {
  font:
    600 18px Inter,
    sans-serif;
  margin: 0;
}
.sample-grid {
  padding: 16px;
  overflow: auto;
  overscroll-behavior: contain;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px 12px;
}
.sample-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--text);
  padding: 0;
  text-align: start;
}
.sample-card img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  border-radius: 5px;
  outline: 1px solid var(--line);
  outline-offset: -1px;
}
.sample-card[aria-pressed='true'] img,
.sample-card:is(:hover, :focus-visible) img {
  outline: 2px solid var(--accent, #28a7ff);
  outline-offset: -2px;
}
.sample-card span {
  display: flex;
  align-items: center;
  gap: 6px;
  font:
    550 13px Inter,
    sans-serif;
}
.sample-card i {
  display: inline-flex;
  color: var(--muted);
}
.sample-card svg {
  width: 15px;
  height: 15px;
}
.timeline.still.has-motion .transport {
  display: flex;
}
.timeline.still.has-motion .track-space {
  display: block;
}
.timeline.still.has-motion #frames {
  background: none;
}
@media (max-width: 900px) {
  .sample-trigger span {
    display: none;
  }
}
@media (max-width: 600px) {
  .sample-dialog {
    width: calc(100vw - 16px);
    max-height: 86dvh;
  }
  .sample-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 10px;
    padding: 12px;
  }
  .sample-dialog header .icon {
    min-width: 42px;
    min-height: 42px;
  }
}

.timeline.still.has-motion .track {
  height: 24px;
  background: transparent;
  border: 0;
}
.timeline.still.has-motion .track::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--line);
}
.timeline.still.has-motion .playhead {
  top: 3px;
  bottom: 3px;
}
.timeline.still.has-motion #frames {
  visibility: hidden;
}
