.animation2-controls,
.animation2-workbench,
.animation2-workbench > header > div:first-child,
.animation2-stages,
.animation2-stages article {
  min-width: 0;
}

.animation2-workbench {
  overflow: hidden;
}

.animation2-workbench > header > div:first-child {
  flex: 1 1 auto;
}

.animation2-workbench h2 {
  overflow-wrap: anywhere;
  line-height: 1.25;
}

.animation2-stages {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
}

.animation2-stages article {
  width: auto;
}

.animation2-canvas-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  overflow: auto;
  scrollbar-color: #926e56 #1e1712;
  scrollbar-width: thin;
}

.animation2-canvas-wrap canvas {
  flex: 0 0 auto;
  max-width: none;
  max-height: none;
  margin: auto;
}

.animation2-canvas-wrap::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.animation2-canvas-wrap::-webkit-scrollbar-track {
  background: #1e1712;
}

.animation2-canvas-wrap::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #926e56;
}

.animation2-zoombar {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid #503c2f;
  border-radius: 9px;
  background: linear-gradient(135deg, #2b211a, #1c1511);
}

.animation2-zoombar > span {
  margin-right: 4px;
  color: #fbcaaa;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .12em;
}

.animation2-zoombar button {
  min-width: 34px;
  padding: 6px 9px;
}

.animation2-zoombar b {
  min-width: 30px;
  color: #fef7f3;
  font-size: 10px;
  text-align: center;
}

.animation2-zoombar small {
  min-width: 0;
  overflow: hidden;
  color: #b69783;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.animation2-workbench > footer {
  min-height: 0;
  padding: 0;
  background: transparent;
}

.animation2-timeline > header > div {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  min-width: 0;
}

.animation2-timeline > header > div small { margin-right: 4px; }
.animation2-timeline > header > div button { padding: 6px 9px; border-color: #705442; background: #382a21; font-size: 8px; }
.animation2-timeline > header > div button[data-animation2-add-frame] { border-color: #c28f6d; background: linear-gradient(135deg, #89644c, #5f4636); color: #fff; }
.animation2-timeline > header > div button:disabled { cursor: not-allowed; opacity: .42; }

@media (max-width: 1150px) {
  .animation2-stages {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .animation2-zoombar small {
    display: none;
  }

  .animation2-timeline > header { align-items: flex-start; flex-direction: column; gap: 8px; }
  .animation2-timeline > header > div { flex-wrap: wrap; justify-content: flex-start; }
}
