:root {
  --component-button-height: 3rem;
  --component-button-radius: 14px;
  --component-control-height: 3.05rem;
  --component-control-button-size: 2.45rem;
  --component-control-counter-width: 4.4rem;
  --component-control-dot-size: 0.46rem;
  --component-pill-radius: 999px;
  --component-focus-width: 3px;
  --component-motion: 160ms ease;
}

.button,
.qz-button,
.qz-header-cta {
  min-height: var(--component-button-height);
  border-radius: var(--component-button-radius);
  transition:
    color var(--component-motion),
    background-color var(--component-motion),
    border-color var(--component-motion),
    box-shadow var(--component-motion),
    transform var(--component-motion);
}

.button:hover,
.qz-button:hover,
.qz-header-cta:hover {
  transform: translateY(-1px);
}

.button:focus-visible,
.qz-button:focus-visible,
.qz-header-cta:focus-visible,
.inkline-deck-button:focus-visible,
.rune-deck-button:focus-visible,
.qz-deck-button:focus-visible,
.inkline-deck-dot:focus-visible,
.rune-deck-dot:focus-visible,
.qz-deck-dot:focus-visible {
  outline: var(--component-focus-width) solid color-mix(in srgb, currentColor 32%, transparent);
  outline-offset: 3px;
}

.inkline-deck-ready .inkline-deck-controls,
.rune-deck-ready .rune-deck-controls,
.qz-deck-ready .qz-deck-controls {
  display: flex;
  min-height: var(--component-control-height);
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem;
  border-radius: var(--component-pill-radius);
  backdrop-filter: blur(16px);
}

.inkline-deck-ready .inkline-deck-button,
.rune-deck-ready .rune-deck-button,
.qz-deck-ready .qz-deck-button {
  display: grid;
  width: var(--component-control-button-size);
  min-width: var(--component-control-button-size);
  height: var(--component-control-button-size);
  min-height: var(--component-control-button-size);
  flex: 0 0 var(--component-control-button-size);
  place-items: center;
  border-radius: 50%;
  font-size: 1.05rem;
  line-height: 1;
  transition:
    color var(--component-motion),
    background-color var(--component-motion),
    opacity var(--component-motion),
    transform var(--component-motion);
}

.inkline-deck-ready .inkline-deck-button:not(:disabled):hover,
.rune-deck-ready .rune-deck-button:not(:disabled):hover,
.qz-deck-ready .qz-deck-button:not(:disabled):hover {
  transform: scale(1.04);
}

.inkline-deck-ready .inkline-deck-counter,
.rune-deck-ready .rune-deck-counter,
.qz-deck-ready .qz-deck-counter {
  width: auto;
  min-width: var(--component-control-counter-width);
  font-family: var(--font-mono, var(--qz-mono, "SFMono-Regular", monospace));
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1;
  text-align: center;
}

.inkline-deck-ready .inkline-deck-dots,
.rune-deck-ready .rune-deck-dots,
.qz-deck-ready .qz-deck-dots {
  display: flex;
  align-items: center;
  gap: 0.34rem;
}

.inkline-deck-ready .inkline-deck-dot,
.rune-deck-ready .rune-deck-dot,
.qz-deck-ready .qz-deck-dot {
  width: var(--component-control-dot-size);
  height: var(--component-control-dot-size);
  min-width: var(--component-control-dot-size);
  padding: 0;
  border-radius: 50%;
}

.tag,
.tool-chip,
.format-chip,
.qz-command-row span {
  border-radius: var(--component-pill-radius);
}

@media (prefers-reduced-motion: reduce) {
  .button,
  .qz-button,
  .qz-header-cta,
  .inkline-deck-button,
  .rune-deck-button,
  .qz-deck-button {
    transition: none;
  }
}
