.smith-server-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-block: 0 14px;
}
.smith-server-tab,
.smith-server-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.25;
  border: 1px solid #a6bde4;
  background: #f1f6ff;
  color: #20477f;
  max-width: 100%;
  overflow-wrap: anywhere;
  text-align: center;
}
.smith-server-tab {
  min-height: 44px;
  padding-inline: 14px;
  border-radius: 10px;
  text-decoration: none;
}
.smith-server-tab[aria-current="page"] {
  border-color: #1e60c4;
  background: #1e60c4;
  /* Keep the selected tab readable over the panel-wide link color. */
  color: #fff !important;
}
.smith-server-tab:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}
.smith-server-tab:hover:not([aria-current="page"]) {
  border-color: currentColor;
}
.smith-server-badge {
  padding: 3px 7px;
  font-size: 0.72rem;
  border-radius: 7px;
}
html:is([data-theme="dark"],[data-smith-theme="dark"]) .smith-server-tab:not([aria-current="page"]),
html:is([data-theme="dark"],[data-smith-theme="dark"]) .smith-server-badge {
  background: #182c49;
  border-color: #365984;
  color: #b5d5ff;
}
html:is([data-theme="dark"],[data-smith-theme="dark"]) .smith-server-tab[aria-current="page"] {
  background: #245ec0;
  border-color: #75a9fb;
}

.smith-server-select {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  margin-block: 0 14px;
}
.smith-server-select label {
  flex: 1 1 auto;
  display: grid;
  min-width: 0;
  gap: 4px;
}
.smith-server-select select {
  min-width: 0;
  width: 100%;
  min-height: 44px;
  padding: 6px 10px;
  border: 1px solid #a6bde4;
  border-radius: 10px;
  background: #f1f6ff;
  color: #20477f;
  font: inherit;
}
html:is([data-theme="dark"],[data-smith-theme="dark"]) .smith-server-select select {
  color: #b5d5ff;
  background: #182c49;
  border-color: #365984;
}
.smith-server-apply {
  cursor: pointer;
  font-family: inherit;
  flex: 0 0 auto;
}
