/* Account navigation shares the main site's soft lilac palette. */
.header-auth {
  display: flex;
  align-items: center;
  gap: 17px;
  min-width: 0;
}
.account-login,
.account-signup,
.account-logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 500;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}
.account-login { color: #61556e; }
.account-dashboard { color: #6d507f; font-size: 12px; white-space: nowrap; font-weight: 550; }
.account-dashboard:hover { text-decoration: underline; }
.account-login:hover { color: #382b49; }
.account-signup {
  padding: 9px 19px;
  background: #ece6f3;
  border: 1px solid #e0d6e9;
  border-radius: 999px;
  color: #655079;
}
.account-signup:hover { background: #e3d8ef; border-color: #d5c4e3; }
.account-name {
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  color: #61556e;
}
.account-logout-form { margin: 0; flex-shrink: 0; }
.account-logout {
  padding: 7px 14px;
  border: 1px solid #ded6e6;
  border-radius: 999px;
  color: #6f607b;
  background: transparent;
}
.account-logout:hover { background: #f0eaf5; }
.account-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding: 12px 17px;
  border: 1px solid #e1d6eb;
  border-radius: 12px;
  background: #f2edf7;
  color: #61506f;
  font-size: 14px;
}
.account-notice svg { width: 18px; height: 18px; flex-shrink: 0; }
.account-notice p { margin: 0; }
@media (max-width: 1100px) {
  .site-header { gap: 20px; }
  .header-nav { gap: 22px; }
  .header-tools { gap: 18px; }
  .header-auth { gap: 12px; }
}
@media (max-width: 760px) {
  .site-header { column-gap: 14px; }
  .header-tools { gap: 8px; }
  .header-auth { gap: 10px; }
  .account-signup { padding-inline: 15px; }
}
@media (max-width: 640px) {
  .site-header { flex-wrap: wrap; }
  .header-tools { margin-left: auto; gap: 8px; }
  .header-tools .language-link { min-width: 36px; padding-inline: 3px; font-size: 12px; gap: 4px; }
  .header-tools .language-link svg { width: 13px; }
  .header-tools .language-link svg:last-child { display: none; }
  .header-auth { gap: 10px; }
  .account-login, .account-signup, .account-logout { font-size: 12px; }
  .account-signup { min-height: 38px; padding: 6px 12px; }
  .account-name { max-width: 80px; font-size: 12px; }
  .header-auth:has(.account-dashboard) .account-name { display: none; }
  .account-logout { padding-inline: 10px; }
  .account-notice { font-size: 13px; margin-bottom: 12px; }
}
@media (max-width: 359px) {
  .site-header .wordmark-text { font-size: 25px; }
  .site-header .wordmark { gap: 5px; }
  .header-tools { gap: 6px; }
  .header-auth { gap: 8px; }
  .account-signup { padding-inline: 9px; }
  .account-name { max-width: 62px; }
}
