.sidebar { overflow-y: auto; }
.sidebar .side-brand { margin-bottom: 0; }
.haru-account {
  margin: 16px 0 22px;
  padding: 16px 12px 0;
  border-top: 1px solid #47609a;
  color: #dce6ff;
  gap: 10px;
  position: relative;
}
.haru-account [hidden] { display: none !important; }
.haru-account .haru-account-identity {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  margin: 0 -8px;
  width: calc(100% + 16px);
  padding: 6px 8px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.haru-account .haru-account-identity:hover,
.haru-account .haru-account-identity[aria-expanded="true"] { background: rgba(255, 255, 255, .08); }
.haru-account-chevron {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin: 0 4px 4px auto;
  border-right: 2px solid #9fb2dd;
  border-bottom: 2px solid #9fb2dd;
  transform: rotate(45deg);
  transition: transform .15s;
}
.haru-account-identity[aria-expanded="true"] .haru-account-chevron { transform: translateY(4px) rotate(-135deg); }
.haru-account-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 4px;
  right: 4px;
  z-index: 20;
  display: grid;
  padding: 6px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(10, 22, 56, .35);
}
.haru-account .haru-account-menu button {
  padding: 9px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #24345c;
  text-align: left;
  font-size: .85rem;
  font-weight: 700;
  cursor: pointer;
}
.haru-account .haru-account-menu button:hover,
.haru-account .haru-account-menu button:focus-visible { background: #eef3ff; outline: none; }
.haru-account .haru-account-menu #haruLogout { color: #a92828; }
.haru-account .haru-account-menu #haruLogout { margin-top: 4px; border-top: 1px solid #e3e9f6; border-radius: 0 0 8px 8px; }
.haru-account-avatar {
  position: relative;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #ffc04c;
  color: #24345c;
  font-size: 1.2rem;
  font-weight: 850;
}
.haru-account-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.haru-account-details { display: grid; min-width: 0; line-height: 1.3; }
.haru-account-details strong { color: #fff; font-size: .95rem; overflow-wrap: anywhere; }
.haru-account-connected { color: #b9e7c7; font-size: .76rem; font-weight: 700; }
.haru-account-guest { margin: 0; color: #dce6ff; line-height: 1.4; }
.haru-account #haruLogin {
  display: block;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #7188bd;
  border-radius: 9px;
  background: #263f7d;
  color: #fff;
  text-align: left;
  font-size: .83rem;
  font-weight: 700;
  text-decoration: none;
}
.haru-account #haruLogin:hover { background: #3855a2; }
.haru-account #haruAuthStatus:empty { display: none; }
.haru-account #haruAuthStatus { color: #ffd9d9; }
