.proto-picker {
  position: fixed;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: calc(100% - 24px);
  padding: 6px;
  border-radius: var(--hs-radius-pill);
  background: linear-gradient(145deg, #fffffff0, #eeeeeed9);
  -webkit-backdrop-filter: blur(var(--hs-glass-blur));
  backdrop-filter: blur(var(--hs-glass-blur));
  box-shadow: inset 0 1px 1px #fff, inset 0 -1px 1px #00000012, var(--hs-shadow-raised);
  font-family: var(--hs-font-ui);
  font-size: 13px;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  user-select: none;
  -webkit-user-select: none;
}

/* Keep the rim and replay stationary while the choices scroll on a phone. */
.proto-picker-options {
  display: flex;
  align-items: center;
  gap: 2px;
  min-width: 0;
  padding: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  scroll-padding-inline: 4px;
  border-radius: var(--hs-radius-pill);
  background: #00000004;
  box-shadow: var(--hs-shadow-inset);
}
.proto-picker-options::-webkit-scrollbar { display: none; }

.proto-picker-item {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: var(--hs-radius-pill);
  background: transparent;
  color: #626262;
  font: inherit;
  white-space: nowrap;
  cursor: pointer;
}
.proto-picker-item[data-active] {
  background: var(--hs-dark-face);
  box-shadow: var(--hs-dark-shadow);
  color: var(--hs-white);
}
.proto-picker-item:active {
  background: #0000000a;
  filter: none;
}
.proto-picker-item[data-active]:active { background: var(--hs-dark-pressed); }
.proto-picker-item:focus-visible {
  outline: 2px solid var(--hs-blue);
  outline-offset: 1px;
}

@media (hover: hover) and (pointer: fine) {
  .proto-picker-item:not([data-active]):hover { background: #00000006; color: var(--hs-black); }
  .proto-picker-item[data-active]:hover { background: var(--hs-dark-hover); box-shadow: var(--hs-dark-hover-shadow); }
  .proto-picker-item[data-active]:active { background: var(--hs-dark-pressed); }
}

.proto-picker-divider {
  flex: 0 0 1px;
  height: 20px;
  background: linear-gradient(transparent, #0000001f, transparent);
}
.proto-picker-replay { width: 44px; min-width: 44px; height: 44px; padding: 0; }
.proto-picker[data-position="top"] { bottom: auto; top: calc(18px + env(safe-area-inset-top, 0px)); }

@media (pointer: coarse) { .proto-picker-item { min-height: 44px; } }
@media (prefers-reduced-transparency: reduce) {
  .proto-picker { background: var(--hs-paper); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (forced-colors: active) {
  .proto-picker { background: Canvas; border: 1px solid CanvasText; }
  .proto-picker-item[data-active] { outline: 2px solid Highlight; outline-offset: -2px; }
}
