#domain-hint {
  font-size: 14px;
  color: #c88ef8;
  margin-top: 2px;
  line-height: 1.3;
}
.skill-grid-wrapper {
  margin-top: 16px;
  width: 100%;
  overflow-x: auto;
}

.skill-table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  font-size: 13px;

  // ── Header ──────────────────────────────────────────
  thead tr {
    background-color: var(--bg-subtle);
    border-bottom: 1px solid var(--border-subtle);
  }

  thead th {
    padding: 10px 14px;
    text-align: left;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.6px;
    color: var(--text-secondary);
    white-space: nowrap;
    border: none;
  }

  // ── Body Rows ────────────────────────────────────────
  tbody {
    background-color: var(--bg-surface);
  }

  tbody tr.skill-row {
    border-bottom: 1px solid var(--border-subtle);
    transition: background 0.15s ease;

    &:hover {
      background-color: var(--bg-muted);
    }
  }

  tbody td {
    padding: 12px 14px;
    vertical-align: middle;
    color: var(--text-primary);
  }
}

// ── Column widths ────────────────────────────────────
.col-skill     { min-width: 180px; }
.col-scope     { min-width: 90px; }
.col-level     { min-width: 130px; }
.col-status    { min-width: 130px; }
.col-assessed  { min-width: 110px; }
.col-review    { min-width: 110px; }
.col-training  { min-width: 110px; }
.col-actions   { min-width: 80px; text-align: center; }

// ── Skill Name Cell ──────────────────────────────────
.skill-name-cell {
  display: flex;
  align-items: center;
  gap: 6px;

  .star-icon {
    color: #f5a623;
    font-size: 14px;
    flex-shrink: 0;
  }

  .skill-code {
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 500;
    white-space: nowrap;
  }

  .skill-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 13px;
  }
}

// ── Scope Text ───────────────────────────────────────
.scope-text {
  color: var(--text-secondary);
  font-size: 12px;
}

// ── Level Bars ───────────────────────────────────────
.level-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.level-bars {
  display: flex;
  gap: 3px;
  align-items: center;
}

.level-bar {
  display: inline-block;
  width: 22px;
  height: 8px;
  border-radius: 2px;
  background-color: var(--border-subtle);

  &.active {
    background-color: #2d7dd2;
  }

  &.over-max {
    background-color: #e8724a;
  }
}

.level-label {
  font-size: 12px;
  font-weight: 700;
  color: #2d7dd2;
  min-width: 22px;

  &.over {
    color: #e8724a;
  }
}

// ── Status Badges ─────────────────────────────────────
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;

  .status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
  }

  &.status-current {
    border: 1.5px solid #27ae60;
    color: #27ae60;
    background: rgba(39, 174, 96, 0.06);
    .status-dot { background-color: #27ae60; }
  }

  &.status-training {
    border: 1.5px solid #f0a500;
    color: #c68400;
    background: rgba(240, 165, 0, 0.07);
    .status-dot { background-color: #f0a500; }
  }

  &.status-not-assessed {
    border: 1.5px solid var(--border-subtle);
    color: var(--text-secondary);
    background: var(--bg-muted);
    .status-dot { background-color: var(--text-secondary); }
  }

  &.status-expired {
    border: 1.5px solid #e74c3c;
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.07);
    .status-dot { background-color: #e74c3c; }
  }
}

// ── Date Text ─────────────────────────────────────────
.date-text {
  font-size: 12.5px;
  color: var(--text-primary);
}

.review-date {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1.5px solid #e74c3c;
  color: #e74c3c;
  font-weight: 600;
  font-size: 12px;
}

.training-date {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1.5px solid #f0a500;
  color: #c68400;
  font-weight: 600;
  font-size: 12px;
}

.dash {
  color: var(--text-secondary);
  font-size: 14px;
}

// ── Action Buttons ────────────────────────────────────
.action-icons {
  display: flex;
  gap: 6px;
  justify-content: center;
  align-items: center;
}

.action-btn {
  background: none;
  border: none;
  padding: 4px 6px;
  cursor: pointer;
  border-radius: 4px;
  line-height: 1;
  transition: background 0.15s ease, transform 0.1s ease;
  font-size: 16px;
  color: #c68400;

  &:hover {
    background-color: var(--bg-muted);
    transform: scale(1.1);
  }

  .icon-edit {
    color: #c0392b;
  }
}

// ── Empty State ───────────────────────────────────────
.empty-state {
  margin-top: 20px;
  padding: 24px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 13px;
  background: var(--bg-surface);
  border-radius: 6px;
  border: 1px dashed var(--border-subtle);
}