@layer components {
  /* ── Page header ── */
  .page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: var(--s6);
    gap: var(--s4);
  }

  .page-title {
    font-family: var(--font-display);
    font-size: 35px;
    font-weight: 400;
    color: var(--ink-950);
    line-height: 1;
  }

  .page-subtitle {
    font-size: 14px;
    color: var(--ink-400);
    margin-top: 4px;
  }

  /* ── Stat cards ── */
  .stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--s3);
    margin-bottom: var(--s6);
  }

  .stat-card {
    background: #fff;
    border: 1px solid var(--ink-100);
    border-radius: var(--r-lg);
    padding: 14px 16px;
  }

  .stat-label {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--ink-400);
    margin-bottom: 6px;
  }

  .stat-value {
    font-family: var(--font-display);
    font-size: 29px;
    font-weight: 500;
    color: var(--ink-950);
    line-height: 1;
  }

  .stat-card.highlight {
    background: var(--forest-50);
    border-color: var(--forest-100);
  }

  .stat-card.highlight .stat-value {
    color: var(--forest-700);
  }

  /* ── Toolbar ── */
  .toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: var(--s4);
    flex-wrap: wrap;
  }

  .search-wrap {
    position: relative;
    flex: 1;
    min-width: 220px;
    max-width: 360px;
  }

  .search-input {
    font-family: var(--font-ui);
    font-size: 14px;
    color: var(--ink-800);
    background: #fff;
    border: 1px solid var(--ink-200);
    border-radius: var(--r-md);
    padding: 8px 12px 8px 34px;
    width: 100%;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
  }

  .search-input:focus {
    border-color: var(--forest-500);
    box-shadow: 0 0 0 3px var(--forest-100);
  }

  .search-input::placeholder {
    color: var(--ink-400);
  }

  .search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 15px;
    height: 15px;
    color: var(--ink-400);
    pointer-events: none;
  }

  .search-form {
    display: contents;
  }

  /* ── Table card ── */
  .table-card {
    background: #fff;
    border: 1px solid var(--ink-100);
    border-radius: var(--r-lg);
    overflow: hidden;
  }

  .table-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--ink-100);
    gap: 12px;
  }

  .table-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--ink-800);
  }

  .table-count {
    font-size: 13px;
    color: var(--ink-400);
    font-family: var(--font-mono);
  }

  /* ── User cell in table ── */
  .user-cell {
    display: flex;
    align-items: center;
    gap: 9px;
  }

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

  .user-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--ink-800);
    line-height: 1.3;
  }

  .user-email {
    font-size: 12px;
    color: var(--ink-400);
    font-family: var(--font-mono);
  }
}
