#pvz-account-header {
  position: fixed;
  top: 10px;
  right: 10px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100vw - 20px);
  padding: 7px 9px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  background: rgba(21, 33, 24, 0.82);
  color: #fff;
  font: 12px/1.2 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

#pvz-account-header button,
#pvz-account-header a {
  border: 0;
  border-radius: 6px;
  padding: 5px 8px;
  background: #e9f5df;
  color: #173326;
  font: inherit;
  text-decoration: none;
}

#pvz-account-name {
  overflow: hidden;
  max-width: 220px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#pvz-account-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 20px;
  background:
    linear-gradient(rgba(15, 28, 18, 0.72), rgba(15, 28, 18, 0.72)),
    url("account-assets/title.png") center 14% / min(340px, 70vw) auto no-repeat,
    #16231a;
  color: #1d2921;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.pvz-account-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(14, 24, 17, 0.68);
  color: #1d2921;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.pvz-account-panel {
  width: min(380px, calc(100vw - 32px));
  margin-top: 120px;
  border-radius: 8px;
  background: #f7f8f3;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.32);
  padding: 18px;
}

.pvz-account-dialog {
  margin-top: 0;
}

.pvz-account-panel h1 {
  margin: 0 0 4px;
  font-size: 20px;
}

.pvz-account-panel p {
  margin: 0 0 14px;
  color: #526157;
}

.pvz-account-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.pvz-account-tabs button,
.pvz-account-panel button {
  min-height: 38px;
  border: 1px solid #b9c7bc;
  border-radius: 6px;
  background: #fff;
  color: #1d2921;
  font: inherit;
}

.pvz-account-tabs button.active,
.pvz-account-panel button.primary {
  border-color: #28634b;
  background: #28634b;
  color: #fff;
}

.pvz-account-form {
  display: grid;
  gap: 10px;
}

.pvz-account-form input {
  width: 100%;
  min-height: 40px;
  border: 1px solid #b9c7bc;
  border-radius: 6px;
  padding: 8px 10px;
  font: inherit;
}

.pvz-account-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

#pvz-account-error {
  min-height: 18px;
  color: #a33131;
  font-size: 13px;
}

@media (max-width: 520px) {
  #pvz-account-header {
    left: 10px;
    right: 10px;
  }

  #pvz-account-name {
    max-width: none;
    flex: 1;
  }
}
