.tiles {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  min-height: 76px;
}
.tile {
  width: 68px;
  height: 68px;
  border-radius: 14px;
  background: var(--bg-elevated);
  border: 2px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  position: relative;
  transition: transform 0.1s ease, border-color 0.15s ease;
}
.tile.selected {
  border-color: var(--accent);
  transform: scale(1.06);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent);
}
.tile .expr {
  position: absolute;
  bottom: -18px;
  font-size: 9px;
  font-weight: 500;
  color: var(--text-dim);
  white-space: nowrap;
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.opbtn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--border);
  font-size: 22px;
  font-weight: 800;
}
.opbtn.selected {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  border: none;
}
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 20px;
}
