@layer components {
  /* ── Participant detail layout ── */
  .participant-detail-layout {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 0;
    border: 1px solid var(--ink-100);
    border-radius: var(--r-lg);
    overflow: hidden;
    background: #fff;
  }

  .participant-info-col {
    border-right: 1px solid var(--ink-100);
  }

  /* ── Identity block ── */
  .participant-identity {
    display: flex;
    align-items: center;
    gap: 14px;
  }

  .participant-avatar-img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
  }

  .participant-avatar-placeholder {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--forest-100);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 500;
    color: var(--forest-700);
    flex-shrink: 0;
  }

  .participant-fullname {
    font-size: 16px;
    font-weight: 500;
    color: var(--ink-900);
  }

  .participant-email {
    font-size: 13px;
    color: var(--ink-400);
    font-family: var(--font-mono);
    margin-top: 2px;
  }

  .participant-bio {
    font-size: 14px;
    color: var(--ink-600);
    line-height: 1.6;
  }

  .participant-bio p { margin: 0 0 8px; }
  .participant-bio p:last-child { margin-bottom: 0; }

  /* ── Category upload sections ── */
  .category-upload-section {
    margin-bottom: 16px;
  }

  .category-upload-section:last-child {
    margin-bottom: 0;
  }

  .category-upload-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
  }

  .category-upload-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--ink-700);
  }

  .category-upload-count {
    font-size: 12px;
    color: var(--ink-400);
    font-family: var(--font-mono);
  }

  .category-thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(56px, 1fr));
    gap: 6px;
  }

  .category-thumbnail-grid .upload-thumbnail {
    width: 100%;
    height: 42px;
  }

  .category-thumbnail-grid .upload-thumbnail-placeholder {
    width: 100%;
    height: 42px;
  }

  .category-thumbnail-grid a {
    display: block;
    border-radius: var(--r-sm);
    overflow: hidden;
    transition: opacity 0.12s;
  }

  .category-thumbnail-grid a:hover {
    opacity: 0.8;
  }

  /* ── Management section ── */
  .participant-management {
    margin-top: var(--s6);
    padding: 20px 22px;
    background: var(--ink-50);
    border: 1px solid var(--ink-100);
    border-radius: var(--r-lg);
  }

  .management-actions {
    display: flex;
    gap: 8px;
    align-items: center;
  }

  .management-actions .delete-btn {
    margin-left: auto;
  }

  /* ── Responsive ── */
  @media (max-width: 900px) {
    .participant-detail-layout {
      grid-template-columns: 1fr;
    }

    .participant-info-col {
      border-right: none;
      border-bottom: 1px solid var(--ink-100);
    }
  }
}
