/* The box reads like the settings pickers above it: the label inside, in
   the label color, then what is picked. */
.invite-field {
  position: relative;
  max-width: 32rem;
}
.invite-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem;
  min-height: 2rem;
  padding: 0.1875rem 0.5rem 0.1875rem 0.75rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  background: var(--bg);
  font-size: 0.8125rem;
  cursor: text;
}
.invite-box:focus-within {
  border-color: var(--ink-faint);
}
.invite-label {
  color: var(--ink-soft);
}
.invite-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.125rem;
  height: 1.375rem;
  padding: 0 0.125rem 0 0.5rem;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  color: var(--ink);
  font-weight: var(--weight-medium);
}
.invite-chip-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.125rem;
  height: 1.125rem;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink-dim);
  font: inherit;
  line-height: 1;
  cursor: pointer;
}
.invite-chip-x:hover {
  color: var(--ink);
}
.invite-input.invite-input {
  flex: 1 1 6rem;
  min-width: 6rem;
  height: 1.5rem;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--ink);
  font: inherit;
  outline: none;
}
.invite-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  min-width: 15rem;
  padding: 0.25rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  background: var(--bg);
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.12);
}
.invite-option {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 0.5rem;
  width: 100%;
  height: auto;
  min-height: 0;
  padding: 0.4375rem 0.625rem;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.8125rem;
  text-align: left;
  cursor: pointer;
}
.invite-option.is-active,
.invite-option:hover {
  background: var(--bg-soft);
}
.invite-option-detail {
  color: var(--ink-dim);
}

/* Big enough that a phone doesn't zoom into the field. */
@media (pointer: coarse) {
  .invite-input.invite-input {
    font-size: 16px;
  }
}
