:root {
  --face-cycle-btn-width: 175px;
  --hand-cycle-btn-width: auto;
  --hand-color-btn-width: auto;
  --hand-length-btn-width: auto;
  --seconds-color-btn-width: auto;
  --seconds-length-btn-width: auto;
  --seconds-width-btn-width: auto;
}

.button-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 3px;
}

.cycle-btn {
  width: auto;
  min-width: 75px;
  max-width: none;
  padding: 11px 16px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.75);
  color: #f5f5f5;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  white-space: nowrap;
  flex: 0 0 auto;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  position: relative;
}

.compact-btn {
  max-width: none;
}

#face-cycle-btn {
  width: auto;
  min-width: 150px;
  max-width: none;
}

#hand-cycle-btn {
  width: auto;
  min-width: 100px;
  max-width: none;
}

#hand-color-btn {
  width: auto;
  min-width: 100px;
  max-width: none;
}

#hand-length-cycle-btn {
  width: auto;
  min-width: 90px;
  max-width: none;
}

#seconds-color-cycle-btn {
  width: auto;
  min-width: 80px;
  max-width: none;
}

#seconds-length-cycle-btn {
  width: auto;
  min-width: 90px;
  max-width: none;
}

#seconds-width-cycle-btn {
  width: auto;
  min-width: 90px;
  max-width: none;
}

.cycle-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(212, 175, 55, 0.05));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cycle-btn:hover::before {
  opacity: 1;
}

.cycle-btn:hover {
  border-color: rgba(212, 175, 55, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2);
}

.cycle-btn:active {
  transform: translateY(0) scale(0.97);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.opacity-btn {
  flex: 0 0 auto;
  min-width: 55px;
  max-width: none;
  padding: 10px 14px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.75);
  color: #f5f5f5;
  font-size: 12px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.opacity-btn:hover {
  background: rgba(45, 45, 45, 0.95);
  border-color: rgba(212, 175, 55, 0.4);
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

.opacity-btn.selected {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.9) 0%, rgba(180, 145, 45, 0.95) 100%);
  color: #1a1a1a;
  border-color: rgba(212, 175, 55, 1);
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
  transform: scale(1.02);
}

.opacity-btn:active {
  transform: translateY(0) scale(0.98);
}

.circle-btn {
  width: 40px !important;
  height: 40px !important;
  min-width: 0 !important;
  max-width: 40px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 14px !important;
  flex-shrink: 0 !important;
}

.chime-interval-btn {
  border-width: 2px !important;
  border-radius: 999px !important;
}

.swatch-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 4px;
}

.swatch {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0;
  cursor: pointer;
  transition: all 0.2s ease;
}

.swatch:hover {
  transform: scale(1.1);
  border-color: rgba(255, 255, 255, 0.5);
}

.swatch.selected {
  outline: 2px solid #ffffff;
  outline-offset: 1px;
}

.section-help {
  font-size: 12px;
  opacity: 0.75;
  margin-bottom: 6px;
  line-height: 1.4;
}

.inline-toggle {
  margin-top: 6px;
}

.subsection-label {
  font-size: 12px;
  font-weight: 600;
  opacity: 0.7;
  margin-top: 14px;
  margin-bottom: 10px;
  letter-spacing: 0.05em;
  color: rgba(212, 175, 55, 0.8);
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.75);
  padding: 4px 8px;
  border-radius: 4px;
  display: inline-block;
}

.toggle-row {
  display: flex;
  align-items: center;
  margin-top: 10px;
  font-size: 14px;
  font-weight: 500;
  padding: 6px 8px;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.toggle-row:hover {
  background: rgba(255, 255, 255, 0.03);
}

.toggle-row input {
  margin-right: 10px;
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: #d4af37;
}

.toggle-row label {
  cursor: pointer;
  user-select: none;
  background: rgba(0, 0, 0, 0.75);
  padding: 4px 8px;
  border-radius: 6px;
}