[data-site-view-menu] {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  max-inline-size: 100%;
  min-block-size: 44px;
  vertical-align: middle;
}
[data-site-view-menu]:empty { display: none; }

/* The native select covers the whole hit area and owns focus and platform menus. */
[data-site-view-menu] select.site-view-select {
  position: absolute;
  z-index: 1;
  inset: 0;
  box-sizing: border-box;
  inline-size: 100%;
  block-size: 100%;
  min-block-size: 44px;
  margin: 0;
  padding: 0;
  opacity: 0;
  font: inherit;
  font-size: 16px;
  cursor: pointer;
}
.site-view-face {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 32px;
  padding-inline: 9px 10px;
  border: 1px solid #cbd8ce;
  border-radius: 999px;
  background: #f0f4ef;
  color: #355b4a;
  font: 600 13px/1.2 system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  white-space: nowrap;
  pointer-events: none;
}
.site-view-face::after {
  content: '';
  width: 5px;
  height: 5px;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: translateY(-1px) rotate(45deg);
}
.site-view-icon { position: relative; width: 17px; height: 16px; flex: none; }
.site-view-icon::before, .site-view-icon::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  box-sizing: border-box;
}
.site-view-icon::before {
  top: 1px;
  width: 17px;
  height: 11px;
  border: 1.5px solid currentColor;
  border-radius: 2.5px;
}
.site-view-icon::after { top: 13px; width: 9px; height: 1.5px; background: currentColor; }
html[data-site-view="mobile"] .site-view-icon::before { top: 0; width: 11px; height: 16px; border-radius: 3px; }
html[data-site-view="mobile"] .site-view-icon::after { top: 12px; width: 3px; }
@media (hover: hover) {
  [data-site-view-menu] select:hover + .site-view-face { background: #e6eee6; border-color: #9cb6a1; }
}
[data-site-view-menu] select:focus-visible + .site-view-face { outline: 2px solid #356e58; outline-offset: 3px; }
@media (forced-colors: active) {
  .site-view-face { border-color: ButtonText; color: ButtonText; background: ButtonFace; }
  [data-site-view-menu] select:focus-visible + .site-view-face { outline-color: Highlight; }
}
