/* admin-top.css — sticky top bar with brand wordmark + auth status.
   Pinned to viewport top so the brand stays visible while scrolling. */

.admin-top {
  display: flex; align-items: center; gap: 14px;
  background: #fff;
  border: 1px solid #d9dce6;
  border-radius: 10px;
  padding: 10px 14px;
  flex-wrap: wrap;
  position: sticky; top: 0; z-index: 20;
  box-shadow: 0 1px 12px rgba(15, 17, 23, .06);
}
.admin-top h1 {
  font-size: 15px; font-weight: 600; color: #0f1117;
  display: flex; align-items: center; gap: 10px;
}
.admin-top h1 .brand {
  font-family: 'Alkatra', cursive;
  font-weight: 600;
  font-size: 22px;
  line-height: 1.1;
  color: #0f1117;
}
.admin-top h1 .brand-home { text-decoration: none; color: inherit; }
.admin-top .version-chip {
  font-size: 10px; font-weight: 400;
  color: #8a93a6;
  letter-spacing: 0.02em;
}

/* Auth status slot — far right, vertically centered. */
.admin-top .auth-status {
  display: flex; gap: 10px;
  align-items: center; justify-content: flex-end;
  margin-left: auto;
  font-size: 12px; color: #5a6172;
  min-width: 0; line-height: 1;
}
.admin-top .auth-status > * { align-self: center; }
.admin-top .auth-status:empty { display: none; }
.admin-top .auth-status-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #d9dce6;
  flex-shrink: 0;
  background: #f5f6fa;
  display: block;
}
.admin-top .auth-status-email {
  color: #0f1117; font-weight: 500;
  max-width: 240px; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap;
  display: inline-flex; align-items: center; line-height: 1;
}
.admin-top .auth-status-role {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0 8px; height: 18px;
  border-radius: 9px;
  border: 1px solid;
  line-height: 1;
  flex-shrink: 0;
}
.admin-top .auth-status-role-admin     { color: #1d3fa8; border-color: #bccfee; background: #eef3fc; }
.admin-top .auth-status-role-superuser { color: #7a4d00; border-color: #f4c87a; background: #fff4e0; }
.admin-top .auth-status-role-user      { color: #5a6172; border-color: #dde1ea; background: #f3f4f8; }
.admin-top .auth-status-signout {
  background: transparent; border: none; padding: 0;
  color: #5a6172; font-size: 12px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  display: inline-flex; align-items: center; line-height: 1;
}
.admin-top .auth-status-signout:hover { color: #0f1117; }
@media (max-width: 480px) {
  .admin-top .auth-status-email { display: none; }
}

/* Guard card surfaced when /api/auth/me reports no admin / signed-out. */
.auth-guard { margin: 14px 0; display: flex; justify-content: center; }
.auth-guard-card {
  max-width: 520px; width: 100%;
  background: #fff;
  border: 1px solid #d9dce6;
  border-radius: 10px;
  padding: 20px 24px;
  text-align: center;
  box-shadow: 0 1px 12px rgba(15, 17, 23, .04);
}
.auth-guard-title { font-size: 18px; font-weight: 600; color: #0f1117; margin-bottom: 8px; }
.auth-guard-detail { font-size: 13px; color: #5a6172; line-height: 1.5; }
.auth-guard-detail a { color: #2945d6; text-decoration: underline; }
