body.account-page {
  background: #ededed;
  color: #111111;
}

.account-header-title {
  height: 42px;
  border: 1px solid #1f1f1f;
  border-radius: 8px;
  background: #101010;
  color: #f0f0f0;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 0.85rem;
  font-size: 0.98rem;
  font-weight: 600;
}

.account-hero {
  border: 1px solid #dadada;
  border-radius: 14px;
  background: #f8f8f8;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.12);
  padding: 1.2rem;
}

.account-back-link {
  color: #4b4b4b;
  text-decoration: none;
  font-size: 0.9rem;
}

.account-back-link:hover {
  text-decoration: underline;
}

.account-identity {
  margin-top: 0.85rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.9rem;
}

.account-avatar {
  width: 66px;
  height: 66px;
  border-radius: 999px;
  background: linear-gradient(145deg, #111827, #354357);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 1.45rem;
  font-weight: 700;
}

.account-avatar-wrap {
  width: 66px;
  height: 66px;
  position: relative;
}

.account-avatar-img {
  position: absolute;
  inset: 0;
  width: 66px;
  height: 66px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid #d2d2d2;
  background: #f2f2f2;
}

.avatar-upload-btn {
  display: none;
}

.avatar-hover-cta {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(10, 14, 22, 0.54);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 170ms ease;
}

.account-avatar-wrap:hover .avatar-hover-cta,
.account-avatar-wrap:focus-within .avatar-hover-cta {
  opacity: 1;
  pointer-events: auto;
}

.account-main-meta h1 {
  margin: 0;
  color: #111111;
  font-size: 1.7rem;
}

.account-main-meta p {
  margin: 0.3rem 0 0;
  color: #5a5a5a;
}

.account-main-actions {
  display: flex;
  gap: 0.5rem;
}

.account-action-btn {
  min-width: 136px;
  border-radius: 8px;
  border: 1px solid #111827;
  background: #111827;
  color: #ffffff;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.55rem 0.7rem;
  cursor: pointer;
}

.account-action-btn.secondary {
  border-color: #d7d7d7;
  background: #ffffff;
  color: #1f1f1f;
}

.account-stats {
  margin-top: 0.95rem;
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
}

.stat-chip {
  border: 1px solid #d8d8d8;
  border-radius: 10px;
  background: #ffffff;
  padding: 0.6rem 0.7rem;
  display: grid;
  gap: 0.18rem;
}

.stat-chip span {
  font-size: 0.78rem;
  color: #5f5f5f;
}

.stat-chip strong {
  font-size: 1.08rem;
  color: #171717;
}

.account-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.account-card {
  border: 1px solid #dbdbdb;
  border-radius: 12px;
  background: #f8f8f8;
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.1);
  padding: 0.95rem;
}

.account-card h2 {
  margin: 0;
  font-size: 1.03rem;
}

.account-list {
  margin-top: 0.75rem;
  display: grid;
  gap: 0.5rem;
  max-height: 360px;
  overflow: auto;
}

.account-list-item {
  border: 1px solid #e2e2e2;
  border-radius: 9px;
  background: #ffffff;
  padding: 0.55rem 0.62rem;
}

.account-list-item-main {
  font-size: 0.87rem;
  color: #171717;
  font-weight: 600;
}

.account-list-item-sub {
  margin-top: 0.2rem;
  font-size: 0.78rem;
  color: #666666;
}

.account-list-item-actions {
  margin-top: 0.42rem;
  display: flex;
  gap: 0.44rem;
}

.account-detail-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  border: 1px solid #d3d3d3;
  border-radius: 999px;
  background: #ffffff;
  color: #1f1f1f;
  padding: 0.2rem 0.55rem;
  text-decoration: none;
  font-size: 0.74rem;
  font-weight: 600;
}

.account-message {
  margin: 0.95rem 0 0;
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 0.58rem 0.68rem;
  font-size: 0.84rem;
}

.account-message[data-kind="warn"] {
  border-color: #f2d9a5;
  background: #fff7e8;
  color: #7f5c10;
}

.account-message[data-kind="ok"] {
  border-color: #b9e4cd;
  background: #eefaf3;
  color: #186840;
}

@media (max-width: 1080px) {
  .account-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 920px) {
  .account-header-title {
    display: none;
  }
}

@media (max-width: 780px) {
  .account-identity {
    grid-template-columns: 1fr;
    justify-items: start;
  }
  .account-stats {
    grid-template-columns: 1fr 1fr;
  }
}
