/* Shared geometry for native single-choice menus, including dynamic readers.
   Keep component colors, fonts and widths; only remove platform menu chrome.
   Listboxes (multiple or size > 1) deliberately retain their native behavior. */
select:not([multiple]):not([size]),
select:not([multiple])[size="0"],
select:not([multiple])[size="1"] {
  -webkit-appearance:none;
  appearance:none;
  box-sizing:border-box;
  height:var(--select-height,40px);
  min-height:var(--select-height,40px);
  line-height:20px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  padding-block:calc((var(--select-height,40px) - 22px)/2);
  padding-inline:var(--select-padding,10px) var(--select-arrow-space,32px);
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23818a98' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right var(--select-padding,10px) center;
}
select:not([multiple]):not([size]):dir(rtl),
select:not([multiple])[size="0"]:dir(rtl),
select:not([multiple])[size="1"]:dir(rtl) {
  background-position:left var(--select-padding,10px) center;
}

/* Each component keeps its established scale rather than inheriting an OS size. */
.language-control select {--select-height:34px;--select-padding:8px;--select-arrow-space:28px}
.sweep-nav select {--select-height:36px}
.ws-dialog select {--select-height:32px;--select-padding:7px;--select-arrow-space:28px}
.vs-dialog select {--select-height:36px}
.vs-performance-boards select {--select-height:26px;--select-padding:8px;--select-arrow-space:28px}
.log-viewer select {--select-height:34px;--select-padding:6px;--select-arrow-space:28px}
/* Existing navigation width/padding is intentionally compact and !important. */
.log-navigation select:not([multiple]):not([size]),
.log-navigation select:not([multiple])[size="0"],
.log-navigation select:not([multiple])[size="1"] {padding-inline:6px 28px!important}

/* Match the text inputs next to the normalized editor and event-filter menus. */
.field input:not([type=checkbox]):not([type=radio]):not([type=range]),
.wm-event-controls input {
  height:40px;
  min-height:40px;
  line-height:20px;
  padding-block:9px;
}
