/* Agnibeena Graphden V151 — free animation and timeline studio */
.ds-animation-intro,
.ds-animation-card {
  margin-bottom: 8px;
  padding: 9px;
  border: 1px solid rgba(190, 153, 255, .15);
  border-radius: 9px;
  background: rgba(255, 255, 255, .025);
}

.ds-animation-intro h2,
.ds-animation-card h3 {
  margin: 0;
  color: #f8f5ff;
}

.ds-animation-intro h2 { font-size: 14px; }
.ds-animation-card h3 { font-size: 12px; }

.ds-animation-intro p,
.ds-animation-card p {
  margin: 3px 0 0;
  color: rgba(238, 232, 250, .56);
  font-size: 8px;
  line-height: 1.45;
}

.ds-animation-card > label,
.ds-animation-card .two-column-controls > label {
  margin-top: 7px;
}

.ds-animation-range {
  margin: 7px 0 0;
  padding: 7px;
}

.ds-animation-toggles {
  margin: 8px 0 0;
}

.ds-animation-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 5px;
  margin-top: 8px;
}

.ds-animation-actions button {
  min-width: 0;
  min-height: 32px;
  padding-inline: 6px;
  font-size: 9px;
}

.ds-control-muted {
  opacity: .45;
}

.ds-animation-status {
  min-height: 31px;
  margin: 8px 0 0 !important;
  padding: 7px 8px;
  border: 1px solid rgba(88, 212, 177, .18);
  border-radius: 7px;
  background: rgba(39, 135, 107, .08);
  color: #b9f2df !important;
}

.ds-animation-status.error {
  border-color: rgba(255, 111, 133, .25);
  background: rgba(171, 54, 74, .11);
  color: #ffc2cc !important;
}

/* The transport exists only after a timeline is built. */
.preview-card {
  grid-template-rows: auto minmax(0, 1fr) auto auto;
}

.ds-animation-transport {
  display: grid;
  grid-template-columns: 34px 38px 34px minmax(120px, 1fr) minmax(120px, auto) 48px;
  align-items: center;
  gap: 5px;
  min-height: 38px;
  padding: 5px 8px;
  border-top: 1px solid rgba(255, 255, 255, .075);
  background: rgba(14, 15, 23, .96);
}

.ds-animation-transport[hidden] {
  display: none !important;
}

.ds-animation-transport button {
  min-width: 0;
  min-height: 28px;
  padding: 0 5px;
  border: 1px solid rgba(190, 153, 255, .24);
  border-radius: 6px;
  background: rgba(121, 73, 200, .13);
  color: #f6f1ff;
  font-size: 9px;
  font-weight: 850;
  cursor: pointer;
}

.ds-animation-transport button:hover:not(:disabled),
.ds-animation-transport button:focus-visible {
  border-color: rgba(190, 153, 255, .55);
  background: rgba(121, 73, 200, .32);
  outline: none;
}

.ds-animation-transport button:disabled {
  opacity: .35;
  cursor: default;
}

.ds-animation-transport .ds-timeline-play {
  background: linear-gradient(145deg, #8c58e8, #6032ad);
  color: #fff;
}

.ds-animation-transport input[type="range"] {
  min-width: 0;
  width: 100%;
  accent-color: #9d6af2;
}

.ds-animation-transport output {
  overflow: hidden;
  color: rgba(245, 241, 255, .78);
  font-size: 8px;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.ds-view-hide-toolbar .preview-card {
  grid-template-rows: minmax(0, 1fr) auto auto;
}

body.ds-view-hide-footer .preview-card {
  grid-template-rows: auto minmax(0, 1fr) auto;
}

body.ds-view-hide-toolbar.ds-view-hide-footer .preview-card {
  grid-template-rows: minmax(0, 1fr) auto;
}

.preview-card:fullscreen {
  grid-template-rows: auto minmax(0, 1fr) auto auto;
}

body.ds-animation-running .chart-mount {
  will-change: transform, opacity;
}

@media (max-width: 850px) {
  .ds-animation-transport {
    grid-template-columns: 32px 36px 32px minmax(100px, 1fr) 42px;
  }
  .ds-animation-transport output {
    grid-column: 1 / -1;
    grid-row: 2;
    text-align: center;
  }
}

@media (max-width: 560px) {
  .ds-animation-actions {
    grid-template-columns: 1fr;
  }
  .ds-animation-transport {
    grid-template-columns: 30px 34px 30px minmax(90px, 1fr) 40px;
    gap: 3px;
    padding-inline: 5px;
  }
  .ds-animation-transport button {
    min-height: 27px;
    font-size: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.ds-animation-running .chart-mount {
    will-change: auto;
  }
}
