/* Shared native single-select treatment across client layouts.
   Keep native keyboard/touch behavior; multi-select listboxes are excluded. */
html body select:not([multiple]):not([size]), html body select[size="1"]:not([multiple]) {
 --tt-select-border: #36505c;
 appearance: none !important;
 -webkit-appearance: none !important;
 color-scheme: dark;
 border-color: var(--tt-select-border) !important;
 padding-right: 40px !important;
 background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%2336505c%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m6%209%206%206%206-6%22%2F%3E%3C%2Fsvg%3E") !important;
 background-position: right 14px center !important;
 background-repeat: no-repeat !important;
 background-size: 16px 16px !important;
 cursor: pointer;
}
html body select:not([multiple]):not([size]):hover:not(:disabled),
html body select[size="1"]:not([multiple]):hover:not(:disabled) {
 --tt-select-border:#607d89;
 background-color:#102832 !important;
 background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23607d89%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m6%209%206%206%206-6%22%2F%3E%3C%2Fsvg%3E") !important;
}
html body select:not([multiple]):not([size]):focus:not(:disabled),
html body select[size="1"]:not([multiple]):focus:not(:disabled) {
 --tt-select-border:#baff00;
 background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23baff00%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m6%209%206%206%206-6%22%2F%3E%3C%2Fsvg%3E") !important;
 outline:2px solid #baff00;
 outline-offset:2px;
}
html body select:not([multiple]):not([size]):disabled,
html body select[size="1"]:not([multiple]):disabled { cursor:not-allowed; }
html body select option, html body select optgroup { background:#091821; color:#edf3f6; }
@media (forced-colors:active) { html body select:not([multiple]):not([size]), html body select[size="1"]:not([multiple]) { appearance:auto !important; -webkit-appearance:auto !important; background-image:none !important; padding-right:8px !important; border-color:ButtonText !important; } }

/* Customizable native picker: keeps select semantics, keyboard and form behavior.
   Browsers without base-select retain their native system popup. */
@supports (appearance:base-select) {
 html body select:not([multiple]):not([size]),
 html body select[size="1"]:not([multiple]),
 html body select:not([multiple]):not([size])::picker(select),
 html body select[size="1"]:not([multiple])::picker(select) {
  appearance:base-select!important;
 }
 html body select::picker-icon { display:none; }
 html body select::picker(select) {
  margin-block:6px;
  padding:6px;
  border:1px solid #36505c;
  border-radius:12px;
  background:#091821;
  color:#edf3f6;
  box-shadow:0 12px 32px #0008;
  max-height:min(360px,60dvh);
  overflow-y:auto;
  scrollbar-width:thin;
  scrollbar-color:#36505c #091821;
 }
 html body select:not([multiple]):not([size]) option,
 html body select[size="1"]:not([multiple]) option {
  padding:10px 12px;
  min-height:40px;
  border:0;
  border-radius:7px;
  background:transparent;
  color:#edf3f6;
  cursor:pointer;
  white-space:normal;
  overflow-wrap:anywhere;
 }
 html body select:not([multiple]):is(:not([size]),[size="1"]) option:checked { background:#1c3016;color:#c9ff69;font-weight:600; }
 html body select:not([multiple]):is(:not([size]),[size="1"]) option:hover:not(:disabled),
 html body select:not([multiple]):is(:not([size]),[size="1"]) option:focus-visible { background:#2b431b;color:#d5ff8b;outline:none; }
 html body select:not([multiple]):is(:not([size]),[size="1"]) option::checkmark { color:#baff00; }
 html body select:not([multiple]):is(:not([size]),[size="1"]) option:disabled { opacity:.4;cursor:not-allowed; }
 html body select optgroup { padding:6px;color:#9db2bf;background:transparent; }
}

/* Center the selected value with both block and flex page-level select layouts. */
@supports (appearance:base-select) {
 html body select:not([multiple]):is(:not([size]),[size="1"]) {
  align-items:center !important;
  align-content:center !important;
 }
}
