.header-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.patron-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 32px;
  padding: 0 10px 0 8px;
  border-radius: 999px;
  border: 1px solid #ff424d;
  background: #ff424d;
  color: #fff;
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 650;
  line-height: 1;
  letter-spacing: 0.01em;
  white-space: nowrap;
  flex-shrink: 0;
  text-shadow: none;
  box-shadow: none;
  -webkit-font-smoothing: antialiased;
}
.patron-login svg {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  fill: currentColor;
}
.patron-login:hover {
  background: #e23640;
  border-color: #e23640;
  color: #fff;
}
.patron-login[hidden] { display: none !important; }
.patron-chip {
  position: relative;
  flex-shrink: 0;
}
.patron-chip[hidden] { display: none !important; }
.patron-avatar {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  border: 2px solid var(--panel-edge);
  background: var(--chip);
  color: var(--text);
  cursor: pointer;
  display: grid;
  place-items: center;
  overflow: hidden;
  position: relative;
}
.patron-chip.is-paid .patron-avatar {
  border-color: #f96854;
  box-shadow: 0 0 0 2px rgba(249, 104, 84, 0.28);
}
.patron-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.patron-avatar img[hidden] { display: none !important; }
.patron-fallback {
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1;
}
.patron-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 50;
  min-width: 190px;
  max-width: min(260px, calc(100vw - 24px));
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--panel-edge);
  background: var(--panel);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
}
.patron-menu[hidden] { display: none !important; }
.patron-menu-name {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.patron-menu-tier {
  margin: 2px 0 10px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.patron-chip.is-paid .patron-menu-tier { color: #f96854; }
.patron-logout {
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 8px 12px;
  background: var(--chip);
  color: var(--text);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
}
.patron-logout:hover { background: var(--accent); color: #fff; }
.patron-logout:disabled { opacity: 0.6; cursor: default; }
@media (max-width: 720px) {
  .patron-login { height: 32px; padding: 0 9px 0 7px; font-size: 0.72rem; gap: 4px; }
  .patron-login svg { width: 12px; height: 12px; }
  .patron-avatar { width: 36px; height: 36px; }
  .patron-menu { right: 0; }
}
@media (max-width: 460px) {
  .patron-login-with { display: none; }
}
