.mypage-container {
  max-width: 1100px;
}

.compact-hero {
  padding-bottom: 16px;
}

.mypage-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.profile-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.profile-preview-wrap {
  width: 180px;
  height: 180px;
  margin: 8px auto 20px;
  position: relative;
}

.profile-image,
.profile-fallback {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #eef2ff;
  border: 1px solid rgba(99, 102, 241, 0.25);
}

.profile-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: 700;
  color: #4338ca;
}

.hidden {
  display: none;
}

.profile-meta {
  width: 100%;
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.profile-meta div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f8fafc;
}

.bio-preview {
  width: 100%;
  min-height: 72px;
  padding: 14px;
  border-radius: 14px;
  background: #f8fafc;
  white-space: pre-wrap;
}

.form-actions-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.helper-row {
  display: flex;
  justify-content: flex-end;
  color: #64748b;
  font-size: 0.9rem;
}

.inline-gap {
  margin-top: 18px;
}

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