.extra-prop-surface[data-prop^="kbd-"],
.extra-prop-surface[data-prop="keys"] {
  cursor: pointer;
}
#mat:has(.kbd-switcher) .stamp-result {
  bottom: 42px;
}
.kbd-switcher {
  position: absolute;
  left: 50%;
  bottom: 7px;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 3px;
  max-width: calc(100% - 18px);
  padding: 3px 5px;
  border-radius: 999px;
  background: rgba(252, 250, 242, 0.90);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(138, 128, 108, 0.36);
  box-shadow: 0 2px 8px rgba(42, 36, 30, 0.10);
  overflow-x: auto;
  scrollbar-width: none;
}
.kbd-switcher::-webkit-scrollbar {
  display: none;
}
.kbd-switcher button {
  flex: none;
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  color: #465046;
  font: 700 0.71rem/1.15 "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  padding: 3.5px 6.5px;
  min-height: 23px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 3.5px;
  transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}
.kbd-switcher button:hover {
  background: rgba(226, 234, 217, 0.75);
}
.kbd-switcher button[aria-pressed="true"] {
  background: #2b5243;
  color: #fff9e8;
  border-color: #2b5243;
}
.kbd-switcher .kbd-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--kbd-swatch, #9ab9bf);
  border: 1px solid rgba(40, 40, 40, 0.22);
  flex: none;
}
@media (max-width: 650px) {
  .kbd-switcher {
    bottom: 4px;
    padding: 2px 4px;
    gap: 2px;
  }
  .kbd-switcher button {
    font-size: 0.67rem;
    padding: 3px 6px;
    min-height: 22px;
  }
}
