.account-nav {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 8px;
  padding-bottom: 7px;
  border-bottom: 1px solid #343434;
  color: #fff;
  font-size: 0.95rem;
}

.account-nav [hidden] { display: none; }

.account-nav a,
.account-nav button,
.account-menu summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 10px;
  color: inherit;
}

.account-nav > a,
.account-menu summary {
  background: #191919;
  border: 1px solid #494949;
  border-radius: 5px;
  font-weight: 600;
}

.account-nav a:hover,
.account-nav button:hover,
.account-menu summary:hover { text-decoration: underline; }

.account-nav .account-primary {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  font-weight: 700;
}

.account-menu summary { cursor: pointer; list-style: none; gap: 8px; }
.account-menu summary::-webkit-details-marker { display: none; }
.account-menu summary::after {
  content: '';
  width: 6px;
  height: 6px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}
.account-menu[open] summary::after { transform: rotate(225deg); }
.account-menu-panel {
  position: absolute;
  inset: calc(100% - 4px) 0 auto 0;
  padding: 4px;
  background: #fffdf7;
  color: var(--ink);
  border: 1px solid #dce1e7;
  border-radius: 5px;
  box-shadow: 0 6px 15px #14233840;
}
.account-menu-panel a,
.account-menu-panel button {
  width: 100%;
  justify-content: flex-start;
  white-space: nowrap;
}

.account-menu-panel a:hover,
.account-menu-panel button:hover { background: #f2eee5; }

@media (max-width: 430px) {
  .account-nav { font-size: 0.875rem; }
  .account-nav a, .account-nav button, .account-menu summary { padding-inline: 8px; }
}
