.pageHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  padding: 20px;
  border-bottom: 1px solid #eae9e7;
  flex-shrink: 0;

  @media (max-width: 768px) {
    padding: 12px;
    gap: 6px;
  }
}

.leading {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.leadingTop {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  width: 100%;
  min-width: 0;
}

.breadcrumbHeader {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  flex: 1;
  min-width: 0;
  flex-wrap: wrap;
}

.breadcrumbParent {
  color: #999;
  font-weight: 400;
}

.breadcrumbSeparator {
  color: #ccc;
  margin: 0 4px;
}

.breadcrumbCurrent {
  color: #333;
  font-weight: 600;
  font-size: 20px;
}

.center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.extra {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

@media (max-width: 768px) {
  .pageHeader {
    padding: 12px 16px;
    flex-wrap: wrap;
    gap: 8px;
  }

  .leading {
    width: 100%;
    min-width: 0;
  }

  .breadcrumbHeader {
    flex-wrap: wrap;
    gap: 4px 8px;
  }

  .breadcrumbParent {
    font-size: 14px;
  }

  .breadcrumbSeparator {
    margin: 0 4px;
  }

  .breadcrumbCurrent {
    font-size: 16px;
  }

  .extra {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px;
  }
}

/* ─── Dark mode ─────────────────────────────────────────────────────────────── */
:global(.dark-mode) {
  .pageHeader {
    border-bottom-color: rgba(255, 255, 255, 0.12);
  }

  .breadcrumbParent {
    color: rgba(255, 255, 255, 0.35);
  }

  .breadcrumbSeparator {
    color: rgba(255, 255, 255, 0.2);
  }

  .breadcrumbCurrent {
    color: rgba(255, 255, 255, 0.85);
  }
}
