.auth-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}
.signup-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  border-radius: 999px;
  color: var(--muted, #6b7280);
  border: 1px solid var(--line, #e5e7eb);
  background: var(--surface, #fff);
  font-weight: 800;
}
.public-account-menu { position: relative; }
.public-account-trigger {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 11px 4px 8px;
  border: 1px solid var(--line, #e5e7eb);
  border-radius: 999px;
  background: var(--surface, #fff);
  color: var(--text, #111827);
  font: inherit;
}
.public-account-trigger:hover { border-color: rgba(189,31,37,.28); background: var(--red-50, #fff1f2); }
.public-account-avatar {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #bd1f25, #641017);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(189,31,37,.18);
}
.public-account-avatar.large { width: 46px; height: 46px; flex-basis: 46px; font-size: 21px; }
.public-account-label { font-weight: 900; }
.public-account-arrow { color: var(--muted, #6b7280); }
.public-account-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 140;
  width: 270px;
  border: 1px solid var(--line, #e5e7eb);
  border-radius: 20px;
  background: var(--surface, #fff);
  box-shadow: 0 24px 60px rgba(15,23,42,.16);
  padding: 10px;
}
.public-account-dropdown[hidden] { display: none; }
.public-account-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  margin-bottom: 6px;
  border-radius: 15px;
  background: var(--surface-2, #f8fafc);
}
.public-account-summary strong,
.public-account-summary small { display: block; }
.public-account-summary small { color: var(--muted, #6b7280); }
.public-account-dropdown > a,
.public-account-dropdown > button {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border: 0;
  border-radius: 13px;
  background: transparent;
  color: var(--text, #111827);
  text-align: right;
  font: inherit;
}
.public-account-dropdown > a:hover,
.public-account-dropdown > button:hover { background: var(--surface-2, #f8fafc); }
.public-account-dropdown > button { color: #bd1f25; cursor: pointer; }
.drawer-auth-zone {
  display: grid;
  gap: 8px;
  margin: 12px 0;
  padding: 12px;
  border: 1px solid var(--line, #e5e7eb);
  border-radius: 17px;
  background: var(--surface-2, #f8fafc);
}
.mobile-auth-guest { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mobile-auth-guest a,
.mobile-account-link,
.mobile-logout-btn {
  min-height: 44px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line, #e5e7eb);
  background: var(--surface, #fff);
  color: var(--text, #111827);
  font: inherit;
  font-weight: 900;
}
.mobile-account-card { display: flex; align-items: center; gap: 10px; padding-bottom: 8px; }
.mobile-account-card strong,
.mobile-account-card small { display: block; }
.mobile-account-card small { color: var(--muted, #6b7280); }
.mobile-logout-btn { color: #bd1f25; cursor: pointer; }
html[data-theme="dark"] .public-account-trigger,
html[data-theme="dark"] .public-account-dropdown,
html[data-theme="dark"] .signup-link,
html[data-theme="dark"] .mobile-auth-guest a,
html[data-theme="dark"] .mobile-account-link,
html[data-theme="dark"] .mobile-logout-btn {
  background: #111827;
  border-color: #263244;
  color: #f8fafc;
}
html[data-theme="dark"] .public-account-summary,
html[data-theme="dark"] .drawer-auth-zone { background: #172031; border-color: #263244; }
@media (max-width: 760px) {
  .public-account-label { display: none; }
  .public-account-trigger { padding-inline: 6px; }
  .public-account-dropdown { left: -16px; width: min(280px, calc(100vw - 28px)); }
}
