/* GHL's user picker (public/user-picker.js): HLTag trigger, HLDropdown,
   AvatarOptions rows, HLAvatar / HLAvatarGroup. Sizes and colours are
   HighRise's, measured against the user's own GHL screenshots. */

/* HLAvatar */
.up-av {
  display: inline-flex; align-items: center; justify-content: center; flex: none; position: relative;
  border-radius: 50%; overflow: hidden; background: #f2f4f7; color: #475467; font-weight: 500;
}
.up-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.up-av-16 { width: 16px; height: 16px; font-size: 8px; line-height: 1; }
.up-av-24 { width: 24px; height: 24px; font-size: 10px; line-height: 1; }
.up-av-text { white-space: nowrap; letter-spacing: 0; }
.up-av-rest { background: #f2f4f7; }

/* HLAvatarGroup, 2xs, as GroupAvatarButton overrides it (gap 2px). */
.up-avgroup { display: inline-flex; align-items: center; gap: 2px; }

/* GroupAvatarButton: a round gray md HLTag with a dropdown chevron. */
.up-pill {
  display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 8px; max-width: 180px;
  border: 1px solid #d0d5dd; border-radius: 9999px; background: #fff; color: #475467;
  font: inherit; font-size: 13px; cursor: pointer; align-self: flex-start;
  transition: background-color .2s, border-color .2s, color .2s;
}
.up-pill:hover, .up-pill.is-open { background: #f2f4f7; border-color: #98a2b3; color: #1d2939; }
.up-pill:active { border-color: #475467; }
.up-pill:focus-visible { outline: none; box-shadow: 0 0 0 4px #d1e0ff; }
.up-pill:disabled { opacity: .6; cursor: not-allowed; }
.up-pill-chev { width: 16px; height: 16px; flex: none; }
.up-pill-ph {
  width: 16px; height: 16px; border-radius: 9999px; background: #f2f4f7; flex: none;
  display: inline-flex; align-items: center; justify-content: center; color: #475467;
}
.up-pill-ph svg { width: 12px; height: 12px; }

/* HLDropdown: 256px, at most 200px tall, search on top. */
.up-pop {
  position: fixed; z-index: 1200; width: 256px; max-height: 200px; box-sizing: border-box;
  display: flex; flex-direction: column; background: #fff; border: 1px solid #d0d5dd; border-radius: 8px;
  box-shadow: 0 12px 16px -4px rgba(16, 24, 40, .08), 0 4px 6px -2px rgba(16, 24, 40, .03);
  font-family: Inter, system-ui, sans-serif;
}
.up-search { position: relative; padding: 12px 8px 4px; flex: none; }
.up-search-ico { position: absolute; left: 15px; top: 17px; width: 14px; height: 14px; color: #344054; pointer-events: none; }
.up-search-input {
  width: 100%; height: 24px; box-sizing: border-box; padding: 0 8px 0 25px; border: 1px solid #d0d5dd;
  border-radius: 6px; background: #fff; color: #101828; font: inherit; font-size: 14px; outline: none;
}
.up-search-input::placeholder { color: #667085; }
.up-search-input:focus { border-color: #155eef; box-shadow: 0 0 0 4px #d1e0ff; }
.up-list { overflow-y: auto; padding: 4px 0; min-height: 0; }
.up-empty { padding: 0 8px; color: #667085; font-size: 13px; line-height: 28px; }

/* AvatarOptions */
.up-opt {
  display: flex; align-items: center; gap: 4px; width: 100%; box-sizing: border-box; padding: 4px 8px;
  border-radius: 6px; cursor: pointer; outline: none;
}
.up-opt:hover { background: #f9fafb; }
.up-opt:focus-visible { box-shadow: inset 0 0 0 2px #b2ccff; }
.up-opt.is-highlight, .up-opt.is-highlight:hover { background: #eff4ff; }
.up-opt-name {
  flex: 1; min-width: 0; max-width: 180px; color: #344054; font-size: 14px; font-weight: 500; line-height: 20px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* HLCheckbox, xs */
.up-cb {
  width: 14px; height: 14px; box-sizing: border-box; flex: none; margin-right: 4px; border: 1px solid #98a2b3;
  border-radius: 4px; background: #fff; display: inline-flex; align-items: center; justify-content: center;
  color: #fff; outline: none; transition: background-color .15s, border-color .15s;
}
.up-cb svg { width: 10px; height: 10px; stroke-width: 3; visibility: hidden; }
.up-cb.is-checked { background: #155eef; border-color: #155eef; }
.up-cb.is-checked svg { visibility: visible; }
.up-cb:focus { box-shadow: 0 0 0 4px #d1e0ff; }
.up-opt:hover .up-cb:not(.is-checked) { border-color: #155eef; }

/* HLAvatarGroup's tooltip and overflow popover */
.up-tip {
  position: fixed; z-index: 1300; pointer-events: none; padding: 8px 12px; border-radius: 8px;
  background: #101828; color: #fff; font-size: 14px; font-weight: 600; line-height: 20px; white-space: nowrap;
  box-shadow: 0 12px 16px -4px rgba(16, 24, 40, .08);
}
.up-rest {
  position: fixed; z-index: 1300; min-width: 250px; max-width: 500px; max-height: 300px; overflow-y: auto;
  box-sizing: border-box; padding: 8px; background: #fff; border: 1px solid #f2f4f7; border-radius: 4px;
  box-shadow: 0 12px 16px -4px rgba(16, 24, 40, .08); display: flex; flex-direction: column; gap: 8px;
}
.up-rest-item { display: flex; align-items: center; gap: 8px; color: #344054; font-size: 14px; }
