/* MaxGPT ImageGenerator.module.sass, _glass.sass and ElasticSurface.module.sass. */
.canvasHistoryBtn {
  position: absolute;
  top: 12px;
  right: 84px;
  z-index: 4;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(160deg, rgba(38, 38, 38, 0.74), rgba(30, 30, 30, 0.68));
  border: 0.5px solid rgba(255, 255, 255, 0.13);
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.025);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  box-sizing: border-box;
  color: #fff;
  transition: transform 0.12s, background-color 0.18s;
}
.canvasHistoryBtn svg {
  stroke-width: 1.6;
}
.canvasHistoryBtn:hover {
  background-color: rgba(255, 255, 255, 0.12);
}
.canvasHistoryBtn:active:not([data-elastic-surface]) {
  transform: scale(0.94);
}
.canvasHistoryBtn svg {
  width: 26px;
  height: 26px;
}

.controlPill {
  height: 32px;
  padding: 0 11px;
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(38, 38, 38, 0.74), rgba(30, 30, 30, 0.68));
  border: 0.5px solid rgba(255, 255, 255, 0.13);
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.025);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  white-space: nowrap;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}
.controlPill:hover {
  border-color: rgba(255, 255, 255, 0.22);
}
.controlPill:disabled {
  opacity: 0.45;
  cursor: default;
}
.controlPill svg {
  width: 15px;
  height: 15px;
}

.controlPill {
  background: linear-gradient(160deg, rgba(38, 38, 38, 0.74), rgba(30, 30, 30, 0.68));
  border: 0.5px solid rgba(255, 255, 255, 0.13);
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.025);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.18s ease-out, filter 0.18s, background 0.18s, color 0.18s, border-color 0.18s;
  color: rgba(255, 255, 255, 0.9);
}
.controlPill:active:not(:disabled):not([data-elastic-surface]) {
  transform: scale(0.96);
  transition-duration: 0.08s;
}
@media (prefers-reduced-motion: reduce) {
  .controlPill {
    transition: none;
  }
}

.controlPill[aria-pressed=true] {
  background: linear-gradient(160deg, rgba(38, 38, 38, 0.74), rgba(30, 30, 30, 0.68));
  border: 0.5px solid rgba(255, 255, 255, 0.13);
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.025);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background: linear-gradient(160deg, rgba(58, 58, 58, 0.8), rgba(44, 44, 44, 0.74));
  color: #fff;
}

.elasticButton {
  touch-action: pan-y pinch-zoom;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}
.elasticButton[data-elastic-pressed] {
  background-color: rgba(255, 255, 255, 0.16);
}
