/* Profile avatar + dropdown — restored to the original map-topbar spec.
   Selectors stay shared (.profile-* / .pm-*) so index/listing/preview all
   render the same component; visual spec mirrors the pre-extraction
   .map-avatar / .map-profile-menu / .mpm-* design (commit 6fc6d6a). */

.profile-wrap {
  position: relative;
  display: inline-flex;
}

.profile-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--fg-strong);
  border: 1px solid var(--border);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: background .15s, border-color .15s;
}
.profile-circle:hover { background: var(--hover); border-color: #b8b8b8; }
.profile-circle:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}

.profile-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 240px;
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 6px;
  z-index: 40;
}

.pm-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 12px;
  border-bottom: 1px solid var(--border-soft);
  margin-bottom: 4px;
}
.pm-head-text { min-width: 0; flex: 1; }
.pm-head-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2px;
}
.pm-head-email {
  font-size: 14px;
  font-weight: 600;
  color: var(--fg-strong);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pm-list { list-style: none; }
.pm-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border: none;
  background: transparent;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  color: var(--fg);
  text-align: left;
  cursor: pointer;
  transition: background .12s;
}
.pm-item:hover { background: var(--hover); }
.pm-item .pm-icon { flex-shrink: 0; opacity: 0.75; }
.pm-item .pm-label { flex: 1; }

.pm-badge {
  flex-shrink: 0;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: var(--radius-pill);
  min-width: 20px;
  text-align: center;
}

.pm-divider {
  height: 1px;
  background: var(--border-soft);
  margin: 4px 0;
}

.pm-signout { color: var(--red); }
.pm-signout .pm-icon { opacity: 0.85; }
