/* Profile more menu + toast. Sheet visuals come from report-sheet.css. */
/* Live profile: docked 举报 row and fallback 更多 float. Body-level only. */
.aibuy-profile-menu-dock {
  position: fixed;
  z-index: 40;
  box-sizing: border-box;
  padding: 0 6px 6px;
  border: 1px solid var(--line, #d7e1da);
  border-top-color: transparent;
  border-radius: 0 0 14px 14px;
  background: var(--card, #fff);
  box-shadow: 0 10px 32px #00000020;
  opacity: 0;
  transform: translateY(-4px);
  transform-origin: top center;
  transition: opacity 220ms ease, transform 220ms ease;
  pointer-events: auto;
}
.aibuy-profile-menu-dock.is-open {
  opacity: 1;
  transform: none;
}
.aibuy-profile-menu-dock::before {
  content: "";
  display: block;
  height: 0;
  margin: 2px 12px 4px;
  border-top: 1px solid var(--line, #d7e1da);
}
.aibuy-profile-menu-dock button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 45px;
  padding: 10px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink, #23392d);
  font: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}
.aibuy-profile-menu-dock button.is-danger { color: #d45050; }
.aibuy-profile-menu-dock button:hover { background: var(--paper, #edf3ef); }
.aibuy-profile-more-float {
  position: fixed;
  z-index: 30;
  margin: 0;
}


.aibuy-profile-more {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line, #dce3dd);
  border-radius: 999px;
  background: var(--card, #fff);
  color: var(--ink, #20382b);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 220ms ease, border-color 220ms ease;
}
.aibuy-profile-more:hover {
  border-color: color-mix(in srgb, var(--teal, #247b89) 40%, var(--line, #dce3dd));
}
.aibuy-profile-more-menu {
  position: fixed;
  z-index: 1200;
  min-width: 0;
  width: max-content;
  padding: 4px;
  border: 1px solid var(--line, #dce3dd);
  border-radius: 14px;
  background: var(--card, #fff);
  box-shadow: 0 12px 32px rgb(16 39 30 / .14);
  opacity: 0;
  transform: translateY(-4px) scale(.98);
  transform-origin: top right;
  transition: opacity 220ms ease, transform 220ms ease;
}
.aibuy-profile-more-menu.is-open {
  opacity: 1;
  transform: none;
}
.aibuy-profile-more-menu button {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 9px 14px;
  border-radius: 10px;
  font: inherit;
  font-size: 14px;
  white-space: nowrap;
  cursor: pointer;
  color: var(--ink, #20382b);
}
.aibuy-profile-more-menu button:hover {
  background: #f3f7f6;
}
.aibuy-profile-more-menu button.is-danger {
  color: #a0453a;
}
.aibuy-user-report-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 1300;
  transform: translateX(-50%) translateY(8px);
  background: #163028;
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 13px;
  opacity: 0;
  transition: opacity 220ms ease, transform 220ms ease;
}
.aibuy-user-report-toast.is-open {
  opacity: 1;
  transform: translateX(-50%);
}
.aibuy-sheet-overlay {
  opacity: 0;
  transition: opacity 220ms ease;
}
.aibuy-sheet-overlay.is-open { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .aibuy-profile-more-menu,
  .aibuy-sheet-overlay,
  .aibuy-user-report-toast,
  .aibuy-profile-more,
  .aibuy-profile-menu-dock {
    transition: none;
  }
}

/* Preview-only profile shell */
.aibuy-profile-page {
  max-width: 640px;
  margin: 0 auto;
  padding: 28px 20px 80px;
}
.aibuy-profile-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.aibuy-profile-id {
  display: flex;
  gap: 14px;
  align-items: center;
  min-width: 0;
}
.aibuy-profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #dbe7e2;
  color: #285441;
  display: grid;
  place-items: center;
  font-weight: 650;
  font-size: 22px;
  flex: none;
}
.aibuy-profile-id h1 {
  margin: 0 0 4px;
  font-size: 22px;
  font-weight: 650;
  color: #20382b;
}
.aibuy-profile-id p {
  margin: 0;
  color: #6a7a72;
  font-size: 13px;
}
.aibuy-profile-bio {
  margin: 18px 0 0;
  font-size: 14px;
  line-height: 1.75;
  color: #20382b;
}
@media (max-width: 640px) {
  .aibuy-profile-page { padding: 20px 16px 64px; }
  .aibuy-profile-avatar { width: 56px; height: 56px; font-size: 18px; }
}
