.vertical-dock {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 12px;
}

.grid-menu {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 20px;
  justify-content: center;
  padding: 12px;
}

.dock-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit; /* Automatically matches Light or Dark mode text from style.css */
  width: 72px;
  cursor: pointer;
  transition: transform 0.18s ease;
}

.dock-item:hover {
  transform: translateY(-3px) scale(1.05);
}

.dock-item:active {
  transform: scale(0.96);
}

.icon-square {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  overflow: hidden;
  padding: 0;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.22);
  transition: box-shadow 0.18s ease;
}

.dock-item:hover .icon-square {
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
}

.icon-square img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.icon-fallback {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #4285f4, #1a73e8);
  color: #ffffff;
  font-size: 24px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.app-title {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 500;
  text-align: center;
  line-height: 1.2;
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
