.ec-create-class-roster-block {
  max-height: none !important;
  overflow: visible !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

.ec-create-class-roster-source,
.ec-create-class-roster-legacy {
  display: none !important;
}

.ec-roster-group-editor,
.ec-roster-group-editor * {
  box-sizing: border-box;
}

.ec-roster-group-editor {
  display: grid;
  gap: 12px;
  padding: 15px;
  border: 1px solid #dbe4f0;
  border-radius: 18px;
  background: #f8fafc;
}

.ec-roster-group-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.ec-roster-group-heading strong {
  display: block;
  color: #0f172a;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 900;
}

.ec-roster-group-heading p {
  margin: 3px 0 0;
  color: #64748b;
  font-size: 12px;
  line-height: 1.5;
}

.ec-roster-add-group {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 38px;
  padding: 0 13px;
  border: 0;
  border-radius: 11px;
  background: #2563eb;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(37, 99, 235, .18);
}

.ec-roster-add-group:hover {
  background: #1d4ed8;
}

.ec-roster-add-group span {
  font-size: 18px;
  line-height: 1;
}

.ec-roster-group-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}

.ec-roster-group-card {
  min-width: 0;
  padding: 12px;
  border: 1px solid #dbe4f0;
  border-radius: 15px;
  background: #fff;
}

.ec-roster-group-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px;
}

.ec-roster-group-title,
.ec-roster-group-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.ec-roster-group-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 9px;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 900;
}

.ec-roster-group-title strong {
  color: #0f172a;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.ec-roster-group-count {
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.ec-roster-group-upload,
.ec-roster-group-remove {
  min-height: 28px;
  padding: 0 8px;
  border: 1px solid #dbe4f0;
  border-radius: 8px;
  background: #f8fafc;
  color: #475569;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.ec-roster-group-upload:hover {
  border-color: #93c5fd;
  background: #eff6ff;
  color: #1d4ed8;
}

.ec-roster-group-remove {
  border-color: #fecdd3;
  background: #fff1f2;
  color: #be123c;
}

.ec-roster-group-names {
  display: block;
  width: 100%;
  min-height: 86px;
  resize: vertical;
  padding: 10px 11px !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 11px !important;
  background: #fff !important;
  color: #0f172a !important;
  font-family: inherit !important;
  font-size: 13px !important;
  line-height: 1.55 !important;
  outline: none;
}

.ec-roster-group-names:focus {
  border-color: #2563eb !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .1) !important;
}

.ec-roster-group-tip {
  margin: 6px 1px 0;
  color: #94a3b8;
  font-size: 11px;
  line-height: 1.4;
}

.ec-roster-group-error {
  margin: 0;
  padding: 9px 11px;
  border-radius: 10px;
  background: #fff1f2;
  color: #be123c;
  font-size: 12px;
  font-weight: 800;
}

@media (max-width: 640px) {
  .ec-roster-group-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .ec-roster-add-group {
    width: 100%;
  }

  .ec-roster-group-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .ec-roster-group-card-header {
    align-items: flex-start;
    flex-direction: column;
  }
}
