.ng-server-search {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;

  width: 12rem;
  height: 2rem;
  padding: 0 .65rem 0 .75rem;

  border: 1px solid rgba(255,255,255,.18);
  border-radius: 4px;

  background: rgba(255,255,255,.08);
  color: var(--md-primary-bg-color);

  cursor: pointer;
  font-family: "Roboto", sans-serif;

  margin-left: 0.5rem;
  margin-right: 0.75rem;
  flex-shrink: 0;
  align-self: center;

  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.ng-server-search:hover,
.ng-server-search:focus-visible {
  background: rgba(255,255,255,.16);
  border-color: rgba(255,255,255,.30);
  outline: none;
}

.ng-server-search__button-label {
  flex: 0 1 auto;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-align: left;
  margin-right: .75rem;
  font-size: .8rem;
  font-weight: 400;
  opacity: .75;
}

.ng-server-search__button-icon,
.ng-server-search__input-icon {
  fill: none;
  stroke: currentColor;
  stroke-width: 0.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.ng-server-search__button-icon {
  width: 1rem;
  height: 1rem;
  margin-left: 0;
  flex-shrink: 0;
}

.ng-server-search__overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  padding: 0;
  background: rgba(0,0,0,.45);
}

.ng-server-search__overlay:not([hidden]) {
  display: block;
}

.ng-server-search__dialog {
  position: fixed;
  width: 12rem;
  max-width: calc(100vw - 4rem);
  max-height: min(36rem, calc(100vh - 6rem));
  overflow: hidden;
  background: var(--md-default-bg-color);
  border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: 6px;
  box-shadow: 0 1rem 3rem rgba(0,0,0,.25);
  transition: width 250ms cubic-bezier(0.1, 0.7, 0.1, 1);
}

.ng-server-search__overlay:not([hidden]) .ng-server-search__dialog {
  width: 44rem;
  max-width: calc(100vw - 4rem);
}

.ng-server-search__bar {
  display: flex;
  align-items: center;
  gap: .65rem;
  min-height: 3.1rem;
  padding: 0 .85rem;
  border-bottom: 1px solid var(--md-default-fg-color--lightest);
}

.ng-server-search__input-icon {
  width: 1.05rem;
  height: 1.05rem;
  color: var(--md-default-fg-color--light);
}

.ng-server-search__input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  color: var(--md-default-fg-color);
  font: inherit;
  padding: .85rem 0;
}

.ng-server-search__input:focus {
  outline: 0;
}

.ng-server-search__close {
  padding: .32rem .45rem;
  background: var(--md-default-fg-color--lightest);
  border: 0;
  border-radius: 4px;
  color: var(--md-default-fg-color--light);
  cursor: pointer;
  font: inherit;
  font-size: .58rem;
}

.ng-server-search__close:hover,
.ng-server-search__close:focus {
  color: var(--md-default-fg-color);
  outline: 0;
}

.ng-server-search__results {
  max-height: 30rem;
  overflow: auto;
  padding: .4rem 0;
}

.ng-server-search__status {
  padding: .7rem 1rem;
  border-top: 1px solid var(--md-default-fg-color--lightest);
  color: var(--md-default-fg-color--lighter);
  font-size: .68rem;
  text-align: center;
}

.ng-server-search__result {
  display: block;
  padding: .65rem 1rem;
  color: var(--md-default-fg-color);
  text-decoration: none;
}

.ng-server-search__result:hover,
.ng-server-search__result:focus {
  background: var(--md-default-fg-color--lightest);
  outline: 0;
}

.ng-server-search__title {
  display: block;
  font-weight: 700;
  line-height: 1.35;
}

.ng-server-search__location {
  display: block;
  margin-top: .32rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--md-default-fg-color--lighter);
  font-size: .52rem;
  line-height: 1.3;
}

.ng-server-search__title mark,
.ng-server-search__match mark {
  background: var(--md-accent-fg-color--transparent);
  color: inherit;
}

.ng-server-search__matches {
  display: block;
  margin-top: .35rem;
}

.ng-server-search__match {
  display: block;
  color: var(--md-default-fg-color--light);
  font-size: .66rem;
  line-height: 1.4;
}

.ng-server-search__match + .ng-server-search__match {
  margin-top: .18rem;
}

.ng-server-search__empty {
  padding: 1rem;
  color: var(--md-default-fg-color--light);
}