header {
  padding-inline: clamp(1rem, 4vw, 3.5rem);
}
#nav { margin-inline-start: auto; }
.wide-nav { display: flex; gap: .65rem; }
.profile { position: relative; }
.profile-trigger {
  padding: 0;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid #8da397;
  border-radius: 50%;
}
.profile-trigger:hover, .profile-trigger[aria-expanded="true"] { border-color: white; }
.profile-avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e7eab4, #99ccb5);
  color: #193a2b;
  font-weight: 700;
}
.profile-panel {
  position: absolute;
  z-index: 10;
  inset-inline-end: 0;
  top: calc(100% + .6rem);
  width: min(19rem, calc(100vw - 2rem));
  max-height: calc(100dvh - 5.5rem);
  overflow: auto;
  padding: .6rem;
  background: #fff;
  color: #1b2621;
  border: 1px solid #d7ded6;
  border-radius: 1rem;
  box-shadow: 0 12px 36px #10241928;
}
.profile-identity {
  display: grid;
  justify-items: center;
  gap: .2rem;
  padding: 1rem;
  background: #edf3ec;
  border-radius: .65rem;
  text-align: center;
  overflow-wrap: anywhere;
}
.profile-identity .profile-avatar { width: 54px; height: 54px; font-size: 1.25rem; margin-bottom: .25rem; }
.profile-identity strong, .profile-identity small { max-width: 100%; }
.profile-role {
  font-size: .8rem;
  font-weight: 600;
  color: #285e44;
  padding: .12rem .6rem;
  border: 1px solid #b4cab9;
  border-radius: 1rem;
  margin-top: .3rem;
}
.profile-wallet { display: flex; justify-content: space-between; align-items: baseline; gap: .6rem; padding: .8rem .6rem; }
.profile-wallet strong { color: #215e44; }
.profile-links, .profile-exit { padding-top: .25rem; border-top: 1px solid #dbe0d9; }
.profile-panel button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  color: #1b382a;
  border: 0;
  text-align: start;
}
.profile-links button::after { content: '›'; color: #557263; }
.profile-panel button:hover, .profile-panel button:focus-visible { background: #edf3ec; }
@media (max-width: 760px) {
  .wide-nav { display: none; }
  header { flex-wrap: nowrap; }
  header > a { font-size: 1.1rem; }
}
