.page-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.page-toolbar-left {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.page-title {
  margin: 0;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 800;
  color: var(--text);
}

.page-desc {
  margin: 0;
  font-size: 14px;
  color: var(--text-secondary);
}

.page-toolbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.table-card {
  overflow: hidden;
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
}

.group-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
  background: var(--surface);
}

.group-table thead th {
  height: 54px;
  padding: 0 16px;
  text-align: left;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  background: #f8fafc;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.group-table tbody td,
.group-table thead th {
  padding: 16px;
  word-break: break-word;
}

.group-table tbody tr:last-child td {
  border-bottom: none;
}

.group-table tbody tr:hover {
  background: #fcfdff;
}

.group-name-cell {
  display: flex;
  align-items: center;
  min-height: 36px;
}

.group-name {
  font-weight: 700;
  color: var(--text);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 84px;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.status-badge.creator {
  background: #ecfdf3;
  color: #027a48;
}

.status-badge.admin {
  background: #eef4ff;
  color: #1d4ed8;
}

.status-badge.member {
  background: #f2f4f7;
  color: #667085;
}

.permission-switches {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.perm-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 52px;
  height: 30px;
  padding: 0 10px;
  border-radius: 8px;
  border: none;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.perm-switch.is-on {
  background: #1e88e5;
  color: #ffffff;
}

.perm-switch.is-off {
  background: #dbeafe;
  color: #2563eb;
}

.perm-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  line-height: 1;
}

.perm-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  line-height: 1;
  font-weight: 800;
}

.add-group-steps {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.step-item {
  display: block;
}

.step-line {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #e8f0ff;
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 2px;
}

.step-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 2px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.7;
}

.step-content.step-inline {
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.contact-desc {
  margin: 0;
  font-size: 15px;
  line-height: 1.9;
  color: var(--text);
}