/* Old chat page (.chv-*) owner entry. Compact searchable combobox popover. */

/* hide the old identity switch; the new entry replaces it */
.chv-head .agh-as-btn {
  display: none !important;
}

.agh-sim-open {
  flex: 0 0 auto;
  position: relative;
  height: 28px;
  padding: 0 10px;
  margin-left: 6px;
  border: 1px solid rgba(7, 193, 96, .35);
  border-radius: 999px;
  background: #f2fbf6;
  color: #07883f;
  font: 600 12px/1 system-ui, -apple-system, sans-serif;
  align-self: center;
}
.agh-sim-open::after {
  content: "▾";
  margin-left: 4px;
  font-size: 9px;
  opacity: .7;
}
.agh-sim-open:focus-visible {
  outline: 2px solid #07c160;
  outline-offset: 2px;
}

.agh-sim-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 14px;
  border-top: 1px solid #f2e3bd;
  background: #fff9e8;
  color: #7a5a12;
  font: 12px/1.4 system-ui, -apple-system, sans-serif;
}
.agh-sim-chip[hidden] {
  display: none;
}
.agh-sim-chip b {
  font-weight: 600;
}
.agh-sim-chip button {
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: #efe2c2;
  color: #7a5a12;
  font-size: 15px;
  line-height: 1;
}

/* anchored popover: 300px wide, never a full-screen sheet */
.agh-sim-pop {
  box-sizing: border-box;
  position: fixed;
  z-index: 2147483000;
  display: none;
  flex-direction: column;
  max-height: 320px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, .18);
}
.agh-sim-pop.is-open {
  display: flex;
}
.agh-sim-pop-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px 6px;
}
.agh-sim-pop-head b {
  color: #111827;
  font: 600 13px/1.2 system-ui, -apple-system, sans-serif;
}
.agh-sim-pop-head button {
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 50%;
  background: #f3f4f6;
  color: #6b7280;
  font-size: 16px;
  line-height: 1;
}
.agh-sim-search-wrap {
  padding: 0 10px 8px;
}
.agh-sim-search {
  box-sizing: border-box;
  width: 100%;
  height: 32px;
  padding: 0 10px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f9fafb;
  font: 13px/1 system-ui, -apple-system, sans-serif;
}
.agh-sim-search:focus {
  outline: 2px solid #07c160 !important;
  outline-offset: 0;
  border-color: #07c160 !important;
  background: #fff !important;
  box-shadow: none !important;
}
.agh-sim-list {
  max-height: 200px;
  overflow: auto;
  padding: 0 6px;
}
.agh-sim-id {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  height: 36px;
  padding: 0 6px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  text-align: left;
}
.agh-sim-id:hover,
.agh-sim-id.is-active {
  background: #f3f4f6;
}
.agh-sim-id.is-on {
  background: #f0fbf5;
  box-shadow: inset 0 0 0 1px #07c160;
}
.agh-sim-id b {
  flex: 1;
  overflow: hidden;
  color: #111827;
  font: 600 13px/1.2 system-ui, -apple-system, sans-serif;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.agh-sim-av {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #eef2f7;
  color: #51607a;
  font: 600 11px/1 system-ui, -apple-system, sans-serif;
}
.agh-sim-tier {
  flex: 0 0 auto;
  padding: 2px 5px;
  border-radius: 999px;
  background: #f3e8ff;
  color: #7a3bb5;
  font: 600 9px/1 system-ui, -apple-system, sans-serif;
  font-style: normal;
}
.agh-sim-empty {
  padding: 18px 8px;
  color: #9ca3af;
  font: 12px/1.4 system-ui, -apple-system, sans-serif;
  text-align: center;
}
.agh-sim-pop-foot {
  padding: 6px;
  border-top: 1px solid #f1f3f5;
}
.agh-sim-pop-foot button {
  width: 100%;
  height: 30px;
  border: 0;
  border-radius: 8px;
  background: #fff;
  color: #07883f;
  font: 600 12px/1 system-ui, -apple-system, sans-serif;
}
.agh-sim-pop-foot button:hover {
  background: #f0fbf5;
}
